:root {
  /* VoySpeak — keep in sync with assets/css/public-chrome.css */
  --green-900: #070b12;
  --green-800: #0d1420;
  --green-700: #141c2c;
  --green-600: #1c2740;
  --green-500: #2c3d58;
  --green-400: #2f9bff;
  --green-300: #7ec4ff;
  --green-200: #d4ebff;
  --accent: #2f9bff;
  --accent-hover: #7ec4ff;
  --accent-soft: rgba(47, 155, 255, 0.16);
  --accent-warm: #e0b87a;
  --on-accent: #041018;
  --brand: var(--accent);
  --cream: #f6f3eb;
  --bg: #0a1018;
  --bg-soft: #111826;
  --card: #172033;
  --surface-elevated: #1e2940;
  --text: #f4f7fb;
  --text-dim: #b7c4d6;
  --line: rgba(246, 243, 235, 0.12);
  --line-strong: rgba(246, 243, 235, 0.22);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.32);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --shadow-accent: 0 8px 24px rgba(47, 155, 255, 0.22);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius: var(--radius-md);
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --header-h: 66px;
}

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

html { scroll-behavior: smooth; font-size: 100%; }
html[data-text-size="large"] { font-size: 125%; }
html[data-text-size="xlarge"] { font-size: 150%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display, var(--font-sans));
  letter-spacing: -0.03em;
}

@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;
  }
}

.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: #041018;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}
#main-content {
  scroll-margin-top: 80px;
}

