/* ============================
   AzaCraft – Hytale Server
   Professional Modern Theme
   ============================ */

/* Self-hosted Fonts (DSGVO-konform) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-extrabold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/inter-black.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrainsmono-regular.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrainsmono-medium.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/jetbrainsmono-semibold.woff2') format('woff2'); }

:root {
  --bg: #0f172a;
  --bg-alt: #162032;
  --card: #1e293b;
  --card-hover: #253449;
  --surface: #334155;
  --border: #334155;
  --border-light: #475569;
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.15);
  --amber: #fbbf24;
  --amber-dim: rgba(251, 191, 36, 0.15);
  --indigo: #818cf8;
  --indigo-dim: rgba(129, 140, 248, 0.15);
  --rose: #fb7185;
  --rose-dim: rgba(251, 113, 133, 0.15);
  --sky: #38bdf8;
  --sky-dim: rgba(56, 189, 248, 0.15);
  --red: #f87171;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; transition: color var(--ease); }
a:hover { color: #5eead4; }
code { font-family: var(--mono); }
img { max-width: 100%; height: auto; display: block; }

.icon {
  width: 20px; height: 20px;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  fill: none; flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--ease);
}
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.97);
  border-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.15);
}

.nav-brand {
  position: absolute; left: clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
}
.nav-brand .aza { color: var(--teal); }
.nav-brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(45,212,191,0.2);
}

/* Centered pill container */
.nav-links {
  display: flex; align-items: center; gap: 0.15rem; list-style: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50px;
  padding: 0.28rem;
}
.nav-links a {
  position: relative;
  padding: 0.4rem 0.9rem; color: var(--text-muted);
  font-weight: 500; font-size: 0.85rem; border-radius: 50px;
  transition: all var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.nav-links a.active {
  color: var(--teal);
  background: rgba(45,212,191,0.12);
}
.nav-links a.active::after { display: none; }

/* CTA button – positioned right */
.nav-cta-item {
  position: absolute; right: clamp(1rem, 4vw, 3rem);
}
.nav-cta {
  background: linear-gradient(135deg, var(--teal), #14b8a6) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.15rem !important;
  border-radius: 50px !important;
  display: inline-flex !important; align-items: center; gap: 0.4rem;
  font-family: var(--mono) !important; font-size: 0.8rem !important;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 12px rgba(45,212,191,0.2);
  transition: all 0.25s ease !important;
  cursor: pointer;
}
.nav-cta:hover {
  background: linear-gradient(135deg, #5eead4, var(--teal)) !important;
  box-shadow: 0 4px 20px rgba(45,212,191,0.35) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

.nav-toggle {
  position: absolute; right: clamp(1rem, 4vw, 3rem);
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 8px; transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle span {
  width: 20px; height: 2px; background: var(--text); border-radius: 1px;
  transition: all 0.3s ease; transform-origin: center;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 1.5rem 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0.4) 0%,
    rgba(15,23,42,0.6) 50%,
    rgba(15,23,42,0.95) 85%,
    var(--bg) 100%
  );
}

.hero-content {
  position: relative; z-index: 1; max-width: 720px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(45,212,191,0.1); border: 1px solid rgba(45,212,191,0.2);
  border-radius: 50px; font-size: 0.8rem; font-weight: 500;
  color: var(--teal); margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 7px; height: 7px; background: var(--text-muted);
  border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
.hero-badge .dot-online {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e, 0 0 12px rgba(34,197,94,0.4);
}
.hero-badge .dot-offline {
  background: var(--red);
  box-shadow: 0 0 6px var(--red), 0 0 12px rgba(248,113,113,0.4);
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 1.25rem; color: #fff;
}
.hero h1 .highlight { color: var(--teal); }

.hero p {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 2rem; line-height: 1.75;
}

.hero-actions {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}

.hero-ip {
  margin-top: 2.5rem;
  display: flex; justify-content: center;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.5rem; font-family: var(--font);
  font-size: 0.9rem; font-weight: 600; border: none;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--ease); text-decoration: none;
}
.btn-primary {
  background: var(--teal); color: #0f172a;
}
.btn-primary:hover {
  background: #5eead4; color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45,212,191,0.25);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05); color: var(--text);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* ─── IP BOX ─── */
.ip-box {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: all var(--ease);
}
.ip-box:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.1);
}
.ip-box code {
  font-size: 1rem; font-weight: 600; color: var(--teal);
}
.ip-box .copy-icon { color: var(--text-dim); display: flex; transition: color var(--ease); }
.ip-box:hover .copy-icon { color: var(--teal); }
.ip-box.copied { border-color: var(--teal); background: rgba(45,212,191,0.08); }
.ip-box.copied code::after {
  content: ' — Kopiert!'; font-size: 0.75rem; color: var(--teal);
}

/* ─── SERVER STATUS CARD ─── */
.server-status-section { background: var(--bg); }

.server-status-card {
  max-width: 860px; margin: 0 auto;
  position: relative;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(30,41,59,0.9), rgba(30,41,59,0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  overflow: hidden;
}
.server-status-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(45,212,191,0.15) 50%, transparent 70%);
  -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;
  pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
}
.server-status-card.online::before { opacity: 1; }
.server-status-card.online {
  border-color: rgba(45,212,191,0.2);
  box-shadow: 0 0 40px rgba(45,212,191,0.06), 0 8px 32px rgba(0,0,0,0.2);
}
.server-status-card.offline {
  border-color: rgba(248,113,113,0.15);
}

.ss-top {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.ss-indicator {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  background: rgba(100,116,139,0.15); color: var(--text-muted);
  transition: all 0.4s ease;
}
.ss-indicator.online {
  background: rgba(34,197,94,0.12); color: #4ade80;
}
.ss-indicator.offline {
  background: rgba(248,113,113,0.12); color: #f87171;
}
.ss-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim);
  animation: pulse 2s ease-in-out infinite;
}
.ss-dot.online {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e, 0 0 12px rgba(34,197,94,0.3);
}
.ss-dot.offline {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}
.ss-server-name {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--text-dim); letter-spacing: 0.5px;
}
.ss-meta {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.25rem;
}
.ss-info {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted);
  white-space: nowrap;
}
.ss-info .icon { color: var(--text-dim); width: 14px; height: 14px; }

