:root{
  --input-border: rgba(255,255,255,.10);
  --shadow-md: 0 8px 24px rgba(0,0,0,.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.35);
  --shadow-glow: 0 0 60px rgba(99,102,241,.15);
  --error-color:#ef4444;
  --error-bg: rgba(239,68,68,.10);
  --error-border: rgba(239,68,68,.30);
  --primary-color:#6366f1;
  --primary-hover:#4f46e5;
  --primary-light:#818cf8;
  --primary-glow:rgba(99,102,241,.4);
  --accent-color:#8b5cf6;
  --accent-light:#a78bfa;
  --accent-glow:rgba(139,92,246,.4);
  --bg-primary:#050508;
  --bg-secondary:#0f0f1a;
  --bg-tertiary:#1a1a2e;
  --bg-card:rgba(15,15,28,.85);
  --bg-glass:rgba(255,255,255,.02);
  --text-primary:#fff;
  --text-secondary:#a1a1aa;
  --text-tertiary:#71717a;
  --success-color:#10b981;
  --success-bg:rgba(16,185,129,.12);
  --success-border:rgba(16,185,129,.25);
  --border-subtle:rgba(255,255,255,.06);
  --border-glow:rgba(99,102,241,.3);
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:20px;
  --radius-xl:28px;
  --spacing-xs:8px;
  --spacing-sm:12px;
  --spacing-md:16px;
  --spacing-lg:24px;
  --spacing-xl:32px;
  --transition-fast:150ms cubic-bezier(.4,0,.2,1);
  --transition-base:250ms cubic-bezier(.4,0,.2,1);
  --transition-smooth:350ms cubic-bezier(.4,0,.2,1);
  --transition-bounce:500ms cubic-bezier(.34,1.56,.64,1)
}
*{margin:0;padding:0;box-sizing:border-box}

/* Smooth scroll and custom selection */
html{scroll-behavior:smooth}
::selection{background:rgba(99,102,241,.35);color:#fff}
::-moz-selection{background:rgba(99,102,241,.35);color:#fff}

/* Custom scrollbar */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:rgba(0,0,0,.25)}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--primary-color),var(--accent-color));border-radius:10px;border:2px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,var(--primary-hover),var(--accent-color));background-clip:content-box}

body.server-view-page{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Roboto','Oxygen','Ubuntu','Cantarell','Fira Sans','Droid Sans','Helvetica Neue',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg-primary);color:var(--text-primary);line-height:1.6;min-height:100vh;padding:var(--spacing-xl) var(--spacing-lg)}

.server-view-background{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%,rgba(99,102,241,.12) 0%,transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%,rgba(139,92,246,.08) 0%,transparent 50%),
    linear-gradient(180deg,var(--bg-primary) 0%,#080810 100%)
}

.bg-gradient-1,.bg-gradient-2,.bg-gradient-3{
  position:absolute;
  border-radius:50%;
  filter:blur(120px);
  animation:morphFloat 28s ease-in-out infinite
}

.bg-gradient-1{
  width:900px;
  height:900px;
  background:radial-gradient(circle,var(--primary-color) 0%,rgba(99,102,241,.25) 40%,transparent 70%);
  top:-250px;
  right:-200px;
  opacity:.18
}

.bg-gradient-2{
  width:800px;
  height:800px;
  background:radial-gradient(circle,var(--accent-color) 0%,rgba(139,92,246,.25) 40%,transparent 70%);
  bottom:-250px;
  left:-200px;
  opacity:.15;
  animation-delay:-10s
}

.bg-gradient-3{
  width:600px;
  height:600px;
  background:radial-gradient(circle,#06b6d4 0%,rgba(6,182,212,.2) 40%,transparent 70%);
  top:40%;
  left:30%;
  opacity:.06;
  animation-delay:-18s
}

@keyframes morphFloat{
  0%,100%{transform:translate(0,0) scale(1) rotate(0);border-radius:40% 60% 60% 40% / 60% 40% 60% 40%}
  25%{transform:translate(60px,-40px) scale(1.1) rotate(90deg);border-radius:60% 40% 40% 60% / 40% 60% 40% 60%}
  50%{transform:translate(40px,60px) scale(.95) rotate(180deg);border-radius:50% 50% 60% 40% / 50% 60% 50% 40%}
  75%{transform:translate(-40px,30px) scale(1.05) rotate(270deg);border-radius:40% 60% 50% 50% / 60% 40% 50% 50%}
}

/* Animated grid pattern */
.bg-pattern{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(99,102,241,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(99,102,241,.025) 1px,transparent 1px);
  background-size:80px 80px;
  mask-image:radial-gradient(ellipse 70% 50% at 50% 30%,black 0%,transparent 70%);
  -webkit-mask-image:radial-gradient(ellipse 70% 50% at 50% 30%,black 0%,transparent 70%)
}
.server-view-container{max-width:1440px;margin:0 auto;position:relative;z-index:2;animation:fadeInUp .6s cubic-bezier(.16,1,.3,1)}
@keyframes fadeInUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}

/* ========================================
   MAIN NAVIGATION HEADER
   ======================================== */

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
  margin-bottom: var(--spacing-xl);
  animation: headerSlide .6s cubic-bezier(.16,1,.3,1) .1s backwards;
}

@keyframes headerSlide {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 38px;
  width: auto;
  transition: all var(--transition-smooth);
}

.header-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.btn-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(145deg, var(--bg-card), rgba(25, 25, 45, 0.95));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.btn-back-nav svg {
  transition: transform var(--transition-smooth);
}