/* 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, #3aa6ff);
  background: color-mix(in srgb, var(--role-color, #3aa6ff) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--role-color, #3aa6ff) 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(47, 155, 255, 0.45);
  outline-offset: 1px;
  border-radius: 4px;
}
.gts-badge-icon.is-donator {
  outline: 1px solid rgba(212, 168, 67, 0.55);
  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(47, 155, 255, 0.45);
  background: var(--accent-soft);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green-300);
  outline-offset: 2px;
  border-radius: 8px;
}
.nav-drop-btn:focus-visible,
.lang-btn:focus-visible,
.nav-toggle:focus-visible,
.account-bar-btn:focus-visible {
  outline: 2px solid var(--green-300);
  outline-offset: 2px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  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: 48px; width: auto; max-width: 280px; display: block; object-fit: contain; }
.footer-brand-block .logo-img { height: 44px; max-width: 260px; }

.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); }
.nav-drop-menu a.nav-drop-lead { font-weight: 700; }
.nav-drop-menu a.is-active,
.nav-drop-menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(47, 155, 255, 0.12);
}

/* 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,
.lang-menu li:focus-visible {
  background: var(--green-700);
  color: var(--text);
  outline: 2px solid var(--green-300);
  outline-offset: -2px;
}

/* User menu / account bar (Profil | Inbox | Alerts) */
.account-bar {
  display: inline-flex;
  align-items: stretch;
  background: var(--green-800, #0d1420);
  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-icons .account-bar-icon-btn {
  gap: 0;
  justify-content: center;
  min-width: 42px;
  padding: 7px 10px;
  position: relative;
}
.account-bar-icons .account-bar-icon-btn .icon-sm {
  color: var(--text);
  width: 18px;
  height: 18px;
}
.account-bar-icons .nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.65rem;
  line-height: 16px;
  pointer-events: none;
}
.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: #041018;
  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, #2f9bff);
  color: #041018;
  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: #041018;
  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, #7ec4ff);
  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, #7ec4ff) !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: #041018;
  background: var(--green-500, #2f9bff);
  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(47, 155, 255, 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: 12px 22px;
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.938rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent, #041018);
  box-shadow: var(--shadow-accent, 0 6px 20px rgba(47, 155, 255, 0.18));
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(47, 155, 255, 0.28);
  color: var(--on-accent, #041018);
}
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:visited {
  color: var(--on-accent, #041018);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(47, 155, 255, 0.14);
  border-color: rgba(47, 155, 255, 0.5);
  transform: translateY(-1px);
}
.btn-nav {
  padding: 8px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm, 4px);
}

.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-family: var(--font-sans);
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* ===== 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(47, 155, 255, 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: 5;
  text-align: left;
  min-width: 220px;
  max-width: 280px;
  font-weight: 500;
  color: var(--text);
  background-color: #151818;
  background-image: none;
  box-shadow: 8px 0 18px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.feature-table thead .feat-col {
  z-index: 6;
  background-color: #151818;
}

.feature-table tbody .feat-name {
  font-size: 0.92rem;
  line-height: 1.4;
  background-color: #141616;
  font-weight: 500;
}

.feature-table tbody tr:nth-child(even) .feat-name {
  background-color: #161919;
}

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

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

.feature-table thead .brand-col {
  background: linear-gradient(180deg, rgba(47, 155, 255, 0.22), rgba(47, 155, 255, 0.08));
  color: var(--text);
  border-bottom-color: rgba(47, 155, 255, 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: #041018;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(47, 155, 255, 0.28);
}

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

.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(47, 155, 255, 0.18), rgba(47, 155, 255, 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(47, 155, 255, 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: #7ec4ff;
  background: rgba(47, 155, 255, 0.16);
  border: 1px solid rgba(47, 155, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 155, 255, 0.06);
}

.feat-status--yes::before { content: "\2713"; } /* check mark */

.feat-status--yes.feat-status--brand {
  color: #041018;
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(47, 155, 255, 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: "\2715"; } /* x mark */

.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: #7ec4ff;
  background: rgba(47, 155, 255, 0.12);
  border-color: rgba(47, 155, 255, 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(47, 155, 255, 0.16);
  border-color: rgba(47, 155, 255, 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;
  }
}

/* Mobile comparison: list rows with per-cell labels (no sticky overlay bar) */
.feature-compare { width: 100%; }
.feature-legend { display: none; }

@media (max-width: 720px) {
  /* Clearance for fixed Widerruf FAB so last rows stay readable */
  .features {
    padding-bottom: calc(88px + max(20px, env(safe-area-inset-bottom, 0px)));
  }

  /* Legend unused on mobile — each cell carries its own short label */
  .feature-legend {
    display: none;
  }

  .feature-table-wrap {
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  .feature-table {
    min-width: 0;
    width: 100%;
    border-collapse: collapse;
  }

  .feature-table thead { display: none; }
  .feature-table tbody { display: block; }

  .feature-table tbody tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .feature-table tbody tr + tr {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .feature-table tbody tr.feat-row-detail-first {
    margin-top: 0;
    border-top: 2px solid rgba(47, 155, 255, 0.2);
  }

  .feature-table tbody tr.feat-row-detail-first th,
  .feature-table tbody tr.feat-row-detail-first td {
    border-top: none;
  }

  .feature-table .feat-col,
  .feature-table .feat-name,
  .feature-table tbody .feat-name,
  .feature-table tbody tr:nth-child(even) .feat-name,
  .feature-table tbody tr:hover .feat-name {
    position: static;
    left: auto;
    z-index: auto;
    grid-column: 1 / -1;
    min-width: 0;
    max-width: none;
    width: auto;
    box-shadow: none;
    isolation: auto;
    background: transparent;
    background-color: transparent;
    border-bottom: none;
    padding: 14px 12px 6px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    color: var(--text);
  }

  .feature-table tbody td {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    text-align: center;
    padding: 4px 3px 14px;
    border: none !important;
    background: transparent !important;
    min-width: 0;
  }

  /* Short column labels on every value — no sticky bar, no cut-off names */
  .feature-table tbody td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.15;
    color: #b7c4d6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .feature-table tbody td.brand-col::before {
    color: #7ec4ff;
  }

  .feature-table tbody td.brand-col { background: transparent !important; }

  .feature-table tbody tr:hover td:not(.feat-name),
  .feature-table tbody tr:hover .brand-col {
    background: transparent !important;
  }

  .feature-table tbody .feat-status {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    box-shadow: none;
    flex-shrink: 0;
  }

  .feature-table tbody .feat-status--yes.feat-status--brand {
    width: 26px;
    height: 26px;
    box-shadow: none;
  }

  .feature-table tbody .feat-pill {
    max-width: 100%;
    width: 100%;
    padding: 5px 2px;
    font-size: 0.62rem;
    line-height: 1.25;
    text-align: center;
    border-radius: 7px;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

/* Toast notifications (popup) */
.gts-toast-root {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 4000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.gts-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 24, 22, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: var(--text);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.gts-toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.gts-toast.is-out {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}
.gts-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}
.gts-toast-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gts-toast-body {
  flex: 1;
  min-width: 0;
  padding-top: 5px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.gts-toast-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: -4px -4px 0 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
.gts-toast-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.gts-toast--success {
  border-color: rgba(47, 155, 255, 0.4);
  background:
    linear-gradient(135deg, rgba(47, 155, 255, 0.18), rgba(18, 24, 22, 0.96) 55%);
}
.gts-toast--success .gts-toast-icon {
  color: #041018;
  background: var(--accent);
}
.gts-toast--error,
.gts-toast--ban {
  border-color: rgba(215, 107, 107, 0.42);
  background:
    linear-gradient(135deg, rgba(215, 107, 107, 0.18), rgba(18, 24, 22, 0.96) 55%);
}
.gts-toast--error .gts-toast-icon,
.gts-toast--ban .gts-toast-icon {
  color: #fff;
  background: #d76b6b;
}
.gts-toast--info {
  border-color: rgba(47, 155, 255, 0.28);
}

@media (max-width: 520px) {
  .gts-toast-root {
    left: 16px;
    right: 16px;
    width: auto;
    align-items: stretch;
  }
}

.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; }

/* Feature request detail modal (public + admin) */
.fr-detail-modal {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(88vh, 820px);
  overflow: hidden;
}
.fr-detail-modal-head {
  position: relative;
  flex-shrink: 0;
  padding: 18px 56px 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}
.fr-detail-modal-head.is-meta-empty {
  padding-bottom: 10px;
  min-height: 52px;
  border-bottom: none;
  background: transparent;
}
.fr-detail-modal .modal-close {
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 2;
}
.fr-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  min-height: 0;
}
.fr-detail-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  line-height: 1.2;
}
.fr-detail-chip--category {
  color: #7ec4ff;
  border-color: rgba(47, 155, 255, 0.28);
  background: rgba(47, 155, 255, 0.1);
}
.fr-detail-chip--status {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.1);
}
.fr-detail-chip--author {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 600;
}
.fr-detail-chip--email {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
}
.fr-detail-modal-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 22px 24px 28px;
}
.fr-detail-modal-title {
  margin: 0 0 16px;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: left;
  padding-right: 8px;
}
.fr-detail-modal .fr-detail-body {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
  font-size: 0.98rem;
}
body.fr-detail-modal-open {
  overflow: hidden;
}
.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: #2f9bff; }
.legend-servers { background: #949a96; }
.legend-users { background: #7ec4ff; }
.legend-bots { background: #9eb0c4; }
.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: var(--font-sans, 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; }

/* ===== TeaSpeak continue (home) ===== */
.teaspeak-continue {
  padding: 28px 0 10px;
}
.teaspeak-continue-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid rgba(47, 155, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.teaspeak-continue-title {
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.teaspeak-continue-text {
  margin: 0;
  color: var(--text-dim);
  max-width: 46rem;
}
.teaspeak-features-note {
  margin-top: -8px;
  margin-bottom: 22px;
}
.teaspeak-features-note a,
.dl-teaspeak-note a,
.forum-teaspeak-note a {
  color: var(--brand, #2f9bff);
  font-weight: 600;
}
.dl-teaspeak-note {
  margin: 10px 0 0;
}
.forum-teaspeak-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

/* ===== 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: 980px;
  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: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin: 0 auto 28px;
  max-width: 100%;
}
.download-teaser-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 1 1 150px;
  max-width: 180px;
  min-width: 132px;
  min-height: 150px;
  padding: 22px 14px 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  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(47, 155, 255, 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-tile {
    flex: 1 1 140px;
    max-width: 200px;
  }
}
@media (max-width: 560px) {
  .download-teaser-panel { padding: 20px 16px 24px; }
  .download-teaser-tile {
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 0;
    min-height: 112px;
    padding: 14px 10px;
  }
}

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

/* Download page — product tabs (wrap, no overlapping chooser) */
.dl-page {
  padding: 48px 0 96px;
  min-height: 60vh;
  background:
    radial-gradient(720px 280px at 50% -8%, rgba(47, 155, 255, 0.1), transparent 58%),
    var(--bg);
}
.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;
  align-items: stretch;
  gap: var(--space-2, 8px);
  padding: var(--space-2, 8px);
  margin: 0 auto var(--space-8, 32px);
  max-width: min(980px, 100%);
  background: color-mix(in srgb, var(--surface-elevated) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 8px);
  box-shadow: none;
}
.dl-tab {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 4px);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.dl-tab:hover {
  color: var(--text);
  background: rgba(232, 226, 212, 0.04);
}
.dl-tab.is-active {
  color: var(--on-accent, #041018);
  background: var(--accent);
  border-color: transparent;
  box-shadow: none;
}
.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:
    linear-gradient(180deg, rgba(47, 155, 255, 0.06), transparent 48%),
    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(47, 155, 255, 0.22);
  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-body { min-width: 0; }
.dl-featured-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.dl-featured-name { min-width: 0; }
.dl-featured-sub { color: var(--text-dim); font-size: 0.95rem; margin: 0; line-height: 1.5; }
.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; }

/* When .btn-sm sets a dark surface later, keep primary green + readable dark text */
.btn-sm.btn-primary,
a.btn-sm.btn-primary,
a.btn-sm.btn-primary:hover,
a.btn-sm.btn-primary:visited,
button.btn-sm.btn-primary {
  background: var(--accent);
  color: #041018;
  border-color: transparent;
}

.dl-alternatives {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dl-alternatives-title {
  margin: 0;
  padding: 16px 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);
  background: rgba(255, 255, 255, 0.02);
}
.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: 16px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.dl-row:hover { background: rgba(255, 255, 255, 0.025); }
.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: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 4px;
  line-height: 1.3;
}
.dl-row-name { min-width: 0; }
.dl-row-sub { display: block; color: var(--text-dim); font-size: 0.86rem; line-height: 1.45; }
.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: 0;
  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;
  white-space: nowrap;
}
.dl-version-badge-inline {
  margin-left: 0;
  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: #7ec4ff;
  background: rgba(47, 155, 255, 0.12);
  border: 1px solid rgba(47, 155, 255, 0.35);
}
.dl-version-badge.is-stable {
  color: #7ec4ff;
  background: rgba(47, 155, 255, 0.12);
  border: 1px solid rgba(47, 155, 255, 0.35);
}
.dl-version-badge.is-legacy {
  color: #c0c0c0;
  background: rgba(192, 192, 192, 0.12);
  border: 1px solid rgba(192, 192, 192, 0.3);
}
.dl-version-badge.is-experimental,
.dl-version-badge.is-coming-soon {
  color: #ffb060;
  background: rgba(255, 176, 96, 0.12);
  border: 1px solid rgba(255, 176, 96, 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(47, 155, 255, 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-copy-btn.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}

.dl-changelog {
  margin-top: 36px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, rgba(47, 155, 255, 0.04), transparent 40%),
    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: 0;
}
.dl-changelog-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.dl-changelog-entry:first-child {
  padding-top: 0;
}
.dl-changelog-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.dl-changelog-version {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-300);
  background: rgba(47, 155, 255, 0.1);
  border: 1px solid rgba(47, 155, 255, 0.22);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.dl-changelog-items {
  margin: 0;
  padding: 0 0 0 1.2rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}
.dl-changelog-item {
  margin-bottom: 8px;
  padding-left: 2px;
}
.dl-changelog-item::marker {
  color: var(--accent);
}
.dl-changelog-item:last-child {
  margin-bottom: 0;
}
.dl-changelog-item:has(> .dl-changelog-lines) {
  list-style: none;
  margin-left: -1.2rem;
  padding-left: 0;
}
.dl-changelog-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl-changelog-lines > li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 1.15rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.dl-changelog-lines > li:last-child {
  margin-bottom: 0;
}
.dl-changelog-lines > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(47, 155, 255, 0.18);
}
.dl-changelog-item.is-note {
  list-style: none;
  margin-left: -1.2rem;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #ffd080;
  background: rgba(255, 176, 96, 0.08);
  border: 1px solid rgba(255, 176, 96, 0.22);
  font-size: 0.88rem;
  line-height: 1.5;
}
.dl-changelog-item.is-note .dl-changelog-lines > li {
  color: inherit;
}
.dl-changelog-item.is-note .dl-changelog-lines > li::before {
  background: #ffd080;
  box-shadow: 0 0 0 2px rgba(255, 208, 128, 0.2);
}

.dl-quickstart {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid rgba(47, 155, 255, 0.22);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(47, 155, 255, 0.08), transparent 42%),
    rgba(0, 0, 0, 0.22);
}
.dl-quickstart-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dl-quickstart-lead {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}
.dl-quickstart-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.dl-quickstart-feat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(47, 155, 255, 0.22);
  background: rgba(47, 155, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}
.dl-quickstart-feat-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--green-300);
  flex-shrink: 0;
}
.dl-quickstart-feat-icon {
  width: 15px;
  height: 15px;
}
.dl-quickstart-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dl-quickstart-code {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: var(--green-300, #7ec4ff);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.dl-quickstart-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dl-quickstart-row .dl-copy-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
}
.dl-quickstart-note {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dl-reqs {
  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-reqs-title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dl-reqs-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dl-reqs-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.dl-reqs-table th,
.dl-reqs-table td {
  padding: 12px 16px 12px 0;
  text-align: left;
  vertical-align: baseline;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.45;
}
.dl-reqs-table th:last-child,
.dl-reqs-table td:last-child {
  padding-right: 0;
}
.dl-reqs-table thead th {
  padding-top: 0;
  padding-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.dl-reqs-table thead th:not(.dl-reqs-corner) {
  color: var(--text);
  font-weight: 600;
}
.dl-reqs-table tbody th {
  width: 5.5rem;
  font-weight: 500;
  color: var(--text-dim);
}
.dl-reqs-table tbody td {
  color: var(--text);
  font-weight: 400;
}
.dl-reqs-table tbody tr:last-child th,
.dl-reqs-table tbody tr:last-child td {
  border-bottom: none;
  padding-bottom: 0;
}
.dl-reqs-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.dl-client-reqs-platforms {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.dl-client-reqs-unsupported {
  color: #fca5a5;
}
.dl-client-reqs-block {
  margin-top: 16px;
}
.dl-client-reqs-subtitle {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}
.dl-client-reqs-list {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.dl-client-reqs-list li { margin-bottom: 4px; }
.dl-client-reqs-shared { margin-top: 14px; }
.dl-client-reqs-api {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.dl-about-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  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-about-box-body {
  min-width: 0;
  flex: 1 1 auto;
}
.dl-about-box-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dl-about-box-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}
.dl-about-box .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.yagtqa-page .legal-inner {
  max-width: none;
}
.yagtqa-page .legal-title,
.yagtqa-page .legal-intro {
  max-width: 720px;
}
.teaspeak-page {
  min-height: 70vh;
}
.teaspeak-page + .site-footer {
  margin-top: 0;
}
.teaspeak-hero {
  padding: var(--space-12, 72px) 0 var(--space-10, 56px);
  background:
    radial-gradient(780px 340px at 18% -10%, rgba(47, 155, 255, 0.16), transparent 58%),
    radial-gradient(640px 280px at 92% 10%, rgba(47, 155, 255, 0.06), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.teaspeak-hero-inner {
  max-width: 760px;
}
.teaspeak-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--green-300);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.teaspeak-title {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.teaspeak-lead {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 0 28px;
}
.teaspeak-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.teaspeak-hero-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}
.teaspeak-hero-note a {
  color: var(--green-300, #7ec4ff);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.teaspeak-hero-note a:hover {
  color: var(--accent-hover, #7ec4ff);
  border-bottom-color: rgba(47, 155, 255, 0.4);
}
.teaspeak-hero-note a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.teaspeak-body {
  padding: 48px 0 64px;
  background: var(--bg-soft);
}
.teaspeak-highlights,
.teaspeak-topics {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}
.teaspeak-highlights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.teaspeak-topics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.teaspeak-card,
.teaspeak-topic,
.teaspeak-faq,
.teaspeak-share {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
}
.teaspeak-card-accent {
  border-color: rgba(47, 155, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(47, 155, 255, 0.08), transparent 42%),
    var(--card);
}
.teaspeak-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(47, 155, 255, 0.08);
  color: var(--accent);
}
.teaspeak-card-icon .icon {
  width: 24px;
  height: 24px;
}
.teaspeak-card h2,
.teaspeak-topic h2,
.teaspeak-faq > h2,
.teaspeak-share h2 {
  font-size: 1.18rem;
  margin: 0 0 10px;
}
.teaspeak-card p,
.teaspeak-topic p,
.teaspeak-share > p {
  color: var(--text-dim);
  margin: 0;
}
.teaspeak-topic .card-link {
  margin-top: 16px;
  color: var(--accent);
}
.teaspeak-faq {
  margin-bottom: 28px;
  padding: 8px 8px 10px;
}
.teaspeak-compare {
  margin-bottom: 28px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.teaspeak-compare > h2 {
  font-size: 1.18rem;
  margin: 0 0 10px;
}
.teaspeak-compare-intro {
  color: var(--text-dim);
  margin: 0 0 18px;
}
.teaspeak-compare-table-wrap {
  overflow-x: auto;
}
.teaspeak-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.teaspeak-compare-table th,
.teaspeak-compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.teaspeak-compare-table thead th {
  font-weight: 600;
  color: var(--text);
  border-bottom-width: 2px;
}
.teaspeak-compare-table tbody th {
  font-weight: 500;
  color: var(--text-dim);
  width: 22%;
}
.teaspeak-compare-gts {
  color: var(--accent);
  font-weight: 600;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.teaspeak-faq > h2 {
  padding: 18px 18px 8px;
}
.teaspeak-faq-item {
  border-top: 1px solid var(--line);
}
.teaspeak-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
}
.teaspeak-faq-item summary::-webkit-details-marker { display: none; }
.teaspeak-faq-item summary .icon-sm {
  color: var(--accent);
  transition: transform 0.2s ease;
}
.teaspeak-faq-item[open] summary .icon-sm {
  transform: rotate(90deg);
}
.teaspeak-faq-item summary:hover {
  color: var(--green-300);
}
.teaspeak-faq-item p {
  padding: 0 18px 16px;
  color: var(--text-dim);
}
.teaspeak-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 16px;
}
.teaspeak-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.teaspeak-chip:hover {
  border-color: rgba(47, 155, 255, 0.4);
  background: rgba(47, 155, 255, 0.1);
  color: var(--green-200);
}
.teaspeak-share-url,
.teaspeak-note {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.teaspeak-note {
  margin: 22px 0 0;
}
@media (max-width: 900px) {
  .teaspeak-highlights,
  .teaspeak-topics {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .teaspeak-faq-item summary .icon-sm {
    transition: none;
  }
}
.yagtqa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.yagtqa-grid .legal-block {
  margin-bottom: 0;
  height: 100%;
}
.yagtqa-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.yagtqa-shot {
  margin: 0;
}
.yagtqa-shot-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: calc(var(--radius) - 2px);
}
.yagtqa-shot-open:focus-visible {
  outline: 2px solid rgba(47, 155, 255, 0.55);
  outline-offset: 3px;
}
.yagtqa-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.yagtqa-shot-open:hover img {
  border-color: rgba(47, 155, 255, 0.45);
  transform: translateY(-1px);
}
.yagtqa-shot figcaption {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* Shared image lightbox (YaGtQA screenshots etc.) */
.gts-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 12, 8, 0.86);
  backdrop-filter: blur(6px);
}
.gts-lightbox[hidden] { display: none !important; }
.gts-lightbox-dialog {
  position: relative;
  max-width: min(1400px, 98vw);
  max-height: min(96vh, 100%);
}
.gts-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(90vh, 1200px);
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  background: var(--bg-soft);
}
.gts-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 28, 0.95);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.gts-lightbox-close:hover {
  background: rgba(47, 155, 255, 0.25);
  border-color: rgba(47, 155, 255, 0.5);
}
.yagtqa-ideas-action {
  margin: 18px 0 0;
}
.yagtqa-ideas-action .btn {
  font-weight: 700;
}
.yagtqa-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 960px) {
  .yagtqa-grid {
    grid-template-columns: 1fr;
  }
  .yagtqa-shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dl-reqs {
    padding: 24px 20px;
  }
  .dl-reqs-table th,
  .dl-reqs-table td {
    padding-right: 12px;
    font-size: 0.88rem;
  }
  .dl-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    max-width: none;
  }
  .dl-tab {
    width: 100%;
    min-height: 44px;
    padding: 12px 10px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.88rem;
    white-space: normal;
  }
  .dl-featured {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
  }
  .dl-featured-icon { margin: 0 auto; }
  .dl-featured-title { justify-content: center; }
  .dl-featured-actions { justify-content: center; flex-wrap: wrap; }
  .dl-quickstart { padding: 18px 16px; }
  .dl-quickstart-feats { gap: 8px; }
  .dl-quickstart-feat { width: 100%; border-radius: 12px; }
  .dl-quickstart-row { flex-direction: column; }
  .dl-quickstart-row .dl-copy-btn { width: 100%; }
  .dl-changelog { padding: 22px 18px; }
  .dl-about-box {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    text-align: center;
  }
  .dl-about-box .btn {
    width: 100%;
  }
  .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(47, 155, 255, 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-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  min-height: 72px;
  background: transparent;
}
.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;
}
.dl-client-reqs-legacy {
  color: var(--text-dim);
  margin-bottom: 12px;
}
.hosters-more-link {
  margin-top: 28px;
  text-align: center;
}
.partner-shell {
  max-width: 840px;
  margin: 0 auto;
}
.partner-hosters-panel {
  padding: 28px 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.partner-page .partner-hosters-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: none;
  margin: 0;
}
.partner-page .partner-hosters-grid .hoster-card {
  flex: 0 1 260px;
  max-width: 280px;
  width: 100%;
}
.partner-page .partner-hosters-grid .hoster-card a {
  min-height: 168px;
  gap: 14px;
  padding: 28px 24px;
}
.partner-hosters-aside {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.partner-hosters-aside a {
  color: var(--green-300);
  font-weight: 600;
}
.partner-section-spaced {
  margin-top: 28px;
}
.partner-section-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.partner-section-sub {
  margin: 0 0 24px;
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 0.96rem;
}
.partner-page {
  min-height: 70vh;
}
.partner-page + .site-footer {
  margin-top: 0;
}
.partner-body {
  padding: 48px 0 64px;
  background: var(--bg-soft);
}
.partner-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 32px 0;
  max-width: 640px;
  margin: 0 auto;
}
.partner-cta {
  margin: 32px 0 0;
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.partner-cta h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.partner-cta p {
  margin: 0 0 20px;
  color: var(--text-dim);
  line-height: 1.55;
}

.licenses-page {
  padding-bottom: 48px;
}
.licenses-page + .site-footer {
  margin-top: 0;
}
.licenses-body {
  padding: 28px 0 12px;
}
.licenses-shell {
  max-width: 1080px;
  margin: 0 auto;
}
.licenses-unlicensed-hint {
  margin: 0 0 22px;
  color: var(--text-dim);
}
.licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.licenses-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.licenses-card.is-current {
  border-color: color-mix(in srgb, var(--green, #2f9bff) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green, #2f9bff) 35%, transparent);
}
.licenses-card .badge-active {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--green, #2f9bff) 18%, transparent);
  color: var(--green, #2f9bff);
}
.licenses-card-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.3;
}
.licenses-card-code {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green, #2f9bff);
}
.licenses-card-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.licenses-card-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}
.licenses-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.licenses-card-actions .btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.licenses-pending {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.licenses-manage-row {
  margin: 28px 0 0;
  text-align: center;
}
@media (max-width: 720px) {
  .licenses-body {
    padding-top: 18px;
  }
  .licenses-card {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .hosters-grid {
    grid-template-columns: 1fr;
  }
  .partner-shell {
    max-width: none;
  }
  .partner-hosters-panel {
    padding: 22px 18px 18px;
  }
  .partner-page .partner-hosters-grid .hoster-card {
    flex: 1 1 100%;
    max-width: none;
  }
  .partner-cta {
    padding: 24px 20px;
  }
  .hoster-card a {
    min-height: 160px;
    padding: 28px 22px;
  }
  .hoster-logo-frame {
    min-height: 60px;
    max-width: 170px;
  }
  .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-news-ticker {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.footer-news-ticker-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.footer-news-ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 12px 0;
  animation: footer-news-ticker-scroll 120s linear infinite;
  will-change: transform;
}
.footer-news-ticker:hover .footer-news-ticker-track,
.footer-news-ticker:focus-within .footer-news-ticker-track {
  animation-play-state: paused;
}
.footer-news-ticker-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
  padding-right: 0;
}
.footer-news-ticker-item {
  color: var(--text-dim);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  flex-shrink: 0;
}
a.footer-news-ticker-item:hover {
  color: var(--accent);
}
.footer-news-ticker-sep {
  color: rgba(47, 155, 255, 0.45);
  font-size: 0.88rem;
  white-space: pre;
  flex-shrink: 0;
  user-select: none;
}
@keyframes footer-news-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-news-ticker-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .footer-news-ticker-track {
    animation: none;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 20px;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
  }
  .footer-news-ticker-content {
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
  }
  .footer-news-ticker-content[aria-hidden="true"] {
    display: none;
  }
}
.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-made-in-germany {
  display: block;
  margin-top: 18px;
  height: 40px;
  width: auto;
  max-width: 220px;
  border-radius: 6px;
}
.footer-trustpilot {
  margin-top: 18px;
  max-width: 320px;
  min-height: 52px;
}
.footer-trustpilot .trustpilot-widget a {
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-brand-block .footer-brand-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.footer-brand-block .footer-brand-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-brand-block .footer-brand-social:hover {
  color: var(--accent);
}
.footer-brand-block .footer-brand-social-icon {
  flex-shrink: 0;
  display: block;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer-links-grid h4,
.footer-links-grid .footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.footer-links-grid a {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
  opacity: 1;
  transition: color 0.2s;
}
.footer-links-grid a:hover { 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); }
.footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: inherit;
}
.footer-links-grid .footer-legal-nav a {
  display: block;
}

/* ===== Accessibility helpers ===== */
.a11y-text-size {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.a11y-text-size-btn {
  border-color: var(--line);
}
.a11y-text-size-btn[aria-pressed="true"] {
  border-color: rgba(47, 155, 255, 0.7);
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(47, 155, 255, 0.35);
}
.a11y-text-size-btn:focus-visible {
  outline: 2px solid var(--green-300);
  outline-offset: 2px;
}

/* ===== Legal pages (Impressum / Datenschutz) ===== */
.legal {
  min-height: 70vh;
  padding: 70px 0 90px;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(47, 155, 255, 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:not(.btn) { color: var(--accent); }
.legal-block a:not(.btn):hover { color: var(--green-300); }
.legal-block a.btn-primary,
.legal-block a.btn-primary:hover,
.legal-block a.btn-primary:visited {
  color: #041018;
}
.legal-block p { color: var(--text-dim); }
.legal-block ul,
.legal-block ol { color: var(--text-dim); margin: 12px 0 12px 22px; }
.legal-block li { margin-bottom: 6px; }
.legal-block h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 18px 0 10px;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 14px 0 18px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}
.legal-table code {
  font-size: 0.88em;
}
.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-block blockquote.legal-note {
  margin: 16px 0;
  font-style: normal;
}
/* ===== Security / VirusTotal page ===== */
.security-page {
  padding: 48px 0 64px;
}
.security-page .legal-inner {
  max-width: 920px;
}
.security-page .legal-intro {
  margin-bottom: 20px;
  max-width: 62ch;
}
.security-page .legal-block {
  padding: 16px 18px;
  margin-bottom: 14px;
}
.security-page .legal-block h2 {
  margin-bottom: 8px;
}
.security-page .legal-block p {
  margin: 0 0 10px;
}
.security-why {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 14px;
}
.security-why > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--text);
}
.security-why > summary::-webkit-details-marker {
  display: none;
}
.security-why > summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  margin-left: 4px;
}
.security-why[open] > summary::after {
  transform: rotate(45deg);
}
.security-why[open] .security-why-hint {
  display: none;
}
.security-why-hint {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
}
.security-why-body {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line);
}
.security-why-body p {
  margin: 12px 0 8px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.security-why-body ul {
  margin: 0 0 8px 1.1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.security-why-body li {
  margin-bottom: 4px;
}
.security-why-note {
  font-size: 0.88rem !important;
  color: var(--text-dim);
  border-left: 3px solid var(--line);
  padding-left: 12px;
  margin: 10px 0 0 !important;
}
.security-vt-intro {
  margin-bottom: 4px !important;
  font-size: 0.92rem;
}
.security-vt-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.security-vt-group:first-of-type {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}
.security-vt-group > h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text);
  letter-spacing: 0.01em;
}
.security-vt-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.security-vt-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.security-vt-card h4 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  color: var(--text);
}
.security-vt-file,
.security-vt-hash {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.35;
}
.security-vt-card .btn {
  margin-top: 8px;
  align-self: stretch;
  text-align: center;
}
.security-vt-card code {
  font-size: 0.86em;
  word-break: break-all;
}
.security-verify-block p {
  margin-bottom: 12px !important;
  font-size: 0.92rem;
}
.security-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.legal-block blockquote.legal-note p {
  margin: 0 0 8px;
}
.legal-block blockquote.legal-note p:last-child {
  margin-bottom: 0;
}
.legal-back { margin-top: 10px; }

.legal-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.legal-form label span {
  display: block;
  margin-bottom: 6px;
}
.legal-form input,
.legal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--green-900);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.legal-form textarea {
  resize: vertical;
  min-height: 88px;
}
.legal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.legal-form-note,
.legal-form-aside {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 8px 0 18px;
}
.legal-form-aside { margin-top: 0; margin-bottom: 22px; }
.legal-form-error {
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: #ffb4b4;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 0.92rem;
}
.legal-form .btn-primary {
  align-self: flex-start;
  margin-top: 4px;
}
.legal-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 400;
}
.legal-widerruf-cta {
  text-align: center;
  padding: 1.5rem 1.25rem;
}
.legal-widerruf-cta .legal-widerruf-btn {
  margin-bottom: 10px;
}

/* § 356a BGB – persistent withdrawal affordance on every public/panel page */
.gts-widerruf-fab {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 9995;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  background: #e53935;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(229, 57, 53, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
/* Panel layout: keep FAB clear of the left sidebar / account nav */
body.panel-body .gts-widerruf-fab {
  left: auto;
  right: max(12px, env(safe-area-inset-right, 0px));
}
.gts-widerruf-fab:hover,
.gts-widerruf-fab:focus-visible {
  background: #c62828;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.gts-widerruf-fab-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  overflow: hidden;
}
.gts-widerruf-fab-icon svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
}
.gts-widerruf-fab-short {
  display: none;
}
/* Prefer full “Vertrag widerrufen”; shorten only on very narrow phones */
@media (max-width: 380px) {
  .gts-widerruf-fab {
    font-size: 0.82rem;
    padding: 9px 14px;
    left: max(8px, env(safe-area-inset-left, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }
  body.panel-body .gts-widerruf-fab {
    left: auto;
    right: max(8px, env(safe-area-inset-right, 0px));
  }
  .gts-widerruf-fab-full {
    display: none;
  }
  .gts-widerruf-fab-short {
    display: inline;
  }
}
/* Hide Widerruf FAB while cookie banner is open — avoids covering CTAs on iPhone
   and prevents taps falling through to the FAB under a pointer-events quirk. */
body:has(.gts-cookie:not(.is-hidden):not([hidden])) .gts-widerruf-fab {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.legal-widerruf-success {
  border-color: rgba(47, 155, 255, 0.35);
  background: rgba(47, 155, 255, 0.08);
}
.btn-danger,
a.btn-danger,
button.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(220, 53, 69, 0.55);
  background: #c82333;
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-danger:hover,
a.btn-danger:hover,
button.btn-danger:hover {
  background: #a71d2a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(200, 35, 51, 0.35);
}
.legal-form .legal-widerruf-btn {
  align-self: flex-start;
  margin-top: 4px;
  border-radius: 12px;
}
.legal-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .legal-form-grid { grid-template-columns: 1fr; }
}

/* ===== 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: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 0 5%;
    max-height: 0;
    height: auto;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    justify-content: flex-start;
  }
  .main-nav.open { max-height: min(85vh, 640px); padding: 12px 5% 16px; overflow-y: auto; }
  .nav-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .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: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
  .account-bar-seg {
    position: relative;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
    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;
    align-self: stretch;
    height: auto;
    min-height: 44px;
    padding: 10px 12px;
  }
  .account-bar-icons {
    flex-direction: row;
    width: 100%;
    align-self: stretch;
    justify-content: flex-start;
    gap: 0;
    box-sizing: border-box;
  }
  .account-bar-icons .account-bar-seg {
    flex: 1 1 0;
    flex-direction: row;
    border-right: 1px solid var(--line);
    border-bottom: none;
  }
  .account-bar-icons .account-bar-seg:last-child { border-right: none; }
  .account-bar-icons .account-bar-icon-btn {
    width: 100%;
    min-width: 44px;
    justify-content: center;
    padding: 12px 14px;
  }
  .user-btn { width: 100%; justify-content: flex-start; }
  /* Keep menus out of document flow on mobile so closed panels don't inflate rows */
  .user-menu-list,
  .account-bar .user-menu-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    width: auto;
    max-width: none;
    min-width: 0;
    margin-top: 0;
    z-index: 30;
  }
  .account-bar .account-bar-seg:last-child .user-menu-list {
    left: 0;
    right: 0;
  }
  .nav-actions .lang-switch {
    position: relative;
    flex: 0 0 auto;
  }
  .nav-actions .lang-switch .lang-menu {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
    top: calc(100% + 6px);
  }
  .nav-actions .lang-btn { width: 100%; justify-content: space-between; min-height: 44px; }
  .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; }
}

/* Cookie consent (DSGVO / TDDDG)
   Important for iOS Safari: do NOT set pointer-events:none on .gts-cookie.
   Children with pointer-events:auto often do not receive taps when the fixed
   parent has pointer-events:none (Safari 16–18). */
.gts-cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10050;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.gts-cookie.is-hidden,
.gts-cookie[hidden] { display: none !important; }
.gts-cookie-panel {
  pointer-events: auto;
  max-width: 560px;
  max-height: min(70vh, 70dvh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  padding: 14px 16px 16px;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line, #1c2740);
  border-bottom: none;
  background: #0a1018;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.4);
  color: var(--text, #e8eee9);
  touch-action: manipulation;
}
.gts-cookie-main h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-200, #d4ebff);
}
.gts-cookie-main p {
  margin: 0 0 6px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #b7c4d6;
}
.gts-cookie-legal {
  margin: 0 0 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #b7c4d6;
}
.gts-cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0 !important;
}
.gts-cookie-links a,
.gts-cookie-linkish {
  color: var(--green-300, #7ec4ff);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gts-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.gts-cookie.is-open-settings #gtsCookieSettings {
  display: none;
}
.gts-cookie-btn {
  position: relative;
  z-index: 1;
  min-height: 44px;
  flex: 1 1 120px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text, #f0f2f1) !important;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(47, 155, 255, 0.25);
}
.gts-cookie-actions .btn-primary.gts-cookie-btn,
.gts-cookie-save {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text, #f0f2f1) !important;
}
.gts-cookie-save {
  width: 100%;
  flex: 1 1 auto;
  margin-top: 2px;
}
.gts-cookie-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #1c2740);
}
.gts-cookie-toggles {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.gts-cookie-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.gts-cookie-toggle input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green-400, #2f9bff);
}
.gts-cookie-toggle strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 1px;
  line-height: 1.3;
}
.gts-cookie-toggle small {
  display: block;
  font-size: 0.72rem;
  color: #b7c4d6;
  line-height: 1.35;
}
.gts-cookie-inventory {
  margin-top: 10px;
}
.gts-cookie-inventory > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b7c4d6;
  padding: 4px 0;
  user-select: none;
}
.gts-cookie-inventory > summary::-webkit-details-marker {
  display: none;
}
.gts-cookie-inventory > summary::before {
  content: "";
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-right: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  vertical-align: 0.15em;
  transition: transform 0.15s ease;
}
.gts-cookie-inventory[open] > summary::before {
  transform: rotate(45deg);
}
.gts-cookie-inventory > summary:hover {
  color: var(--green-300, #7ec4ff);
}
.gts-cookie-table-wrap {
  overflow: auto;
  max-height: min(28vh, 200px);
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.gts-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  line-height: 1.35;
}
.gts-cookie-table th,
.gts-cookie-table td {
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gts-cookie-table th {
  position: sticky;
  top: 0;
  background: #0a1018;
  color: var(--green-200, #d4ebff);
  font-weight: 600;
  white-space: nowrap;
}
.gts-cookie-table code {
  font-size: 0.7rem;
  word-break: break-word;
}
@media (max-width: 720px) {
  .gts-cookie {
    padding: 0;
    /* Safe area is applied on the panel so buttons clear the home indicator */
    padding-bottom: 0;
  }
  .gts-cookie-panel {
    border-radius: 14px 14px 0 0;
    max-width: none;
    max-height: min(78vh, 78dvh, 720px);
    padding-bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
  }
  .gts-cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
  .gts-cookie-btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gts-cookie-panel { transition: none; }
  .gts-cookie-inventory > summary::before { transition: none; }
}

/* Server join (/s/hostname) */
.join-page {
  padding: 48px 0 72px;
  min-height: 50vh;
}
.join-page-inner {
  max-width: 560px;
}
.join-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.join-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 155, 255, 0.12);
  color: var(--accent);
}
.join-card-icon .icon {
  width: 28px;
  height: 28px;
}
.join-card h1 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}
.join-server {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--accent);
  word-break: break-all;
}
.join-lead {
  margin: 0 0 18px;
  color: var(--text-dim);
  line-height: 1.5;
}
.join-loading {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.join-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: join-spin 0.8s linear infinite;
}
@keyframes join-spin {
  to { transform: rotate(360deg); }
}
.join-fallback-title {
  margin: 0 0 8px;
  font-weight: 600;
}
.join-fallback-text {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.join-actions-stack {
  flex-direction: column;
  align-items: stretch;
}
.join-actions .btn,
.join-actions-stack .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.join-hint {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.join-card-error .join-card-icon {
  background: rgba(240, 160, 160, 0.12);
  color: #f0a0a0;
}
@media (prefers-reduced-motion: reduce) {
  .join-spinner { animation: none; border-top-color: var(--accent); }
}

/* ===== Donate / What's new ===== */
.donate-page + .site-footer,
.whats-new-page + .site-footer,
.news-page + .site-footer { margin-top: 0; }
.donate-page {
  overflow-x: clip;
}
.donate-hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(47, 155, 255, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.donate-hero-inner { max-width: 760px; }
.donate-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.donate-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.donate-lead {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 58ch;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.donate-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.donate-body,
.whats-new-body { padding: 28px 0 72px; }
.donate-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.donate-tab {
  padding: 10px 16px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 600;
}
.donate-tab.is-active,
.donate-tab:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: start;
}
.donate-main,
.donate-sidebar,
.donate-panel,
.donate-stat-card {
  min-width: 0;
}
.donate-panel,
.donate-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.donate-panel h2,
.donate-stat-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.donate-overview-text {
  color: var(--text-dim);
  white-space: pre-wrap;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.donate-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.donate-field { margin-bottom: 20px; }
.donate-amount-row,
.donate-method-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.donate-amount-btn,
.donate-method-card {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.donate-amount-btn.is-active,
.donate-amount-btn:hover,
.donate-method-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--accent-soft);
}
.donate-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: min(100%, 180px);
  flex: 1 1 160px;
}
.donate-method-name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.donate-method-chevron {
  color: var(--text-dim);
  flex-shrink: 0;
}
.donate-form.is-submitting .donate-method-card {
  opacity: 0.65;
  cursor: wait;
}
.donate-redirect-status {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(47, 155, 255, 0.35);
  background: rgba(47, 155, 255, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.donate-custom-field,
.donate-name-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  min-width: 0;
}
.donate-custom-field input,
.donate-name-field input {
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.donate-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.donate-check span {
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.donate-hint {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.donate-stat-value {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.donate-goal-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-dim);
  margin: 0 0 10px;
  font-size: 0.92rem;
}
.donate-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.donate-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f9bff, var(--accent));
  border-radius: inherit;
}
.donate-progress-label {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.donate-rank-list,
.donate-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.donate-rank-list li,
.donate-feed li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.donate-rank-list span,
.donate-feed-name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.donate-rank-list strong,
.donate-feed-amount {
  flex-shrink: 0;
}
.donate-feed-name { font-weight: 600; }
.donate-feed-amount { color: var(--accent); font-weight: 700; }
.donate-feed-date { color: var(--text-dim); font-size: 0.82rem; margin-left: auto; }
.donate-empty {
  color: var(--text-dim);
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.whats-new-section { margin-bottom: 36px; }
.whats-new-section h2 { margin: 0 0 14px; }
.whats-new-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.whats-new-feed-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.whats-new-feed-item:last-child { border-bottom: none; }
.whats-new-feed-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}
.whats-new-feed-title:hover { color: var(--accent); }
.whats-new-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.whats-new-feed-cat { color: var(--accent); font-weight: 600; }
.whats-new-more { margin-top: 16px; }
.whats-new-more a { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) {
  .donate-layout { grid-template-columns: 1fr; }
  .donate-hero { padding-top: 56px; }
}
@media (max-width: 640px) {
  .donate-page .donate-hero {
    padding: 48px 0 28px;
  }
  .donate-page .donate-hero-inner {
    width: min(1180px, 94%);
  }
  .donate-page .donate-body {
    width: min(1180px, 94%);
    padding: 20px 0 56px;
  }
  .donate-page .donate-title {
    font-size: clamp(1.4rem, 6.2vw, 1.85rem);
    line-height: 1.25;
  }
  .donate-page .donate-lead {
    font-size: 0.98rem;
    max-width: none;
    margin-bottom: 18px;
  }
  .donate-page .donate-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }
  .donate-page .donate-hero-actions {
    width: 100%;
  }
  .donate-page .donate-hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }
  .donate-page .donate-tabs {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .donate-page .donate-tabs::-webkit-scrollbar {
    display: none;
  }
  .donate-page .donate-tab {
    padding: 10px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .donate-page .donate-panel,
  .donate-page .donate-stat-card {
    padding: 16px;
    margin-bottom: 14px;
  }
  .donate-page .donate-panel h2,
  .donate-page .donate-stat-card h3 {
    font-size: 1.05rem;
  }
  .donate-page .donate-amount-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .donate-page .donate-amount-btn {
    width: 100%;
    min-height: 44px;
    text-align: center;
    padding: 11px 10px;
  }
  .donate-page .donate-amount-btn-custom {
    grid-column: 1 / -1;
  }
  .donate-page .donate-method-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .donate-page .donate-method-card {
    min-width: 0;
    flex: none;
    width: 100%;
    min-height: 48px;
    padding: 14px 14px;
  }
  .donate-page .donate-custom-field input,
  .donate-page .donate-name-field input {
    max-width: none;
    min-height: 44px;
    font-size: 1rem;
  }
  .donate-page .donate-hint {
    font-size: 0.84rem;
  }
  .donate-page .donate-stat-value {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .donate-page .donate-feed li {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .donate-page .donate-feed-date {
    margin-left: 0;
    flex-basis: 100%;
  }
  .donate-page .donate-rank-list li {
    gap: 8px;
  }
}
@media (max-width: 380px) {
  .donate-page .donate-amount-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .donate-page .donate-amount-btn-custom {
    grid-column: auto;
  }
  .donate-page .donate-title {
    font-size: 1.35rem;
  }
  .donate-page .donate-panel,
  .donate-page .donate-stat-card {
    padding: 14px;
  }
}

/* Community Hosting public order page */
.community-hosting-page + .site-footer { margin-top: 0; }
.community-hosting-body {
  padding: 28px 0 64px;
}
.community-hosting-order-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.community-hosting-order-sub {
  margin: 0 0 20px;
  color: var(--text-dim);
}
.community-hosting-disabled {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}

/* ===== Public overhaul: paths, features, support ===== */
.hero-kicker {
  display: none;
}
.hero-cta-secondary { opacity: 0.95; }
.home-paths { padding: 64px 0 24px; }
.home-path-list,
.home-support-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-feat-columns {
  display: grid;
  gap: 0;
}
.home-info-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
}
.feat-page-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.feat-page-list li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  line-height: 1.45;
}
.feat-page-list li:first-child { border-top: 0; padding-top: 0; }
.feat-page-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: var(--radius-sm, 8px);
  background: var(--accent-soft);
  color: var(--accent);
}
.feat-page-check .icon-sm {
  width: 14px;
  height: 14px;
}
.home-quickstart { padding: 48px 0; }
.home-quickstart-steps {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.home-quickstart-steps li {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.home-quickstart-steps strong { font-size: 1.05rem; }
.home-account-faq,
.home-premium,
.home-feature-groups { padding: 28px 0; }
/* home-support-channels padding lives in home.css (Sencha section rhythm) */
.home-premium-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stats-live-note { color: var(--text-dim); margin: 12px 0 8px; font-size: 0.92rem; }
.support-channel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: color 0.15s ease;
}
.support-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(47, 155, 255, 0.08);
  color: var(--accent);
}
.support-channel-icon .icon {
  width: 20px;
  height: 20px;
}
.support-channel-card strong {
  font-size: 1.02rem;
}
.support-channel-card:hover {
  color: var(--text);
}
.feat-page-groups {
  display: grid;
  gap: var(--space-5, 20px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feat-page-group {
  padding: var(--space-6, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm, var(--shadow));
}
.feat-page-group-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4, 16px);
  margin-bottom: 4px;
}
.feat-page-group-head .teaspeak-card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.feat-page-group h2 {
  font-size: var(--font-size-lg, 1.18rem);
  margin: 0 0 8px;
}
.feat-page-group-intro {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.faq-account-box,
.faq-support-box,
.faq-more-box {
  margin: 0 0 22px;
}
.teaspeak-transfer { margin-top: 0; }
.teaspeak-transfer-table { width: 100%; }

/* Shared marketing content panels (FAQ, security, a11y, guidelines) */
.mkt-prose {
  max-width: 920px;
}
.mkt-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm, var(--shadow));
}
.mkt-panel > .teaspeak-card-icon {
  margin-bottom: 14px;
}
.mkt-panel h2 {
  font-size: var(--font-size-lg, 1.18rem);
  margin: 0 0 10px;
  color: var(--text);
}
.mkt-panel-lead,
.mkt-panel > p {
  color: var(--text-dim);
  margin: 0 0 12px;
}
.mkt-panel > p:last-child {
  margin-bottom: 0;
}
.mkt-panel ul,
.mkt-panel ol {
  color: var(--text-dim);
  margin: 0 0 0 1.15rem;
}
.mkt-panel li {
  margin-bottom: 6px;
}
.mkt-panel a:not(.btn) {
  color: var(--accent);
}
.mkt-panel a:not(.btn):hover {
  color: var(--green-300);
}
.mkt-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.mkt-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.mkt-related a {
  color: var(--accent);
  font-weight: 600;
}
.mkt-related a:hover {
  color: var(--green-300);
}
.mkt-section {
  scroll-margin-top: calc(var(--header-h, 68px) + 20px);
}
.faq-page .teaspeak-faq > h2,
.a11y-page #a11y-text-size-heading,
.security-page #security-vt-heading {
  scroll-margin-top: calc(var(--header-h, 68px) + 20px);
}
.a11y-page .legal-note {
  margin: 14px 0 0;
}

@media (max-width: 860px) {
  .feat-page-groups {
    grid-template-columns: 1fr;
  }
  .feature-table-wrap,
  .teaspeak-compare-table-wrap,
  .stats-history-table-wrap,
  .dl-reqs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mkt-panel {
    padding: 20px 18px;
  }
}