/* Player section */
.ss-players-section { margin-bottom: 0.5rem; }
.ss-stat-header {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.ss-stat-header .icon { color: var(--teal); flex-shrink: 0; }
.ss-stat-header strong {
  margin-left: auto; color: var(--text);
  font-weight: 700; font-size: 0.95rem;
  font-family: var(--mono);
}

.ss-bar {
  height: 8px; background: var(--surface);
  border-radius: 4px; overflow: hidden;
  margin-bottom: 0.75rem;
}
.ss-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #14b8a6, #5eead4);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  min-width: 0;
  position: relative;
}
.ss-bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ss-playerlist {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  min-height: 1.6rem;
}
.ss-player {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.7rem;
  background: var(--teal-dim); border-radius: 50px;
  font-size: 0.78rem; font-weight: 500; color: var(--teal);
  border: 1px solid rgba(45,212,191,0.1);
  transition: all 0.2s ease;
}
.ss-player:hover {
  background: rgba(45,212,191,0.2);
  border-color: rgba(45,212,191,0.3);
}
.ss-player::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 4px #22c55e;
}
.ss-empty {
  color: var(--text-dim); font-size: 0.8rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .server-status-card {
    padding: 1.25rem;
  }
  .ss-top {
    flex-wrap: wrap; gap: 0.75rem;
  }
  .ss-meta {
    margin-left: 0; width: 100%;
    justify-content: flex-start;
  }
}

/* ─── SECTIONS ─── */
.section { position: relative; padding: 5rem clamp(1rem, 4vw, 3rem); }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center; margin-bottom: 3.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
}
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--teal); margin-bottom: 0.5rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-muted); font-size: 1rem;
}

.container { max-width: 1120px; margin: 0 auto; }

/* ─── IMAGE SECTION (visual break with parallax) ─── */
.image-banner {
  position: relative; height: 280px; overflow: hidden;
  margin: 0;
}
.image-banner img {
  width: 100%; height: 120%; object-fit: cover;
  object-position: center 40%;
  transform: translateY(0);
}
.image-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    var(--bg) 0%,
    rgba(15,23,42,0.5) 25%,
    rgba(15,23,42,0.4) 50%,
    rgba(15,23,42,0.6) 75%,
    var(--bg-alt) 100%
  );
}