.btn-back-nav:hover {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-back-nav:hover svg {
  transform: translateX(-3px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Auth buttons styling */
.header-right .btn-primary,
.header-right .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-smooth);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.header-right .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.header-right .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.header-right .btn-primary:hover::before {
  left: 100%;
}

.header-right .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.header-right .btn-secondary {
  background: linear-gradient(145deg, var(--bg-card), rgba(25, 25, 45, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-right .btn-secondary:hover {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Navigation links */
.header-nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border-subtle);
}

.header-nav-links .nav-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all var(--transition-smooth);
  opacity: 0.8;
}

.header-nav-links .nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

/* Mobile responsive header */
@media (max-width: 1024px) {
  .main-header {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }
  
  .btn-back-nav span {
    display: none;
  }
  
  .btn-back-nav {
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-lg);
  }
  
  .header-left {
    justify-content: space-between;
    width: 100%;
  }
  
  .header-logo img {
    height: 32px;
  }
  
  .btn-back-nav span {
    display: inline;
  }
  
  .btn-back-nav {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .header-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
  
  .header-right .btn-primary,
  .header-right .btn-secondary {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .header-nav-links {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4px;
  }
  
  .header-nav-links .nav-link {
    font-size: 11px;
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  .header-logo img {
    height: 28px;
  }
  
  .btn-back-nav {
    padding: 7px 10px;
    font-size: 11px;
  }
  
  .header-right .btn-primary,
  .header-right .btn-secondary {
    padding: 7px 12px;
    font-size: 11px;
    flex: 1;
    justify-content: center;
  }
  
  .header-nav-links .nav-link {
    font-size: 10px;
    padding: 4px 6px;
  }
}
/* Legacy page-header - kept for backwards compatibility */
.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-md);animation:slideDown .6s cubic-bezier(.16,1,.3,1);gap:var(--spacing-sm)}
@keyframes slideDown{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}

/* Hide old btn-back if main-header is present */
.main-header ~ .page-header {
  display: none;
}
.btn-back{
  display:inline-flex;
  align-items:center;
  gap:var(--spacing-xs);
  padding:11px 18px;
  background:linear-gradient(145deg,var(--bg-card),rgba(25,25,45,.95));
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-md);
  color:var(--text-primary);
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition:all var(--transition-smooth);
  box-shadow:
    0 2px 12px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.04)
}

.btn-back:hover{
  background:linear-gradient(145deg,rgba(99,102,241,.1),rgba(139,92,246,.08));
  border-color:var(--border-glow);
  transform:translateY(-3px);
  box-shadow:
    0 8px 24px rgba(0,0,0,.25),
    0 0 20px rgba(99,102,241,.1)
}
.btn-edit{display:inline-flex;align-items:center;gap:var(--spacing-xs);padding:10px 16px;background:linear-gradient(135deg,var(--primary-color) 0%,var(--accent-color) 100%);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-md);color:#fff;text-decoration:none;font-size:14px;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.25);transform:none;transition:background var(--transition-base),box-shadow var(--transition-base),border-color var(--transition-base),opacity var(--transition-base)}
.btn-edit:hover{background:linear-gradient(135deg,var(--primary-hover) 0%,var(--accent-color) 100%);border-color:rgba(255,255,255,.18);box-shadow:0 4px 12px rgba(0,0,0,.28);opacity:.96;transform:none}
.btn-edit:focus-visible{outline:none;box-shadow:0 0 0 2px rgba(99,102,241,.45),0 2px 10px rgba(0,0,0,.25)}
.btn-edit:active{opacity:.9;box-shadow:0 2px 8px rgba(0,0,0,.25) inset}
.btn-edit svg{color:currentColor;opacity:.95}
.btn-edit:hover svg{opacity:1}
.server-hero {
  position: relative;
  margin-bottom: var(--spacing-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  animation: heroReveal .9s cubic-bezier(.16,1,.3,1);
  background-image: url('/img/mcbg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0 8px 40px rgba(0,0,0,.25),
    0 0 80px rgba(99,102,241,.08),
    inset 0 1px 0 rgba(255,255,255,.05)
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.98)
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

/* Animated gradient border */
.server-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-color));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  animation: gradientBorder 4s ease infinite;
  z-index: 3;
  pointer-events: none
}

@keyframes gradientBorder {
  0%, 100% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
}

.server-hero:hover::after {
  opacity: .6
}

.server-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(10, 10, 20, 0.82) 0%,
    rgba(20, 20, 38, 0.85) 100%
  );
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  z-index: 1
}

.hero-content-wrapper {
  position: relative;
  padding: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  z-index: 2;
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.hero-banner-wrapper{position:relative;width:100%;height:220px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(99,102,241,.2) 0%,rgba(139,92,246,.2) 100%)}
.hero-banner-wrapper::after{content:'';position:absolute;bottom:0;left:0;right:0;height:80px;background:linear-gradient(0deg,var(--bg-card) 0%,transparent 100%);z-index:2}
.hero-content-wrapper{position:relative;padding:var(--spacing-xl);padding-top:var(--spacing-lg)}
.hero-main-content{display:flex;flex-direction:column;gap:var(--spacing-xl)}
.hero-header{display:grid;grid-template-columns:1.6fr minmax(260px,468px);align-items:center;gap:var(--spacing-xl)}
.hero-media{display:flex;align-items:center;justify-content:flex-start;padding:0;margin:0;border:none;background:transparent;border-radius:0;line-height:0;height:60px}
.hero-media img.server-banner{display:block;max-width:100%;width:auto;height:60px;object-fit:contain}
.server-banner{max-width:468px;width:auto;height:auto;max-height:100%;object-fit:contain;position:relative;z-index:1}
.hero-left{flex:1;min-width:300px}
.hero-title-row{display:flex;align-items:center;gap:var(--spacing-md);margin-bottom:var(--spacing-md);flex-wrap:wrap}
.server-name{
  font-size:40px;
  font-weight:900;
  background:linear-gradient(135deg,var(--primary-color) 0%,var(--accent-color) 50%,var(--primary-light) 100%);
  background-size:200% 200%;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  letter-spacing:-.03em;
  margin:0;
  line-height:1.1;
  animation:nameGlow 4s ease infinite;
  text-shadow:0 0 40px var(--primary-glow)
}

@keyframes nameGlow {
  0%,100%{background-position:0% 50%;filter:brightness(1)}
  50%{background-position:100% 50%;filter:brightness(1.15)}
}
.server-status-badge{
  display:inline-flex;
  align-items:center;
  gap:var(--spacing-sm);
  padding:8px 14px;
  background:linear-gradient(135deg,var(--success-bg),rgba(16,185,129,.08));
  border:1px solid var(--success-border);
  border-radius:var(--radius-sm);
  color:var(--success-color);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  text-transform:uppercase;
  letter-spacing:.03em;
  transition:all var(--transition-smooth);
  box-shadow:0 2px 10px rgba(16,185,129,.15)
}

.server-status-badge:hover {
  background:linear-gradient(135deg,rgba(16,185,129,.18),rgba(16,185,129,.12));
  box-shadow:0 4px 20px rgba(16,185,129,.25)
}

.status-dot{
  width:10px;
  height:10px;
  background:var(--success-color);
  border-radius:50%;
  animation:statusPulse 2s cubic-bezier(.4,0,.6,1) infinite;
  box-shadow:0 0 10px var(--success-color)
}

@keyframes statusPulse{
  0%,100%{opacity:1;transform:scale(1);box-shadow:0 0 10px currentColor}
  50%{opacity:.7;transform:scale(1.25);box-shadow:0 0 20px currentColor,0 0 30px currentColor}
}

.server-status-badge.offline{
  background:linear-gradient(135deg,rgba(239,68,68,.12),rgba(239,68,68,.08));
  border-color:rgba(239,68,68,.25);
  color:#ef4444;
  box-shadow:0 2px 10px rgba(239,68,68,.12)
}

