:root {
  --green-900: #0e1010;
  --green-800: #151818;
  --green-700: #1c2020;
  --green-600: #262b2a;
  --green-500: #3a4540;
  --green-400: #4db870;
  --green-300: #6bc98a;
  --green-200: #a8dcc0;
  --accent: #4db870;
  --accent-soft: rgba(77, 184, 112, 0.08);
  --bg: #0a0b0b;
  --bg-soft: #0f1111;
  --card: #141616;
  --text: #f0f2f1;
  --text-dim: #949a96;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

a { color: inherit; text-decoration: none; }

/* ===== Icon + a11y utilities ===== */
.icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #06210f;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; outline: none; }

/* Role badge */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  color: var(--role-color, #8bd450);
  background: color-mix(in srgb, var(--role-color, #8bd450) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--role-color, #8bd450) 42%, transparent);
}
.user-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.user-achievement-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.gts-badge-icon.is-staff {
  outline: 1px solid rgba(77, 184, 112, 0.45);
  outline-offset: 1px;
  border-radius: 4px;
}

/* Panel badges */
.badge-redeem-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
}
.badge-redeem-form .sn-field { flex: 1 1 220px; margin: 0; }
.badge-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}
.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.badge-card input { position: absolute; opacity: 0; pointer-events: none; }
.badge-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.badge-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.badge-card-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.35;
}
.badge-card.is-equipped,
.badge-card:has(input:checked) {
  border-color: rgba(77, 184, 112, 0.45);
  background: var(--accent-soft);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green-300);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 11, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 600;
}
.logo-leaf { font-size: 1.5rem; }
.logo-text strong { color: var(--accent); font-weight: 800; }
.logo-img { height: 40px; width: auto; display: block; }
.footer-brand .logo-img { height: 44px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.main-nav > a,
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
  padding: 8px 12px;
  border-radius: 10px;
}
.main-nav > a:hover,
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-dropdown { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-drop-btn:hover,
.nav-dropdown.open .nav-drop-btn { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-drop-btn .caret { font-size: 0.65rem; opacity: 0.7; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 60;
}
.nav-dropdown.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}
.nav-drop-menu a:hover { background: var(--green-700); color: var(--text); }

/* Language switch */
.lang-switch { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-700);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: 120%;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  min-width: 150px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.lang-menu li:hover { background: var(--green-700); color: var(--text); }

/* User menu / account bar (Profil | Inbox | Alerts) */
.account-bar {
  display: inline-flex;
  align-items: stretch;
  background: var(--green-800, #0f2a1c);
  border: 1px solid var(--line);
  border-radius: 10px;
  /* visible so profile/inbox/alerts dropdowns are not clipped */
  overflow: visible;
}
.account-bar-seg {
  position: relative;
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--line);
}
.account-bar-seg:first-child .account-bar-btn {
  border-radius: 9px 0 0 9px;
}
.account-bar-seg:last-child .account-bar-btn,
.account-bar-seg:last-child .account-bar-link {
  border-radius: 0 9px 9px 0;
}
.account-bar-seg:last-child { border-right: none; }
.account-bar-btn,
.account-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 7px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.account-bar-btn:hover,
.account-bar-link:hover,
.account-bar-link.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.account-bar-btn .user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #0a1f14;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.account-bar-btn .user-avatar-img { background: none; overflow: hidden; }
.account-bar-btn .user-avatar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.account-bar-btn .user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-bar-btn .caret { font-size: 0.7rem; color: var(--text-dim); }
.account-bar .icon-sm { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-dim); }
.account-bar .nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green-500, #3fae6b);
  color: #07210f;
  font-size: 0.7rem;
  font-weight: 800;
}
.user-menu { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-700);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
}
.user-btn .user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #0a1f14;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-btn .user-avatar-img { background: none; overflow: hidden; }
.user-btn .user-avatar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.user-btn .user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn .caret { font-size: 0.7rem; color: var(--text-dim); }
.user-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  max-width: min(360px, calc(100vw - 24px));
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}
.account-bar .user-menu-list { left: 0; right: auto; min-width: 240px; }
.account-bar .account-inbox-list,
.account-bar .account-alerts-list { min-width: 280px; }
.account-bar .account-bar-seg:last-child .user-menu-list { left: auto; right: 0; }
.user-menu-list.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.user-menu-list a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
}
.user-menu-list a:hover { background: var(--green-700); color: var(--text); }
.user-menu-list a::after { display: none; }
.user-menu-list .user-menu-logout {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding-top: 11px;
}
.account-panel-head {
  padding: 8px 12px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--green-300, #7dcea0);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.account-panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.account-panel-foot a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-300, #7dcea0) !important;
}
.account-alert-kind {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #07210f;
  background: var(--green-500, #3fae6b);
  vertical-align: middle;
}
.account-alerts-empty {
  margin: 0;
  padding: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.4;
}
.account-alert-item {
  display: flex;
  flex-direction: column;
  gap: 2px !important;
}
.account-alert-item strong {
  color: var(--text);
  font-size: 0.86rem;
}
.account-alert-item span {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 400;
}
.account-alerts-all {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding-top: 11px !important;
  font-weight: 600;
  color: var(--green-300) !important;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 160px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 360px at 50% -15%, rgba(77, 184, 112, 0.07), transparent 70%),
    linear-gradient(180deg, var(--green-900), var(--bg));
  z-index: -2;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 38px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #0a1f14;
  box-shadow: 0 8px 20px rgba(77, 184, 112, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(77, 184, 112, 0.24); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-nav {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 120px;
  background: var(--bg-soft);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0% 100%);
}

/* ===== Section helpers ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 48px;
}

/* ===== Intro cards ===== */
.cards { background: var(--bg-soft); padding: 80px 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  transition: transform 0.25s, border-color 0.25s;
}
.info-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.12); }
.info-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--accent);
}
.info-icon .icon { width: 30px; height: 30px; }
.info-card h2 { font-size: 1.45rem; margin-bottom: 14px; }
.info-card p { color: var(--text-dim); margin-bottom: 20px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-weight: 600;
}
.card-link:hover { color: var(--accent); }