/* ─── FEATURE CARDS ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(45,212,191,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 20px rgba(45,212,191,0.08);
}
.feature-card:hover .feature-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon.teal   { background: var(--teal-dim);   color: var(--teal); }
.feature-icon.amber   { background: var(--amber-dim);  color: var(--amber); }
.feature-icon.indigo  { background: var(--indigo-dim); color: var(--indigo); }
.feature-icon.sky     { background: var(--sky-dim);    color: var(--sky); }
.feature-icon.rose    { background: var(--rose-dim);   color: var(--rose); }

.feature-card h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem;
}
.feature-card p {
  color: var(--text-muted); font-size: 0.875rem; line-height: 1.6;
}

/* ─── STATS ─── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.stat {
  text-align: center; padding: 2rem 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px; border-radius: 1px;
}
.stat:nth-child(1)::before { background: var(--teal); }
.stat:nth-child(2)::before { background: var(--indigo); }
.stat:nth-child(3)::before { background: var(--amber); }
.stat:nth-child(4)::before { background: var(--sky); }
.stat:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
}
.stat:nth-child(1) .stat-icon { background: var(--teal-dim); color: var(--teal); }
.stat:nth-child(2) .stat-icon { background: var(--indigo-dim); color: var(--indigo); }
.stat:nth-child(3) .stat-icon { background: var(--amber-dim); color: var(--amber); }
.stat:nth-child(4) .stat-icon { background: var(--sky-dim); color: var(--sky); }
.stat-value {
  font-size: 2.5rem; font-weight: 900; line-height: 1;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
}
.stat:nth-child(1) .stat-value { color: var(--teal); }
.stat:nth-child(2) .stat-value { color: var(--indigo); }
.stat:nth-child(3) .stat-value { color: var(--amber); }
.stat:nth-child(4) .stat-value { color: var(--sky); }
.stat-label { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; }

/* ─── CTA ─── */
.cta {
  text-align: center; padding: 5rem clamp(1rem,4vw,3rem);
  position: relative; overflow: hidden;
  background: var(--bg-alt);
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(45,212,191,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(129,140,248,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.cta::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.2), transparent);
}
.cta .container { position: relative; z-index: 1; }
.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.75rem;
}
.cta p {
  color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem;
}
.cta-actions {
  display: flex; gap: 0.75rem; justify-content: center;
  align-items: center; flex-wrap: wrap; margin-top: 1.5rem;
}
.discord-count {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border-radius: 50px; border: 1px solid var(--border);
}
.discord-count strong { color: var(--text); }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s ease; pointer-events: none;
}
.back-to-top.show {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.back-to-top:hover {
  background: var(--teal); color: #0f172a;
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(45,212,191,0.25);
}

/* ─── COMMANDS PAGE ─── */
.commands-container { max-width: 900px; margin: 0 auto; }

.cmd-category { margin-bottom: 2.5rem; }

.cat-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem; padding: 0.5rem 0.25rem 0.6rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.cat-header:hover { background: rgba(255,255,255,0.02); }
.cat-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-header h3 { font-size: 1.15rem; font-weight: 700; }
.cat-chevron {
  margin-left: auto; color: var(--text-dim);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.cmd-category.collapsed .cat-chevron {
  transform: rotate(-90deg);
}
.cmd-category.collapsed .cat-header {
  margin-bottom: 0; border-bottom-color: transparent;
}

/* Accordion animation */
.cmd-list-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s ease;
}
.cmd-category.collapsed .cmd-list-wrap {
  grid-template-rows: 0fr;
}
.cmd-list {
  display: flex; flex-direction: column; gap: 0.4rem;
  overflow: hidden;
}

.cmd-item {
  display: grid; grid-template-columns: minmax(180px, auto) 1fr auto;
  align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}
.cmd-item:hover {
  border-color: var(--border-light); background: var(--card-hover);
}
.cmd-name {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 500; color: var(--teal);
}
.cmd-desc { color: var(--text-muted); font-size: 0.825rem; }
.cmd-badge {
  font-size: 0.65rem; font-weight: 600; padding: 0.15rem 0.5rem;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--teal-dim); color: var(--teal); white-space: nowrap;
}