.server-status-badge.offline:hover {
  background:linear-gradient(135deg,rgba(239,68,68,.18),rgba(239,68,68,.12));
  box-shadow:0 4px 20px rgba(239,68,68,.2)
}

.server-status-badge.offline .status-dot{background:#ef4444;box-shadow:0 0 10px #ef4444}
.serverlist-verified-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:linear-gradient(135deg,rgba(99,102,241,.15) 0%,rgba(139,92,246,.15) 100%);border:1px solid rgba(99,102,241,.3);border-radius:var(--radius-sm);color:var(--primary-light);font-size:12px;font-weight:600;white-space:nowrap;transition:all var(--transition-base)}
.serverlist-verified-badge:hover{background:linear-gradient(135deg,rgba(99,102,241,.2) 0%,rgba(139,92,246,.2) 100%);border-color:var(--primary-color);transform:translateY(-1px)}
.serverlist-verified-badge svg{width:14px;height:14px;color:var(--primary-light);flex-shrink:0}
.serverlist-verified-badge span{line-height:1}
.hero-stats-row{display:flex;align-items:center;gap:var(--spacing-xl);flex-wrap:wrap}
.stat-item{display:flex;flex-direction:column;gap:4px}
.stat-label{font-size:11px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.08em;font-weight:600}
.stat-value{font-size:21px;font-weight:800;color:var(--text-primary);line-height:1;background:linear-gradient(135deg,var(--primary-light) 0%,var(--accent-light) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.stat-value.loading{color:var(--text-tertiary);font-size:24px;background:none;-webkit-text-fill-color:var(--text-tertiary)}
.hero-meta{display:flex;gap:var(--spacing-md);margin-top:var(--spacing-sm);flex-wrap:wrap}
.meta-item{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-secondary);padding:6px 12px;background:rgba(255,255,255,.03);border-radius:var(--radius-sm)}
.meta-item svg{width:14px;height:14px;opacity:.6}
.content-wrapper{display:grid;grid-template-columns:2fr 1fr;gap:var(--spacing-lg)}
.left-content{display:flex;flex-direction:column;gap:var(--spacing-lg)}
.right-content{display:flex;flex-direction:column;gap:var(--spacing-lg)}
/* Google AdSense Container */
.adsense-container{background:var(--bg-card);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-lg);padding:var(--spacing-lg);margin:0;animation:slideUp .6s cubic-bezier(.16,1,.3,1);animation-fill-mode:both;min-height:100px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.adsense-container ins{display:block;width:100%;max-width:100%}
.adsense-container .adsbygoogle{display:block;width:100%;max-width:100%}
.info-card{
  background:linear-gradient(165deg,var(--bg-card),rgba(20,20,38,.9));
  backdrop-filter:blur(30px);
  -webkit-backdrop-filter:blur(30px);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  padding:var(--spacing-xl);
  animation:cardReveal .7s cubic-bezier(.16,1,.3,1);
  animation-fill-mode:both;
  box-shadow:
    0 8px 32px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.04);
  transition:all var(--transition-smooth);
  position:relative;
  overflow:hidden
}

/* Subtle gradient accent */
.info-card::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--primary-color),var(--accent-color),transparent);
  opacity:0;
  transition:opacity var(--transition-smooth)
}

.info-card:hover::before {
  opacity:.6
}

.info-card:hover {
  border-color:var(--border-glow);
  box-shadow:
    0 16px 48px rgba(0,0,0,.25),
    0 0 40px rgba(99,102,241,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
  transform:translateY(-2px)
}

@keyframes cardReveal{from{opacity:0;transform:translateY(25px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Staggered animation delays */
.info-card:nth-child(1){animation-delay:.1s}
.info-card:nth-child(2){animation-delay:.2s}
.info-card:nth-child(3){animation-delay:.3s}
.info-card:nth-child(4){animation-delay:.4s}
.card-header{display:flex;align-items:center;gap:var(--spacing-sm);margin-bottom:var(--spacing-lg)}
.card-header svg{color:var(--primary-color)}
.card-header h2{font-size:20px;font-weight:600;color:var(--text-primary);margin:0}
.description-content{font-size:15px;line-height:1.8;color:var(--text-secondary);white-space:pre-wrap}
.info-section{margin-bottom:var(--spacing-lg)}
.info-section:last-child { margin-bottom: 0; }
.info-section label{display:block;font-size:12px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;margin-bottom:var(--spacing-sm)}
.stats-section{margin-bottom:var(--spacing-lg)}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.stat-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius-sm);
  transition:all var(--transition-smooth);
  position:relative;
  overflow:hidden
}

.stat-item::before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,var(--primary-glow),transparent 60%);
  opacity:0;
  transition:opacity var(--transition-fast)
}

.stat-item:hover{
  background:linear-gradient(135deg,rgba(99,102,241,.1),rgba(139,92,246,.08));
  border-color:var(--border-glow);
  transform:translateY(-3px);
  box-shadow:0 4px 16px rgba(99,102,241,.15)
}

.stat-item:hover::before {
  opacity:.2
}
.stat-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:linear-gradient(135deg,var(--primary-color),var(--accent-color));border-radius:var(--radius-sm);color:#fff;flex-shrink:0}
.stat-icon svg{width:16px;height:16px}
.stat-content{flex:1;min-width:0}
.stat-content .stat-value{font-size:16px;font-weight:700;color:var(--text-primary);line-height:1.2;margin-bottom:2px;background:linear-gradient(135deg,var(--primary-light) 0%,var(--accent-light) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.stat-content .stat-label{font-size:10px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;font-weight:500}
.tracker-link{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-size:12px;color:var(--text-secondary);text-decoration:none;opacity:0.7;transition:all var(--transition-base)}
.tracker-link:hover{color:var(--primary-color);opacity:1;transform:translateX(2px)}
.tracker-link svg{width:14px;height:14px}
@media (max-width: 768px) {
  .stats-grid{grid-template-columns:1fr;gap:8px}
}
.tags-list,.countries-list,.versions-list,.platform-badges{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}

.tag,.country-badge,.version-badge,.platform-badge{
  padding:8px 14px;
  background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-sm);
  font-size:13px;
  font-weight:600;
  color:var(--text-primary);
  transition:all var(--transition-smooth);
  cursor:default;
  position:relative;
  overflow:hidden
}

.tag::before,.country-badge::before,.version-badge::before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,var(--primary-glow),transparent 60%);
  opacity:0;
  transition:opacity var(--transition-fast)
}

.tag:hover,.country-badge:hover,.version-badge:hover{
  background:linear-gradient(135deg,rgba(99,102,241,.15),rgba(139,92,246,.1));
  border-color:var(--border-glow);
  transform:translateY(-3px);
  box-shadow:0 4px 16px rgba(99,102,241,.2)
}

