:root{
  --bg:#0f1220; --card:#161a2b; --soft:#121629;
  --text:#e9ecf3; --muted:#a7afc6;
  --brand:#7c5cff; --brand-2:#46e6a6;
  --border:rgba(255,255,255,.10);
  --radius:14px; --shadow:0 10px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box;transition:background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease}
html,body{height:100%}
body{
  margin:0; font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(60% 40% at 10% -10%, rgba(124,92,255,.12), transparent 60%),
    radial-gradient(50% 35% at 110% 0%, rgba(70,230,166,.10), transparent 60%),
    var(--bg);
}
.container{max-width:1200px;margin:0 auto;padding:0 18px}
header .container{max-width:1400px}

/* header */
header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--card);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(12px);
  padding-bottom:0;
}

/* Navigation Wrapper */
.nav-wrapper{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:40px;
  padding:12px 0 0 0;
  position:relative;
}

/* Hamburger (hidden on desktop) */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
  z-index:1001;
  transition:all 0.3s ease;
}
.hamburger span{
  width:26px;
  height:3px;
  background:var(--text);
  border-radius:3px;
  transition:all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(7px, 7px)}
.hamburger.active span:nth-child(2){opacity:0;transform:translateX(-20px)}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(7px, -7px)}

/* Center Logo with Triangle */
.brand-center{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  position:relative;
  z-index:1001;
  order:2;
  margin-top:-12px;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,0.18)) drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}

.logo-triangle{
  position:relative;
  padding:20px 120px 40px 120px;
  background:#181c2e;
  clip-path:polygon(0 0, 100% 0, 50% 100%);
  transition:all 0.3s ease;
  margin-bottom:-25px;
  margin-left:-80px;
  margin-right:-80px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset -1px 0 0 rgba(0,0,0,.3),
    inset 1px 0 0 rgba(0,0,0,.3);
  display:flex;
  justify-content:center;
  align-items:center;
}

.logo-triangle a{
  display:block;
  text-align:center;
}

.logo-triangle::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(180deg, rgba(255,255,255,.05) 0%, transparent 30%, transparent 100%);
  clip-path:polygon(0 0, 100% 0, 50% 100%);
  pointer-events:none;
}

.logo-triangle:hover{
  transform:translateY(-2px);
  filter:drop-shadow(0 12px 35px rgba(0,0,0,.9)) drop-shadow(-8px 0 22px rgba(0,0,0,.8)) drop-shadow(8px 0 22px rgba(0,0,0,.8)) drop-shadow(0 6px 16px rgba(0,0,0,.7));
}

.logo-triangle .logo{
  max-height:90px;
  max-width:260px;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 2px 1px rgba(0,0,0,0.8)) drop-shadow(0 2px 4px rgba(0,0,0,0.5)) drop-shadow(0 0 6px rgba(157,126,77,0.5));
}

/* Hide mobile logo on desktop */
.logo-mobile{
  display:none !important;
}

.logo-desktop{
  display:block !important;
}

/* Navigation Links Container */
.nav-links{
  display:contents;
}

/* Left Navigation */
.nav-left{
  display:flex;
  align-items:center;
  gap:10px;
  order:1;
}

/* Right Navigation */
.nav-right{
  display:flex;
  align-items:center;
  gap:10px;
  order:3;
}

/* Dropdown styles */
.dropdown{position:relative}
.dropdown-toggle{cursor:pointer;position:relative}
.dropdown-toggle::after{content:'▼';font-size:10px;margin-left:6px;transition:transform 0.2s}
.dropdown:hover .dropdown-toggle::after{transform:rotate(180deg)}
.dropdown-menu{
  position:absolute;
  top:100%;
  right:0;
  margin-top:8px;
  background:rgba(22,26,43,0.98);
  border:1px solid var(--border);
  border-radius:12px;
  padding:8px;
  min-width:180px;
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
  opacity:0;
  visibility:hidden;
  transform:translateY(-10px);
  transition:all 0.3s ease;
  z-index:100;
}
.dropdown:hover .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown-menu a{
  display:block;
  padding:10px 14px;
  border-radius:8px;
  text-decoration:none;
  color:var(--text);
  font-weight:700;
  transition:background 0.2s;
}
.dropdown-menu a:hover{background:rgba(255,255,255,0.08)}