/* ─── COMMAND TABS (category jump-nav) ─── */
.cmd-tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  justify-content: center;
  margin-bottom: 2rem; padding: 0 0.5rem;
}
.cmd-tab {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  transition: all 0.2s ease; cursor: pointer; white-space: nowrap;
}
.cmd-tab:hover { border-color: var(--border-light); color: var(--text); background: var(--card-hover); }
.cmd-tab.active {
  background: var(--teal-dim);
  border-color: rgba(45,212,191,0.3);
  color: var(--teal);
}
.cmd-tab .icon { width: 14px; height: 14px; }
.cmd-tab-count {
  font-size: 0.65rem; font-weight: 700;
  background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.4rem; border-radius: 50px;
  font-family: var(--mono);
  min-width: 1.2rem; text-align: center;
}
.cmd-tab.active .cmd-tab-count {
  background: rgba(45,212,191,0.15);
}

.cat-count {
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-dim);
  margin-left: auto;
  font-family: var(--mono);
}

/* ─── FEATURES DETAIL PAGE ─── */
.feature-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; margin-bottom: 4.5rem;
}
.feature-detail:nth-child(even) { direction: rtl; }
.feature-detail:nth-child(even) > * { direction: ltr; }

.fd-text h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.6rem; }
.fd-text p { color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.7; }

.fd-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.7rem; margin-bottom: 0.75rem;
  background: var(--teal-dim); border-radius: 50px;
  font-size: 0.75rem; font-weight: 500; color: var(--teal);
}
.fd-tag .icon { width: 14px; height: 14px; }

.fd-list { list-style: none; }
.fd-list li {
  padding: 0.3rem 0; color: var(--text-secondary); font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.fd-list li .icon { width: 15px; height: 15px; color: var(--teal); }

.fd-visual {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  overflow: hidden;
}
.fd-visual img {
  border-radius: var(--radius-sm); margin-bottom: 1rem;
}

/* ─── RANKS PAGE ─── */
.ranks-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem; max-width: 1120px; margin: 0 auto;
}

.rank-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  text-align: center; transition: all var(--ease);
  position: relative; overflow: hidden;
}
.rank-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.rank-card.spieler::before { background: var(--teal); }
.rank-card.vip::before     { background: var(--amber); }
.rank-card.mvp::before     { background: var(--sky); }
.rank-card.mvpplus::before { background: linear-gradient(90deg, var(--rose), var(--indigo)); }

.rank-card.spieler:hover { border-color: rgba(45,212,191,0.3); }
.rank-card.vip:hover     { border-color: rgba(251,191,36,0.3); }
.rank-card.mvp:hover     { border-color: rgba(56,189,248,0.3); }
.rank-card.mvpplus:hover { border-color: rgba(251,113,133,0.3); }

.rank-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
}
.rank-card.spieler .rank-icon { background: var(--teal-dim); color: var(--teal); }
.rank-card.vip .rank-icon     { background: var(--amber-dim); color: var(--amber); }
.rank-card.mvp .rank-icon     { background: var(--sky-dim); color: var(--sky); }
.rank-card.mvpplus .rank-icon { background: var(--rose-dim); color: var(--rose); }

.rank-name { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.15rem; }
.rank-card.spieler .rank-name { color: var(--teal); }
.rank-card.vip .rank-name     { color: var(--amber); }
.rank-card.mvp .rank-name     { color: var(--sky); }
.rank-card.mvpplus .rank-name { color: var(--rose); }

.rank-tag {
  font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.rank-perks { list-style: none; text-align: left; margin-bottom: 1rem; }
.rank-perks li {
  padding: 0.3rem 0; font-size: 0.85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.rank-perks li .icon { width: 14px; height: 14px; color: var(--teal); }
.rank-perks li.hl { color: var(--text); font-weight: 500; }

/* ─── RULES PAGE ─── */
.rules-container { max-width: 740px; margin: 0 auto; }

.rule-group { margin-bottom: 2rem; }
.rule-group-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem;
}
.rule-group-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--amber-dim); color: var(--amber);
}

.rule-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; margin-bottom: 0.4rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}
.rule-item:hover { border-color: var(--border-light); }
.rule-num {
  font-family: var(--mono); font-weight: 700; color: var(--teal);
  width: 2rem; flex-shrink: 0;
}
.rule-text { color: var(--text-secondary); font-size: 0.9rem; }