.tag:hover::before,.country-badge:hover::before,.version-badge:hover::before {
  opacity:.3
}

.version-badge.latest{
  background:linear-gradient(135deg,var(--primary-color) 0%,var(--accent-color) 100%);
  border:none;
  color:#fff;
  box-shadow:0 2px 12px rgba(99,102,241,.35)
}

.version-badge.latest:hover {
  box-shadow:0 6px 20px rgba(99,102,241,.45);
  transform:translateY(-3px) scale(1.02)
}

.platform-badge.java{
  background:linear-gradient(135deg,rgba(252,165,165,.12),rgba(252,165,165,.08));
  border-color:rgba(252,165,165,.25);
  color:#fca5a5
}

.platform-badge.bedrock{
  background:linear-gradient(135deg,rgba(34,197,94,.12),rgba(34,197,94,.08));
  border-color:rgba(34,197,94,.25);
  color:#22c55e
}
.links-list{display:flex;flex-direction:column;gap:var(--spacing-md)}

.link-item{
  display:flex;
  align-items:center;
  gap:var(--spacing-md);
  padding:var(--spacing-md) var(--spacing-lg);
  background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-md);
  color:var(--text-primary);
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  transition:all var(--transition-smooth);
  position:relative;
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)
}

/* Left accent bar */
.link-item::before {
  content:'';
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:linear-gradient(180deg,var(--primary-color),var(--accent-color));
  transform:scaleY(0);
  transform-origin:bottom;
  transition:transform var(--transition-bounce)
}

.link-item:hover{
  background:linear-gradient(135deg,rgba(99,102,241,.1),rgba(139,92,246,.08));
  border-color:var(--border-glow);
  transform:translateX(6px);
  box-shadow:0 4px 20px rgba(99,102,241,.15)
}

.link-item:hover::before {
  transform:scaleY(1)
}
.link-item.discord{color:#5865f2}
.link-item.discord:hover{
  background: rgba(88,101,242,.10);
  border-color: #5865f2;
  transform: translateX(4px);
}
.link-item span{flex:1}
.link-item .arrow{color:var(--text-tertiary);transition:transform var(--transition-base)}
.link-item:hover .arrow{transform:translate(2px,-2px)}
.videos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:var(--spacing-lg)}

.video-card{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid var(--border-subtle);
  transition:all var(--transition-smooth);
  cursor:pointer;
  aspect-ratio:16/9;
  text-decoration:none;
  box-shadow:
    0 4px 20px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.04)
}

/* Glow effect */
.video-card::after {
  content:'';
  position:absolute;
  inset:-3px;
  border-radius:inherit;
  background:linear-gradient(135deg,var(--primary-glow),var(--accent-glow));
  opacity:0;
  filter:blur(15px);
  z-index:-1;
  transition:opacity var(--transition-smooth)
}

.video-card:hover{
  transform:translateY(-8px) scale(1.02);
  border-color:var(--border-glow);
  box-shadow:
    0 16px 48px rgba(99,102,241,.25),
    0 0 60px rgba(99,102,241,.12)
}

.video-card:hover::after {
  opacity:.4
}
.video-thumbnail{position:relative;width:100%;height:100%;overflow:hidden}
.video-thumbnail img{width:100%;height:100%;object-fit:cover;transition:transform var(--transition-base)}
.video-card:hover .video-thumbnail img{transform:scale(1.1)}
.play-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);opacity:0;transition:opacity var(--transition-base)}
.video-card:hover .play-overlay{opacity:1}
.play-overlay svg{width:64px;height:64px;color:#fff;filter:drop-shadow(0 4px 8px rgba(0,0,0,.5))}
.connection-card{
  background:linear-gradient(145deg,rgba(99,102,241,.1) 0%,rgba(139,92,246,.08) 50%,rgba(99,102,241,.05) 100%);
  border:1px solid rgba(99,102,241,.25);
  border-radius:var(--radius-lg);
  padding:var(--spacing-lg);
  min-width:280px;
  max-width:360px;
  box-shadow:
    0 8px 32px rgba(99,102,241,.12),
    inset 0 1px 0 rgba(255,255,255,.08);
  transition:all var(--transition-smooth);
  position:relative;
  overflow:hidden
}

/* Animated border glow */
.connection-card::before {
  content:'';
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  background:linear-gradient(135deg,var(--primary-glow),var(--accent-glow));
  opacity:0;
  filter:blur(15px);
  z-index:-1;
  transition:opacity var(--transition-smooth)
}

.connection-card:hover {
  border-color:rgba(99,102,241,.4);
  box-shadow:
    0 12px 40px rgba(99,102,241,.2),
    inset 0 1px 0 rgba(255,255,255,.1);
  transform:translateY(-3px)
}

.connection-card:hover::before {
  opacity:.4
}
.connection-card .card-header{display:flex;align-items:center;gap:var(--spacing-xs);margin-bottom:var(--spacing-md)}
.connection-card .card-header h3{font-size:15px;font-weight:700;color:var(--text-primary);margin:0;text-transform:uppercase;letter-spacing:.05em}
.connection-card .card-header svg{width:18px;height:18px;color:var(--primary-light)}
.connection-grid{display:flex;flex-direction:column;gap:var(--spacing-sm);margin-bottom:var(--spacing-md)}
.connection-item{display:flex;flex-direction:column;gap:6px}
.connection-item label{font-size:10px;font-weight:700;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.08em}
.connection-value{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-sm);font-family:'Courier New',monospace;font-size:13px;font-weight:600;color:var(--text-primary);transition:all var(--transition-base);cursor:pointer;position:relative;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}
.connection-value:hover{background:rgba(99,102,241,.15);border-color:var(--primary-color);transform:translateX(2px)}
.value-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:opacity var(--transition-base)}
.connection-value .copy-prompt{position:absolute;left:12px;right:40px;opacity:0;pointer-events:none;transition:opacity var(--transition-base);color:var(--primary-light);font-size:12px;white-space:nowrap;display:flex;align-items:center}
.connection-value:hover .value-text{opacity:0}
.connection-value:hover .copy-prompt{opacity:1}
.btn-copy{width:28px;height:28px;border:none;background:rgba(255,255,255,.05);color:var(--text-secondary);cursor:pointer;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;transition:all var(--transition-base);flex-shrink:0}
.btn-copy:hover{background:var(--primary-color);color:#fff;transform:scale(1.1)}
.btn-copy.copied{background:var(--success-color);color:#fff}
.quick-connect{padding-top:var(--spacing-sm);border-top:1px solid rgba(255,255,255,.1)}
.btn-primary{width:100%;padding:12px 20px;border:none;border-radius:var(--radius-md);background:linear-gradient(135deg,var(--primary-color) 0%,var(--accent-color) 100%);color:#fff;font-size:14px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--spacing-xs);transition:all var(--transition-base);box-shadow:0 4px 14px rgba(99,102,241,.4);text-transform:uppercase;letter-spacing:.05em}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(99,102,241,.6)}
.copy-notification{position:fixed;bottom:20px;right:20px;padding:var(--spacing-md) var(--spacing-lg);background:var(--success-bg);border:1px solid var(--success-border);border-radius:var(--radius-md);color:var(--success-color);font-size:14px;font-weight:500;box-shadow:0 10px 30px rgba(0,0,0,.3);animation:slideInRight .3s ease;z-index:1000}
@keyframes slideInRight{from{opacity:0;transform:translateX(100px)}to{opacity:1;transform:translateX(0)}}
.copy-notification.hide{animation:slideOutRight .3s ease forwards}
@keyframes slideOutRight{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100px)}}
@media (max-width:1024px){.hero-header{grid-template-columns:1fr}.hero-media{height:auto}.hero-media img.server-banner{width:100%;height:auto}}
@media (max-width:1024px){.server-name{font-size:40px}.content-wrapper{grid-template-columns:1fr}}
@media (max-width:768px){body.server-view-page{padding:var(--spacing-md)}.server-name{font-size:36px}.hero-banner-wrapper{height:180px}
.hero-stats-row{gap:var(--spacing-md)}.stat-value{font-size:24px}.page-header{flex-direction:column;gap:var(--spacing-sm);align-items:stretch}.btn-back,
.btn-edit{
  transform:none;
  transition: opacity var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}.btn-edit:hover{
  opacity:.96;
  background:linear-gradient(135deg,var(--primary-hover) 0%,var(--accent-color) 100%);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 6px 18px rgba(0,0,0,.28); /* softer, no position shift */
  transform:none; /* ensure no movement */
}.videos-grid{grid-template-columns:1fr}}
@media (max-width:480px){.server-name{font-size:28px}.hero-banner-wrapper{height:150px}.info-card{padding:var(--spacing-lg)}.card-header h2{font-size:18px}.hero-title-row{flex-direction:column;align-items:flex-start}.hero-meta{flex-direction:column;gap:var(--spacing-xs)}.stat-value{font-size:20px}}

/* -------------------------------------------------------------------------- */
/* Banner advertisement placement: /server/{slug} between Connect + Details     */
/* -------------------------------------------------------------------------- */
.ad-banner-card{padding:var(--spacing-lg);padding-bottom: 5px;}
.ad-banner-card .card-header{margin-bottom:var(--spacing-md)}
.ad-banner-wrap{display:flex;justify-content:center;align-items:center}
.ad-banner-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.ad-banner-img{max-width:100%;height:auto;max-height:240px;object-fit:contain;border-radius:var(--radius-sm);border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.20)}
.ad-banner-label{font-size:12px;color:var(--text-secondary);margin-top:8px;text-align:center}
.vote-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.vote-widget-container {
  min-width: 0; /* Prevent grid blowout */
}