/* Language Selector */
.lang{display:flex;gap:6px}
.desktop-lang-selector{
  position:absolute;
  right:18px;
  top:12px;
}
.lang button{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.lang button.active{border-color:var(--text);background:rgba(255,255,255,.08)}
.flag{width:16px;height:16px;border-radius:4px;object-fit:cover;display:inline-block;box-shadow:0 0 0 1px rgba(0,0,0,.2)}

/* Mobile Responsive */
@media (max-width: 992px) {
  header{padding-bottom:0}

  .nav-wrapper{
    justify-content:space-between;
    gap:12px;
    padding:10px 0 5px 0;
  }

  /* Hide desktop language selector on mobile */
  .desktop-lang-selector{
    display:none;
  }

  /* Logo on left */
  .brand-center{
    order:1;
    margin-top:0;
  }

  /* Show hamburger on right */
  .hamburger{
    display:flex;
    order:2;
  }

  .logo-triangle{
    padding:10px 0;
    background:transparent;
    clip-path:none;
    box-shadow:none;
    margin:0;
  }

  .logo-triangle::before {
    display: none;
  }

  .logo-triangle .logo-mobile{
    height:55px;
    width:auto;
    max-width:none;
    max-height:none;
  }

  /* Show mobile logo, hide desktop logo */
  .logo-mobile{
    display:block !important;
  }

  .logo-desktop{
    display:none !important;
  }

  /* Navigation becomes full-screen overlay */
  .nav-links{
    display:block;
    position:fixed;
    top:100px;
    left:0;
    right:0;
    background:rgba(15,18,32,0.98);
    backdrop-filter:blur(16px);
    padding:20px;
    max-height:0;
    overflow:hidden;
    opacity:0;
    visibility:hidden;
    border-bottom:1px solid var(--border);
    transition:all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:0 10px 30px rgba(0,0,0,0.5);
    order:4;
  }

  .nav-links.active{
    max-height:calc(100vh - 100px);
    opacity:1;
    visibility:visible;
    overflow-y:auto;
  }

  /* Stack navigation items vertically */
  .nav-left,
  .nav-right{
    display:flex;
    flex-direction:column;
    gap:8px;
    width:100%;
  }

  .nav-left{order:auto}
  .nav-right{order:auto}

  /* Full width buttons */
  .nav-links .btn{
    width:100%;
    text-align:center;
    padding:14px 20px;
    font-size:16px;
  }

  /* Dropdown adjustments */
  .nav-links .dropdown{width:100%}

  .nav-links .dropdown-toggle{
    width:100%;
    text-align:center;
    padding:14px 20px;
  }

  .nav-links .dropdown-menu{
    position:static;
    opacity:0;
    visibility:visible;
    transform:none;
    margin-top:8px;
    box-shadow:none;
    background:rgba(22,26,43,0.5);
    max-height:0;
    overflow:hidden;
    transition:all 0.3s ease;
  }

  /* Prevent body scroll when menu open */
  body.menu-open{overflow:hidden}

  /* Scrollbar styling */
  .nav-links::-webkit-scrollbar{width:6px}
  .nav-links::-webkit-scrollbar-track{background:rgba(255,255,255,0.05);border-radius:3px}
  .nav-links::-webkit-scrollbar-thumb{background:rgba(124,92,255,0.5);border-radius:3px}
  .nav-links::-webkit-scrollbar-thumb:hover{background:rgba(124,92,255,0.7)}
}

/* Tablet and smaller mobile adjustments */
@media (max-width: 768px) {
  .logo-triangle .logo-mobile{
    height:65px;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .hamburger span{width:24px}

  .nav-links .btn{
    padding:12px 16px;
    font-size:15px;
  }

  .nav-links .dropdown-toggle{
    padding:12px 16px;
  }

  .logo-triangle .logo-mobile{
    height:75px;
  }
}
/* buttons */
.btn{
  display:inline-block;
  padding:12px 20px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  font-size:15px;
  border:1.5px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
  transition:all 0.25s ease;
  position:relative;
  overflow:hidden;
}
.btn:hover{
  border-color:rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(0,0,0,.3);
}
.btn:active{
  transform:translateY(0);
  box-shadow:0 2px 8px rgba(0,0,0,.2);
}
.btn.primary{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}
.btn.primary:hover{
  background:#8d6fff;
  border-color:#8d6fff;
  box-shadow:0 6px 20px rgba(124,92,255,.3);
}
.btn.success{
  background:var(--brand-2);
  color:#0f1220;
  border-color:var(--brand-2);
}
.btn.success:hover{
  background:#5eeab3;
  border-color:#5eeab3;
  box-shadow:0 6px 20px rgba(70,230,166,.3);
}
.btn.discord{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#5865F2;
  color:#fff;
  border-color:#5865F2;
}
.btn.discord:hover{
  background:#4752C4;
  border-color:#4752C4;
  box-shadow:0 6px 20px rgba(88,101,242,.4);
}
.btn.discord img{height:18px;width:auto;display:inline-block;object-fit:contain}
/* hero */
.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;margin:26px 0}
@media (max-width:860px){ .hero{grid-template-columns:1fr} }
.card{
  background:linear-gradient(180deg,rgba(22,26,43,0.7),rgba(18,22,41,0.7));
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  transition:transform 0.3s ease, box-shadow 0.3s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 15px 50px rgba(0,0,0,.5)}
h1{margin:0 0 8px;font-size:32px;font-weight:900;letter-spacing:-0.02em}
.muted{color:var(--muted)}
.cta-row{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}
.status{padding:14px;border-radius:12px;background:rgba(255,255,255,.03);border:1px dashed var(--border)}
.lamp{display:inline-block;width:11px;height:11px;border-radius:50%;background:#34d399;
  box-shadow:0 0 10px #34d399;margin-right:8px;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1;box-shadow:0 0 10px #34d399}50%{opacity:0.7;box-shadow:0 0 20px #34d399}}
/* sections */
.grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin:18px 0}
@media (max-width:980px){ .grid{grid-template-columns:1fr} }
.panel h3{margin:0 0 8px;font-size:16px}
.rates{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:6px}
.rate{padding:12px;border-radius:12px;background:rgba(255,255,255,.05);border:1px dashed var(--border);text-align:center}
.rate b{font-size:18px}
.server-rates{display:flex;gap:8px;margin-top:12px}
.rate-item{display:flex;flex-direction:column;align-items:center;padding:12px 10px;border-radius:8px;background:rgba(255,255,255,.05);border:1px solid var(--border);flex:1}
.rate-item span{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px}
.rate-item strong{color:var(--brand-2);font-weight:800;font-size:18px}
/* footer */
footer{margin:28px 0 18px;padding:12px 0;border-top:1px solid var(--border);color:var(--muted);text-align:center}
/* content helpers */
.section-title{margin:0 0 8px;font-size:20px}
ul.clean{margin:8px 0 0 18px; padding:0}
ul.clean li{margin:6px 0}
/* floating discord button */
.discord-float{position:fixed;bottom:24px;right:24px;z-index:9999;
  padding:14px 20px;border-radius:10px;background:#5865F2;
  border:1px solid #5865F2;color:#fff !important;text-decoration:none !important;
  font-weight:700;font-size:16px;display:inline-flex;align-items:center;gap:10px;
  box-shadow:0 4px 16px rgba(88,101,242,0.5);
  transition:all 0.3s ease;backdrop-filter:blur(10px)}
.discord-float:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(88,101,242,0.7);background:#4752C4;color:#fff !important}
.discord-float img{height:22px;width:22px;display:block;object-fit:contain}