/* ===== Features table ===== */
.features { padding: 90px 0; }

.feature-table-wrap {
  overflow-x: auto;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 80% at 28% 0%, rgba(77, 184, 112, 0.1), transparent 65%),
    var(--card);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.feature-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  min-width: 860px;
}

.feature-table th,
.feature-table td {
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-table .feat-col,
.feature-table .feat-name {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  min-width: 220px;
  max-width: 280px;
  font-weight: 500;
  color: var(--text);
  background: var(--green-800);
  box-shadow: 8px 0 18px rgba(0, 0, 0, 0.18);
}

.feature-table thead .feat-col {
  z-index: 4;
}

.feature-table tbody .feat-name {
  font-size: 0.92rem;
  line-height: 1.4;
  background: var(--card);
  font-weight: 500;
}

.feature-table tbody tr:nth-child(even) .feat-name {
  background: rgba(255, 255, 255, 0.015);
}

.feature-table tbody tr:hover .feat-name {
  background: var(--green-700);
}

.feature-table .brand-col {
  background: linear-gradient(180deg, rgba(77, 184, 112, 0.14), rgba(77, 184, 112, 0.05));
  border-left: 2px solid rgba(77, 184, 112, 0.55);
  border-right: 2px solid rgba(77, 184, 112, 0.55);
}

.feature-table thead .brand-col {
  background: linear-gradient(180deg, rgba(77, 184, 112, 0.22), rgba(77, 184, 112, 0.08));
  color: var(--text);
  border-bottom-color: rgba(77, 184, 112, 0.35);
  text-transform: none;
  letter-spacing: 0;
}

.feat-brand-head {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.feat-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.feat-brand-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a1f14;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(77, 184, 112, 0.28);
}

.feature-table .chespeak-col,
.feature-table .teaspeak-col {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-size: 0.84rem;
}

.feature-table thead .chespeak-col,
.feature-table thead .teaspeak-col {
  background: var(--green-800);
  color: var(--text-dim);
}

.feature-table .rival-col {
  color: rgba(240, 242, 241, 0.72);
}

.feature-table tbody tr:hover td:not(.feat-name) {
  background: rgba(255, 255, 255, 0.025);
}

.feature-table tbody tr:hover .brand-col {
  background: linear-gradient(180deg, rgba(77, 184, 112, 0.18), rgba(77, 184, 112, 0.08));
}

.feature-table tbody tr.feat-row-detail-first th,
.feature-table tbody tr.feat-row-detail-first td {
  border-top: 2px solid rgba(77, 184, 112, 0.22);
}

.feature-table tbody tr.feat-row-detail .feat-name {
  color: var(--green-200);
  font-weight: 600;
}

.feat-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.feat-status--yes {
  color: #8ee4ad;
  background: rgba(77, 184, 112, 0.16);
  border: 1px solid rgba(77, 184, 112, 0.45);
  box-shadow: 0 0 0 4px rgba(77, 184, 112, 0.06);
}

.feat-status--yes::before { content: "✓"; }

.feat-status--yes.feat-status--brand {
  color: #0a1f14;
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(77, 184, 112, 0.28);
}

.feat-status--no {
  color: #f0a0a0;
  background: rgba(215, 107, 107, 0.1);
  border: 1px solid rgba(215, 107, 107, 0.28);
}

.feat-status--no::before { content: "✕"; }

.feat-status--partial {
  background: rgba(240, 180, 60, 0.55);
  border: 1px solid rgba(240, 200, 90, 0.85);
  box-shadow: 0 0 0 4px rgba(240, 180, 60, 0.08);
}

.feat-pill {
  display: inline-block;
  max-width: 168px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid transparent;
}

.feat-pill--good {
  color: #a8e8be;
  background: rgba(77, 184, 112, 0.12);
  border-color: rgba(77, 184, 112, 0.28);
}

.feat-pill--warn {
  color: #f0d48a;
  background: rgba(240, 180, 60, 0.1);
  border-color: rgba(240, 180, 60, 0.28);
}

.feat-pill--bad {
  color: #f0b0b0;
  background: rgba(215, 107, 107, 0.1);
  border-color: rgba(215, 107, 107, 0.28);
}

.feat-pill--muted,
.feat-pill--neutral {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.feat-pill--mixed {
  color: #e8d4a0;
  background: rgba(240, 180, 60, 0.1);
  border-color: rgba(240, 180, 60, 0.28);
}

.feat-pill--brand {
  color: var(--text);
  background: rgba(77, 184, 112, 0.16);
  border-color: rgba(77, 184, 112, 0.35);
}

@media (max-width: 900px) {
  .feature-table th,
  .feature-table td {
    padding: 12px 10px;
  }

  .feature-table .feat-col,
  .feature-table .feat-name {
    min-width: 180px;
  }

  .feat-pill {
    max-width: 140px;
    font-size: 0.74rem;
    padding: 6px 8px;
  }
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: var(--container, 1120px);
  padding: 12px 18px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #b8d4ff;
  font-size: 0.92rem;
}
.impersonation-banner strong { color: #e8f2ff; }
.impersonation-banner-form { margin: 0; }
.panel-main > .impersonation-banner {
  margin: 0 0 16px;
  max-width: none;
  border-radius: 10px;
}
body.panel-body .impersonation-banner {
  margin: 0 0 16px;
  border-radius: 10px;
}

/* ===== Statistics ===== */
.statistics {
  padding: 90px 0;
  background: var(--bg-soft);
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 20px;
  transition: transform 0.25s;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-icon {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--accent);
}
.stat-icon .icon { width: 26px; height: 26px; }
.stat-number { font-variant-numeric: tabular-nums; }
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label { color: var(--text-dim); margin-top: 8px; }
.stats-history { margin-top: 8px; cursor: pointer; font-family: inherit; }

/* ===== Stats modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(88vh, 780px);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s;
}
.modal-overlay.open .modal-dialog { transform: translateY(0) scale(1); }
.stats-modal { padding: 0; display: flex; flex-direction: column; }
.stats-modal .modal-title { padding: 22px 24px 0; font-size: 1.35rem; margin-bottom: 6px; }
.stats-modal .modal-sub { padding: 0 24px; margin-bottom: 0; font-size: 0.9rem; }
.stats-modal .modal-close { top: 16px; right: 16px; z-index: 2; }
.modal-close {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--green-800);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--green-700); }
.modal-title { font-size: 1.5rem; margin-bottom: 8px; text-align: left; }
.modal-sub { color: var(--text-dim); margin-bottom: 20px; text-align: left; font-size: 0.95rem; }
.stats-modal-content { padding: 18px 24px 24px; overflow: auto; flex: 1; }
.stats-modal-content.is-loading { opacity: 0.45; pointer-events: none; }
.stats-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.stats-modal-loading.hidden { display: none; }
.stats-loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: stats-spin 0.7s linear infinite;
}
@keyframes stats-spin { to { transform: rotate(360deg); } }
.stats-modal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0 14px;
  padding: 10px 12px;
  background: var(--green-800);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.stats-modal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.legend-instances { background: #4db870; }
.legend-servers { background: #949a96; }
.legend-users { background: #6bc98a; }
.legend-bots { background: #b8c4be; }
.stats-chart-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 4px 4px;
  margin-bottom: 16px;
  min-height: 220px;
}
.stats-chart-wrap.is-empty { display: none; }
.stats-chart { width: 100%; height: 220px; display: block; }
.stats-chart-grid { stroke: rgba(148, 163, 184, 0.12); stroke-width: 1; }
.stats-chart-baseline { stroke: rgba(148, 163, 184, 0.22); stroke-width: 1; }
.stats-chart-axis { fill: var(--text-dim); font-size: 10px; font-family: "Inter", system-ui, sans-serif; }
.stats-history-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 220px;
}
.stats-history-table-wrap.hidden { display: none; }
.stats-history-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.stats-history-table th,
.stats-history-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.stats-history-table th {
  position: sticky;
  top: 0;
  background: var(--green-800);
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.stats-history-table tbody tr:last-child td { border-bottom: none; }
.stats-history-table tbody tr.is-latest td { color: var(--text); font-weight: 600; }
.stats-history-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.stats-modal-empty { text-align: center; color: var(--text-dim); padding: 28px 12px; font-size: 0.92rem; }
.stats-modal-empty.hidden { display: none; }

/* ===== Download teaser (home) ===== */
.download-teaser {
  padding: 80px 0 90px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.download-teaser .section-sub { margin-bottom: 36px; }
.download-teaser-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 28px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.download-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  max-width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.download-teaser-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 128px;
  padding: 18px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
a.download-teaser-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 184, 112, 0.35);
  background: var(--accent-soft);
}
a.download-teaser-tile.is-planned:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 96, 0.45);
  background: rgba(255, 176, 96, 0.07);
}
.download-teaser-tile.is-planned {
  opacity: 0.85;
  border-style: dashed;
  border-color: rgba(255, 176, 96, 0.28);
  background: rgba(255, 176, 96, 0.04);
}
.download-teaser-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--accent);
}
.download-teaser-icon .icon { width: 24px; height: 24px; }
.download-teaser-tile.is-planned .download-teaser-icon { color: #ffd080; }
.download-teaser-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.download-teaser-meta {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.35;
}
.dl-version-badge-teaser {
  margin-left: 0;
  padding: 2px 6px;
  font-size: 0.58rem;
}
.download-teaser-tile.is-planned .download-teaser-meta {
  color: #ffd080;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.download-teaser-cta {
  display: flex;
  justify-content: center;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.download-teaser-cta .btn { min-width: 220px; }

@media (max-width: 900px) {
  .download-teaser-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
@media (max-width: 560px) {
  .download-teaser-panel { padding: 20px 16px 24px; }
  .download-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .download-teaser-tile { min-height: 112px; padding: 14px 10px; }
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Download page (TeamSpeak-style layout, GreenTeaSpeak theme) */
.dl-page { padding: 48px 0 96px; min-height: 60vh; }
.dl-page-header { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.dl-page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.dl-page-sub { color: var(--text-dim); font-size: 1.05rem; line-height: 1.6; margin: 0; }

.dl-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  margin: 0 auto 32px;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.dl-tab {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dl-tab:hover { color: var(--text); }
.dl-tab.is-active {
  color: var(--text);
  background: var(--green-700);
  border-color: rgba(77, 184, 112, 0.35);
  box-shadow: 0 0 0 1px rgba(77, 184, 112, 0.12);
}
.dl-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dl-panel { display: none; animation: dlFadeIn 0.28s ease; }
.dl-panel.is-active { display: block; }
@keyframes dlFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dl-featured {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 28px;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dl-featured-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(77, 184, 112, 0.2);
  color: var(--accent);
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}
.dl-platform-icon { width: 40px; height: 40px; }
.dl-platform-icon-lg { width: 48px; height: 48px; }
img.dl-platform-icon,
img.dl-platform-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  flex-shrink: 0;
}
img.dl-platform-icon-lg {
  width: 48px;
  height: 48px;
}
.dl-featured-icon img.dl-platform-icon-lg {
  width: 48px;
  height: 48px;
}
.dl-featured-title { font-size: 1.65rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.dl-featured-sub { color: var(--text-dim); font-size: 0.95rem; margin: 0; }
.dl-featured-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

.dl-alternatives {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dl-alternatives-title {
  margin: 0;
  padding: 18px 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.dl-rows { list-style: none; margin: 0; padding: 0; }
.dl-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.dl-row:last-child { border-bottom: none; }
.dl-row-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--accent);
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 0;
}
.dl-row-icon img.dl-platform-icon,
.dl-row-icon img.dl-platform-icon-img {
  width: 28px;
  height: 28px;
}
.dl-row-body { min-width: 0; }
.dl-row-title { display: block; font-size: 1rem; margin-bottom: 2px; }
.dl-row-sub { display: block; color: var(--text-dim); font-size: 0.86rem; }
.dl-row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.dl-empty,
.download-empty {
  margin: 0;
  padding: 48px 28px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}
.dl-pending-hint { margin: 0 0 24px; font-size: 0.86rem; color: var(--text-dim); line-height: 1.5; }

.dl-planned-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd080;
  background: rgba(255, 176, 96, 0.12);
  border: 1px solid rgba(255, 176, 96, 0.35);
}
.dl-planned-badge-inline {
  margin-left: 10px;
  padding: 3px 9px;
  font-size: 0.68rem;
  vertical-align: middle;
}
.dl-version-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dl-version-badge-inline {
  margin-left: 10px;
  padding: 3px 9px;
  font-size: 0.68rem;
  vertical-align: middle;
}
.dl-version-badge.is-pre-alpha {
  color: #ffb060;
  background: rgba(255, 176, 96, 0.12);
  border: 1px solid rgba(255, 176, 96, 0.35);
}
.dl-version-badge.is-alpha {
  color: #ffd080;
  background: rgba(255, 208, 128, 0.12);
  border: 1px solid rgba(255, 208, 128, 0.35);
}
.dl-version-badge.is-beta {
  color: #80c8ff;
  background: rgba(128, 200, 255, 0.12);
  border: 1px solid rgba(128, 200, 255, 0.35);
}
.dl-version-badge.is-rc {
  color: #a8e0a0;
  background: rgba(168, 224, 160, 0.12);
  border: 1px solid rgba(168, 224, 160, 0.35);
}
.dl-featured.is-planned,
.dl-row.is-planned {
  border-color: rgba(255, 176, 96, 0.18);
}
.dl-store-btn { min-width: 148px; justify-content: center; }

.dl-copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--green-700);
  border: 1px solid rgba(77, 184, 112, 0.35);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 200;
  pointer-events: none;
}
.dl-copy-toast.hidden { display: none; }

.dl-changelog {
  margin-top: 36px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(0, 0, 0, 0.18);
}
.dl-changelog-title {
  margin: 0 0 22px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dl-changelog-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.dl-changelog-entry {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.dl-changelog-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.dl-changelog-version {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.dl-changelog-items {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}
.dl-changelog-item {
  margin-bottom: 6px;
}
.dl-changelog-item:last-child {
  margin-bottom: 0;
}
.dl-changelog-item.is-note {
  list-style: none;
  margin-left: -1.15rem;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #ffd080;
  background: rgba(255, 176, 96, 0.08);
  border: 1px solid rgba(255, 176, 96, 0.22);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .dl-featured {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
  }
  .dl-featured-icon { margin: 0 auto; }
  .dl-featured-actions { justify-content: center; flex-wrap: wrap; }
  .dl-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .dl-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 4px;
  }
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.download-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 28px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}
.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s, border-color 0.25s;
}
.dl-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.14); }
.dl-icon {
  width: 70px; height: 70px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--accent);
}
.dl-icon .icon { width: 30px; height: 30px; }
.dl-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.dl-card p { color: var(--text-dim); margin-bottom: 22px; }
.dl-links { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.dl-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}
.dl-link:hover { background: var(--green-800); }
.dl-link span { color: var(--text-dim); font-size: 0.8rem; }
.dl-link.is-pending { opacity: 0.55; cursor: default; }
.btn-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.dl-pending-hint { width: 100%; margin: 14px 0 0; font-size: 0.82rem; color: var(--text-dim); line-height: 1.45; }

/* ===== Hoster ===== */
.hosters {
  padding: 72px 0 80px;
}
.hosters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.hoster-card {
  width: 100%;
  max-width: 320px;
  justify-self: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.hoster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 184, 112, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.hoster-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 190px;
  padding: 32px 28px;
  color: var(--text);
}
.hoster-logo {
  height: 72px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.hoster-name {
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .hosters-grid {
    grid-template-columns: 1fr;
  }
  .hoster-card a {
    min-height: 160px;
    padding: 28px 22px;
  }
  .hoster-logo {
    height: 60px;
    max-width: 170px;
  }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}
.footer-shell { padding: 48px 0 0; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(0, 2fr);
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand-block .footer-tag {
  color: var(--text-dim);
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
  font-size: 0.92rem;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer-links-grid h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-links-grid a {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
.footer-links-grid a:hover { opacity: 1; color: var(--accent); }
.footer-bar {
  border-top: 1px solid var(--line);
  padding: 18px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-legal-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--accent); }

/* ===== Legal pages (Impressum / Datenschutz) ===== */
.legal {
  min-height: 70vh;
  padding: 70px 0 90px;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(77, 184, 112, 0.05), transparent 60%),
    var(--bg);
}
.legal-inner { max-width: 820px; }
.legal-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.legal-intro { color: var(--text-dim); margin-bottom: 40px; }
.legal-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 22px;
}
.legal-block h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 12px;
}
.legal-block a { color: var(--accent); }
.legal-block a:hover { color: var(--green-300); }
.legal-block p { color: var(--text-dim); }
.legal-block ul { color: var(--text-dim); margin: 12px 0 12px 22px; }
.legal-block li { margin-bottom: 6px; }
.legal-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-style: italic;
  margin: 28px 0;
  border-left: 3px solid var(--line);
  padding-left: 16px;
}
.legal-back { margin-top: 10px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 0 5%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    justify-content: flex-start;
  }
  .main-nav.open { max-height: 85vh; padding: 16px 5% 24px; overflow-y: auto; }
  .nav-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav > a,
  .nav-drop-btn { width: 100%; justify-content: space-between; text-align: left; }
  .nav-dropdown { width: 100%; }
  .nav-drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 12px;
    display: none;
    margin-top: 4px;
  }
  .nav-dropdown.open .nav-drop-menu { display: block; }
  .nav-drop-menu a { padding: 10px 8px; }
  .lang-switch,
  .user-menu,
  .account-bar { width: 100%; }
  .account-bar { flex-direction: column; }
  .account-bar-seg { border-right: none; border-bottom: 1px solid var(--line); }
  .account-bar-seg:last-child { border-bottom: none; }
  .account-bar-btn,
  .account-bar-link { width: 100%; justify-content: flex-start; }
  .user-btn { width: 100%; justify-content: flex-start; }
  .user-menu-list,
  .account-bar .user-menu-list { position: static; width: 100%; margin-top: 8px; box-shadow: none; left: auto; right: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-links-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .info-card:hover,
  .dl-card:hover,
  .stat-card:hover,
  .btn-primary:hover,
  .btn-ghost:hover { transform: none; }
}