.about-card {
  min-width: 0;
}

/* ========================================
   IMPROVED VOTE WIDGET STYLES
   ======================================== */

.vote-widget {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.vote-widget .card-header h3 {
  font-size: 18px;
  margin: 0;
}

.vote-form .form-group {
  margin-bottom: 20px;
}

.vote-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.vote-form .required {
  color: #ef4444;
  margin-left: 2px;
}

/* Username Input */
.username-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.username-input-wrapper input {
  flex: 1;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.username-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
}

.username-input-wrapper input.input-success {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.05);
}

.username-input-wrapper input.input-error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
  animation: shake 0.3s ease;
}

.username-status {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.username-status .status-icon {
  width: 18px;
  height: 18px;
  transition: all 0.2s ease;
}

.username-status[data-status="idle"] .status-icon {
  color: var(--text-tertiary);
}

.username-status[data-status="checking"] .status-icon {
  color: var(--primary-color);
  animation: spin 1s linear infinite;
}

.username-status[data-status="success"] .status-icon {
  color: var(--success-color);
}

.username-status[data-status="error"] .status-icon {
  color: #ef4444;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ========================================
   IMPROVED REVIEW TOGGLE BUTTON
   ======================================== */

.review-toggle-wrapper {
  margin-bottom: 20px;
}

.review-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(99, 102, 241, 0.08);
  border: 1.5px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.review-toggle-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.review-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--primary-color);
  border-style: solid;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.review-toggle-btn:hover::before {
  opacity: 0.05;
}

.review-toggle-btn:active {
  transform: translateY(0);
}

.review-toggle-btn svg,
.review-toggle-btn span {
  position: relative;
  z-index: 1;
}

.review-toggle-btn svg {
  transition: transform 0.2s ease;
}

.review-toggle-btn.active svg {
  transform: rotate(45deg);
}

.toggle-hint {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 400;
}

/* Review Section */
.review-section {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.review-section.show {
  max-height: 1000px;
  opacity: 1;
}

.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-section-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.btn-close-review {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-review:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  font-size: 42px;
  line-height: 1;
}

.star-rating label {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  font-size: 42px;
  line-height: 1;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  margin: 0;
  user-select: none;
}

.star-rating label:hover {
  color: #ffc107;
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 0 8px rgba(255,193,7,.5));
  text-shadow: 0 0 20px rgba(255,193,7,.6)
}

.star-rating label.highlighted {
  color: #ffc107;
  text-shadow: 0 0 12px rgba(255,193,7,.4)
}

@media (max-width: 768px) {
  .star-rating {
    font-size: 36px;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .star-rating {
    font-size: 30px;
    gap: 4px;
  }
}

.star-rating input[type="radio"]#star5:checked ~ label,
.star-rating input[type="radio"]#star4:checked ~ label,
.star-rating input[type="radio"]#star3:checked ~ label,
.star-rating input[type="radio"]#star2:checked ~ label,
.star-rating input[type="radio"]#star1:checked ~ label {
  color: #ffc107;
}

.star-rating input[type="radio"]#star5:checked ~ label[for="star5"],
.star-rating input[type="radio"]#star5:checked ~ label[for="star4"],
.star-rating input[type="radio"]#star5:checked ~ label[for="star3"],
.star-rating input[type="radio"]#star5:checked ~ label[for="star2"],
.star-rating input[type="radio"]#star5:checked ~ label[for="star1"],
.star-rating input[type="radio"]#star4:checked ~ label[for="star4"],
.star-rating input[type="radio"]#star4:checked ~ label[for="star3"],
.star-rating input[type="radio"]#star4:checked ~ label[for="star2"],
.star-rating input[type="radio"]#star4:checked ~ label[for="star1"],
.star-rating input[type="radio"]#star3:checked ~ label[for="star3"],
.star-rating input[type="radio"]#star3:checked ~ label[for="star2"],
.star-rating input[type="radio"]#star3:checked ~ label[for="star1"],
.star-rating input[type="radio"]#star2:checked ~ label[for="star2"],
.star-rating input[type="radio"]#star2:checked ~ label[for="star1"],
.star-rating input[type="radio"]#star1:checked ~ label[for="star1"] {
  color: #ffc107;
}