.rules-warn {
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: rgba(248,113,113,0.06); border: 1px solid rgba(248,113,113,0.15);
  border-radius: var(--radius); color: var(--text-muted);
  font-size: 0.875rem; display: flex; align-items: flex-start; gap: 0.6rem;
}
.rules-warn .icon { color: var(--red); flex-shrink: 0; margin-top: 1px; }
.rules-warn strong { color: var(--red); }

/* ─── PAGE HEADER (sub pages) ─── */
.page-header {
  padding: 140px 1.5rem 56px; text-align: center;
  position: relative; overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-header-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-header-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0.65) 0%,
    rgba(15,23,42,0.85) 60%,
    var(--bg) 100%
  );
}
.page-header .section-label,
.page-header h1,
.page-header p { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900; letter-spacing: -0.5px; margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--text-muted); font-size: 1rem;
  max-width: 520px; margin: 0 auto;
}

/* ─── SEARCH ─── */
.search-bar {
  max-width: 440px; margin: 1.5rem auto 2.5rem; position: relative;
}
.search-bar input {
  width: 100%; padding: 0.7rem 1rem 0.7rem 2.75rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font); font-size: 0.9rem; outline: none;
  transition: all var(--ease);
}
.search-bar input::placeholder { color: var(--text-dim); }
.search-bar input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.1);
}
.search-bar .s-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none; display: flex;
}

/* ─── FOOTER ─── */
.footer {
  padding: 3rem clamp(1rem,4vw,3rem) 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem;
  align-items: start;
}
.footer-brand {
  font-weight: 700; font-size: 1.1rem; color: var(--text);
}
.footer-brand .aza { color: var(--teal); }
.footer-desc {
  color: var(--text-dim); font-size: 0.8rem;
  max-width: 320px; line-height: 1.5; margin-top: 0.4rem;
}
.footer p { color: var(--text-dim); font-size: 0.75rem; margin-top: 0.75rem; }
.footer-links {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--text-dim); font-size: 0.8rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.footer-links a:hover { color: var(--teal); }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--teal); color: #0f172a;
  padding: 0.65rem 1.5rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 4px 24px rgba(45,212,191,0.35);
  z-index: 999; opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── HOW TO CONNECT ─── */
.connect-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
.connect-step {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
}
.connect-step:hover {
  border-color: rgba(45,212,191,0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 20px rgba(45,212,191,0.05);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: #0f172a;
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(45,212,191,0.25);
}
.connect-step h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem;
}
.connect-step p {
  color: var(--text-muted); font-size: 0.85rem; line-height: 1.5;
}

/* ─── PAGE TRANSITION ─── */
body {
  animation: pageIn 0.4s ease-out;
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.page-leaving {
  animation: pageOut 0.2s ease-in forwards;
}
@keyframes pageOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .navbar { justify-content: space-between; }
  .nav-brand { position: relative; left: auto; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(15,23,42,0.98); border: none; border-radius: 0;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex !important; width: 100%;
    padding: 0.75rem 1rem !important; font-size: 1rem !important;
    color: var(--text) !important; border-radius: var(--radius-sm) !important;
  }
  .nav-links a::after { display: none !important; }
  .nav-links a:hover, .nav-links a.active {
    background: rgba(45,212,191,0.1) !important;
    color: var(--teal) !important;
  }
  .nav-cta-item {
    position: relative !important; right: auto !important;
    margin-top: 0.5rem;
  }
  .nav-links .nav-cta {
    justify-content: center; width: 100%;
    background: linear-gradient(135deg, var(--teal), #14b8a6) !important;
    color: #0f172a !important;
    font-size: 0.9rem !important;
  }
  .nav-toggle { display: flex; position: relative; right: auto; }

  .cmd-tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    justify-content: flex-start; padding-bottom: 0.5rem;
    scrollbar-width: none; margin-left: -0.5rem; margin-right: -0.5rem;
  }
  .cmd-tabs::-webkit-scrollbar { display: none; }

  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  .stats-row { grid-template-columns: 1fr 1fr; }
  .connect-steps { grid-template-columns: 1fr; }

  .cmd-item { grid-template-columns: 1fr; gap: 0.15rem; }
  .cmd-badge { justify-self: start; }

  .feature-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-detail:nth-child(even) { direction: ltr; }

  .ranks-grid { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 1rem; }
  .page-header { padding: 96px 1rem 36px; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-desc { max-width: none; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