/* Textarea */
.vote-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
}

.vote-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
}

.vote-form textarea.input-success {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.05);
}

.char-count {
  float: right;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Captcha */
.captcha-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

/* ========================================
   VOTE SUBMIT ROW WITH INLINE STATS
   ======================================== */

.vote-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-vote {
  flex: 1;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-smooth);
  box-shadow:
    0 4px 16px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: .03em
}

/* Shimmer effect */
.btn-vote::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .6s ease
}

.btn-vote:hover::before {
  left: 100%
}

.btn-vote:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 28px rgba(99, 102, 241, 0.45),
    0 0 50px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255,255,255,.25)
}

.btn-vote:active {
  transform: translateY(-1px) scale(.99)
}

.btn-vote.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-vote.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 6px;
}

/* Inline Stats */
.vote-stats-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px;
  height: 46px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  min-width: 120px;
}

.stat-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin: auto;
}

.stat-compact svg {
  width: 14px;
  height: 14px;
  color: #ffc107;
  flex-shrink: 0;
}

.stat-compact .stat-value {
  font-weight: 700;
  color: var(--primary-light);
  font-size: 15px;
  line-height: 1;
}

.stat-compact .stat-label {
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1;
}

/* ========================================
   SUCCESS & COOLDOWN STATES
   ======================================== */

.vote-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.vote-success.show {
  opacity: 1;
  transform: scale(1);
}

.success-animation {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--success-color);
  stroke-miterlimit: 10;
  animation: fillCheckmark 0.4s ease-in-out 0.4s forwards;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke: var(--success-color);
  fill: none;
  animation: strokeCheckmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: white;
  stroke-width: 3;
  animation: strokeCheckmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.vote-success h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.vote-success p {
  font-size: 13px;
  color: var(--text-secondary);
}

.vote-cooldown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  text-align: center;
}

.cooldown-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--primary-color);
  opacity: 0.6;
}

.vote-cooldown h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.vote-cooldown p {
  font-size: 13px;
  color: var(--text-secondary);
}

.cooldown-timer {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  font-variant-numeric: tabular-nums;
  font-family: 'Courier New', monospace;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px);
  }
}

@keyframes strokeCheckmark {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fillCheckmark {
  100% {
    box-shadow: inset 0 0 0 30px var(--success-color);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
  .vote-about-grid {
    grid-template-columns: 1fr;
  }
  
  .vote-widget-container {
    order: 2;
  }
  
  .about-card {
    order: 1;
  }
}

@media (max-width: 768px) {
  .vote-widget {
    padding: 20px;
  }

  .vote-submit-row {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .btn-vote {
    width: 100%;
  }

  .vote-stats-inline {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
  }


  .cooldown-timer {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .review-toggle-btn {
    font-size: 13px;
    padding: 10px 14px;
  }
  .vote-stats-inline {
    flex-direction: column;
  }
}


/* ========================================
   REVIEWS SECTION STYLES
   ======================================== */

.reviews-section {
  margin-top: 0px;
}

.reviews-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--input-border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.reviews-loading p {
  font-size: 14px;
  color: var(--text-secondary);
}

.reviews-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.reviews-empty .empty-icon {
  width: 80px;
  height: 80px;
  color: var(--text-tertiary);
  opacity: 0.5;
  margin-bottom: 16px;
}

.reviews-empty h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.reviews-empty p {
  font-size: 14px;
  color: var(--text-secondary);
}

.reviews-container {
  margin-top: 16px;
}
.server-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.review-card {
  min-width: 300px;
  max-width: 400px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 16px;
  scroll-snap-align: start;
  transition: all 0.2s ease;
}

.review-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.review-rating {
  font-size: 14px;
  color: #ffc107;
  letter-spacing: 2px;
}

.review-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.review-date {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.review-delete-btn {
  background: transparent;
  border: 1px solid #ef4444;
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.review-delete-btn:hover {
  background: #ef4444;
  color: white;
  opacity: 1;
  transform: scale(1.05);
}

.review-delete-btn:active {
  transform: scale(0.95);
}

.review-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.review-delete-btn.loading {
  opacity: 0.6;
  cursor: wait;
}

.review-delete-btn.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  word-wrap: break-word;
}
.created-and-stats{
  display:flex;
  align-items:flex-end;
  gap: var(--spacing-md);
  flex-wrap:wrap;
}

.meta-inline{
  display:flex;
  align-items:center;
  gap: var(--spacing-sm);
  flex-wrap:wrap;
}

.meta-inline .meta-item{
  padding:6px 10px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}

.meta-inline .kpi-value{
  font-weight:800;
  font-size:14px;
  background:linear-gradient(135deg,var(--primary-light) 0%,var(--accent-light) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-left:4px;
  margin-right:4px;
  line-height:1;
}

.meta-inline .kpi-label{
  font-size:11px;
  color: rgb(173, 173, 173);
}
body.server-view-page {
  overflow-x: hidden;
  width: 100%;
}

.server-view-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeInUp .6s cubic-bezier(.16,1,.3,1);
  width: 100%; /* Ensure container doesn't exceed viewport */
  overflow-x: hidden;
}

/* Content wrapper improvements */
.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-lg);
  width: 100%;
  overflow-x: hidden;
}

/* Ensure all cards don't cause overflow */
.info-card,
.vote-widget,
.connection-card {
  max-width: 100%;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Fix long text overflow in connection values */
.connection-value {
  max-width: 100%;
  overflow: hidden;
}

.value-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0; /* Important for flexbox text truncation */
}

/* Fix video grid overflow */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 100%;
}

.video-card {
  max-width: 100%;
}


/* ========================================
   TABLET RESPONSIVE (1024px and below)
   ======================================== */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .hero-header {
    grid-template-columns: 1fr;
  }
  
  .hero-media {
    height: auto;
  }
  
  .hero-media img.server-banner {
    width: 100%;
    height: auto;
  }
  
  .server-name {
    font-size: 32px;
  }
}

/* ========================================
   MOBILE RESPONSIVE (768px and below)
   ======================================== */
@media (max-width: 768px) {
  body.server-view-page {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .server-view-container {
    padding: 0;
    width: 100%;
  }
  
  /* 
    MOBILE ORDER:
    1. Hero (default order: 0)
    2. Vote Widget (order: 1)
    3. Connection Card (order: 2)
    4. About Server (order: 3)
    5. Server Details (order: 4)
    6. Community Links (order: 5)
    7. Featured Videos (order: 6)
    8. Reviews (order: 7)
  */
  
  /* On mobile, merge left and right content into single column flow */
  .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  /* Left content items - flatten structure */
  .left-content {
    display: contents;
  }
  
  /* Right content items - flatten structure */
  .right-content {
    display: contents;
  }
  
  /* Now all direct children of content-wrapper can be ordered */
  /* Header (server-hero) - stays first */
  .server-hero {
    order: 0;
    margin-bottom: var(--spacing-md);
  }
  
  /* Vote widget - show second (after header) */
  .vote-widget {
    order: 1;
    margin-bottom: var(--spacing-md);
  }
  
  /* Connection card - show third */
  .info-card:has(.connection-grid) {
    order: 2;
    margin-bottom: var(--spacing-md);
  }
  
  /* About server description - show fourth */
  .info-card:has(.description-content) {
    order: 3;
    margin-bottom: var(--spacing-md);
  }
  
  /* Server details - show fifth */
  .info-card:has(.info-section) {
    order: 4;
    margin-bottom: var(--spacing-md);
  }
  
  /* Community links - show sixth */
  .info-card:has(.links-list) {
    order: 5;
    margin-bottom: var(--spacing-md);
  }
  
  /* Featured videos - show seventh (optional) */
  .info-card:has(.videos-grid) {
    order: 6;
    margin-bottom: var(--spacing-md);
  }
  
  /* Reviews - show last */
  .reviews-section {
    order: 7;
    margin-bottom: 0;
  }
  
  /* Typography adjustments */
  .server-name {
    font-size: 28px;
    line-height: 1.2;
  }
  
  .hero-banner-wrapper {
    height: 160px;
  }
  
  .hero-stats-row {
    gap: var(--spacing-sm);
    flex-wrap: wrap;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  /* Page header adjustments */
  .page-header {
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: stretch;
    margin-bottom: var(--spacing-sm);
  }
  
  .server-actions {
    display: flex;
    gap: var(--spacing-xs);
    width: 100%;
  }
  
  .btn-back,
  .btn-edit {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }
  
  /* Prevent button transform on mobile */
  .btn-edit:hover {
    transform: none;
    opacity: 0.96;
  }
  
  .btn-back:hover {
    transform: none;
  }
  
  /* Card adjustments */
  .info-card {
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-md);
  }
  
  .card-header h2 {
    font-size: 17px;
  }
  
  .card-header svg {
    width: 20px;
    height: 20px;
  }
  
  /* Hero title row stacking */
  .hero-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .server-status-badge {
    align-self: flex-start;
  }
  
  /* Meta items stacking */
  .hero-meta,
  .meta-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  
  .meta-item {
    width: 100%;
  }
  
  /* Connection grid stacking */
  .connection-grid {
    gap: var(--spacing-sm);
  }
  
  .connection-item {
    width: 100%;
  }
  
  /* Vote form adjustments */
  .vote-submit-row {
    flex-direction: column-reverse;
    gap: var(--spacing-sm);
  }
  
  .btn-vote {
    width: 100%;
    padding: 12px 18px;
  }
  
  .vote-stats-inline {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    min-width: 0;
  }
  
  /* Videos grid - single column on mobile */
  .videos-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Review cards - smaller on mobile */
  .review-card {
    min-width: 260px;
    max-width: 320px;
  }
  
  /* Tags and badges wrapping */
  .tags-list,
  .countries-list,
  .versions-list,
  .platform-badges {
    gap: var(--spacing-xs);
  }
  
  .tag,
  .country-badge,
  .version-badge,
  .platform-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  /* Links adjustments */
  .link-item {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 14px;
  }
  
  /* Description text */
  .description-content {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* ========================================
   SMALL MOBILE (480px and below)
   ======================================== */
@media (max-width: 480px) {
  body.server-view-page {
    padding: var(--spacing-sm) 12px;
  }
  
  .server-name {
    font-size: 24px;
  }
  
  .hero-banner-wrapper {
    height: 140px;
  }
  
  .info-card {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .adsense-container {
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: 80px;
  }
  
  .card-header h2 {
    font-size: 16px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .hero-title-row {
    gap: 10px;
  }
  
  .hero-stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .stat-item {
    width: 100%;
  }
  
  /* Smaller buttons */
  .btn-back,
  .btn-edit {
    padding: 9px 12px;
    font-size: 12px;
  }
  
  /* Connection values - even smaller text */
  .connection-value {
    padding: 9px 10px;
    font-size: 12px;
  }
  
  .btn-copy {
    width: 26px;
    height: 26px;
  }
  
  /* Vote form */
  .vote-form input,
  .vote-form textarea {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .star-rating {
    font-size: 28px;
    gap: 4px;
  }
  
  .review-toggle-btn {
    font-size: 12px;
    padding: 10px 14px;
  }
  
  /* Stats inline - stack on very small screens */
  .vote-stats-inline {
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    height: auto;
  }
  
  /* Review cards - even smaller */
  .review-card {
    min-width: 240px;
    max-width: 280px;
    padding: 12px;
  }
  
  .review-header {
    gap: 10px;
  }
  
  .review-avatar {
    width: 36px;
    height: 36px;
  }
  
  .review-author {
    font-size: 13px;
  }
  
  .review-text {
    font-size: 13px;
  }
  
  /* Meta inline items - smaller */
  .meta-inline .meta-item {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .meta-inline .kpi-value {
    font-size: 13px;
  }
  
  .meta-inline .kpi-label {
    font-size: 10px;
  }
}

/* ========================================
   EXTRA FIXES FOR OVERFLOW
   ======================================== */

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for long URLs or text */
.server-address,
.link-item span,
.description-content,
.review-text {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Prevent code/monospace text overflow */
.connection-value,
.value-text {
  font-size: clamp(11px, 3vw, 13px);
}

/* Fix background elements on mobile */
@media (max-width: 768px) {
  .bg-gradient-1,
  .bg-gradient-2 {
    width: 600px;
    height: 600px;
  }
  
  .bg-gradient-1 {
    top: -150px;
    right: -150px;
  }
  
  .bg-gradient-2 {
    bottom: -200px;
    left: -200px;
  }
}

/* Safari iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .content-wrapper {
    -webkit-overflow-scrolling: touch;
  }
}

/* Landscape mobile fixes */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-banner-wrapper {
    height: 120px;
  }
  
  .server-name {
    font-size: 24px;
  }
  
  .hero-stats-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* ========================================
   GAME MODES DISPLAY
   ======================================== */

.game-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-md);
}

.game-mode-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all var(--transition-base);
}

.game-mode-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mode-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: var(--spacing-sm) 0;
}

.season-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-tertiary);
}

.season-info svg {
  width: 14px;
  height: 14px;
  color: var(--primary-color);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .game-modes-grid {
    grid-template-columns: 1fr;
  }
}

/* Clickable game mode cards */
.game-mode-card.clickable {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.game-mode-card.clickable:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.game-mode-card.clickable:active {
  transform: translateY(-2px);
}

.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  gap: var(--spacing-xs);
}

.external-link-icon {
  color: var(--primary-color);
  opacity: 0.6;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.game-mode-card.clickable:hover .external-link-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.mode-domain-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--spacing-sm);
  padding: 6px 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--primary-color);
  font-weight: 600;
  transition: all var(--transition-base);
}

.mode-domain-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.game-mode-card.clickable:hover .mode-domain-badge {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-color);
  transform: translateX(2px);
}

.mode-domain-badge span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Enhance mode badge when card is clickable */
.game-mode-card.clickable .mode-badge {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  transition: all var(--transition-base);
}

.game-mode-card.clickable:hover .mode-badge {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mode-domain-badge {
    font-size: 10px;
    padding: 5px 8px;
  }
  
  .mode-domain-badge svg {
    width: 10px;
    height: 10px;
  }
  
  .external-link-icon {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .mode-domain-badge span {
    max-width: 150px;
  }
}
.reviews-section {
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  width: 100%;
}

.reviews-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--spacing-lg);
}

.reviews-header svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

.reviews-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reviews-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--input-border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.reviews-loading p {
  font-size: 14px;
  color: var(--text-secondary);
}

.reviews-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.reviews-empty .empty-icon {
  width: 80px;
  height: 80px;
  color: var(--text-tertiary);
  opacity: 0.5;
  margin-bottom: 16px;
}

.reviews-empty h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.reviews-empty p {
  font-size: 14px;
  color: var(--text-secondary);
}

.reviews-container {
  margin-top: 0;
  overflow: hidden;
  width: 100%;
}

/* Reviews Stats Section */
.reviews-stats {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.reviews-stats-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.reviews-stats-main {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
  flex-wrap: wrap;
}

.reviews-stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-stat-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.reviews-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.reviews-stat-stars {
  font-size: 16px;
  color: #ffc107;
  letter-spacing: 2px;
  margin-top: 2px;
  line-height: 1.2;
}

/* Rating Distribution */
.reviews-distribution {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-dist-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.reviews-dist-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-dist-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.reviews-dist-star {
  color: #ffc107;
  font-size: 14px;
}

.reviews-dist-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.reviews-dist-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.reviews-dist-count {
  min-width: 30px;
  text-align: right;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  width: 100%;
  align-items: start;
}

.reviews-grid .review-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.review-card {
  background: linear-gradient(155deg,var(--bg-card),rgba(20,20,40,.9));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-shadow:
    0 4px 20px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.04);
  position:relative;
  overflow:hidden
}

/* Gradient accent on top */
.review-card::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:2px;
  background:linear-gradient(90deg,var(--primary-color),var(--accent-color));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform var(--transition-smooth)
}

.review-card:hover {
  border-color: var(--border-glow);
  box-shadow:
    0 12px 36px rgba(0,0,0,.2),
    0 0 40px rgba(99,102,241,.08);
  transform: translateY(-4px);
}

.review-card:hover::before {
  transform:scaleX(1)
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px; /* Prevent shrinking */
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
  min-width: 0; /* Allow flex item to shrink */
  overflow: hidden; /* Prevent overflow */
}

.review-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  
  /* Text truncation */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.review-rating {
  font-size: 14px;
  color: #ffc107;
  letter-spacing: 2px;
}

.review-date {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

/* Load More Button */
.reviews-load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.btn-load-more-reviews {
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-load-more-reviews:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-load-more-reviews:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile adjustments for reviews */
@media (max-width: 768px) {
  .reviews-section {
    margin-bottom: var(--spacing-md);
  }
  
  .reviews-header {
    margin-bottom: var(--spacing-md);
  }
  
  .reviews-header h2 {
    font-size: 20px;
  }
  
  .reviews-stats {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
  }
  
  .reviews-stats-main {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
  }
  
  .reviews-stat-value {
    font-size: 28px;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  
  .review-card {
    min-width: 0;
    width: 100%;
    padding: var(--spacing-md);
  }
}

/* Tablet adjustments for reviews */
@media (max-width: 1024px) and (min-width: 769px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .review-header {
    gap: 10px;
  }
  
  .review-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  
  .review-author {
    font-size: 13px;
  }
  
  .review-text {
    font-size: 13px;
    max-height: 100px;
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 480px) {
  .review-card {
    min-width: 240px;
    max-width: 260px;
    width: 260px;
    padding: 12px;
  }
  
  .review-text {
    max-height: 90px;
    -webkit-line-clamp: 4;
  }
}

/* Ensure parent containers don't cause overflow */
.info-card {
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.left-content,
.right-content {
  max-width: 100%;
  overflow: hidden;
}

/* Server Active Event Component */
.server-active-event {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  overflow: hidden;
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.server-active-event:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
}

.server-active-event:hover .event-glow {
  opacity: 0.2;
  transform: scale(1.1);
}

.server-active-event:hover .event-title {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.event-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--event-color, var(--primary-color)) 0%, transparent 70%);
  opacity: 0.1;
  animation: pulseGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.1); opacity: 0.15; }
}

.event-content {
  position: relative;
  z-index: 1;
}

.event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.event-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-type-badge svg {
  width: 14px;
  height: 14px;
  color: var(--type-color, var(--primary-color));
}

.event-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-status-badge.upcoming {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.event-status-badge.ongoing {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success-color);
  animation: pulseStatus 2s ease-in-out infinite;
}

@keyframes pulseStatus {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.event-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.event-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.event-timer-section {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.event-timer {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.timer-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 20px var(--primary-glow);
  animation: numberFlip 1s ease-in-out;
}

@keyframes numberFlip {
  0% { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

.timer-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timer-separator {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 4px;
  animation: blink 1s ease-in-out infinite;
}

.timer-label-main {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.event-duration svg {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
}


@media (max-width: 768px) {
  .server-active-event {
    padding: var(--spacing-md);
  }

  .event-title {
    font-size: 20px;
  }

  .timer-display {
    gap: 4px;
  }

  .timer-unit {
    min-width: 50px;
  }

  .timer-value {
    font-size: 24px;
  }

  .timer-separator {
    font-size: 18px;
  }

  .event-timer-section {
    padding: var(--spacing-md);
  }
}