/* ==========================================================================
   GG2K Review Hub & Hybrid Gaming Lobby Design System (2026–2027)
   Color Theme: Obsidian Forest (#0B120A / #121B10) + Lime Brand (#74C92B -> #3F8F17)
   Accents: Neon Yellow (#DDF024), VIP Gold (#F5B82E), HOT Red-Orange (#EA3C1E)
   ========================================================================== */

:root {
  --bg-obsidian: #0B120A;
  --bg-deep: #121B10;
  --bg-surface: #121B10;
  --bg-card: #182415;
  --bg-card-elevated: #1E2E1A;
  --border-card: #2A3F25;
  --border-bright: #49762D;

  --brand-lime: #74C92B;
  --brand-forest: #3F8F17;
  --brand-gradient: linear-gradient(180deg, #74C92B 0%, #3F8F17 100%);
  --brand-gradient-hover: linear-gradient(180deg, #86DC38 0%, #4BA31D 100%);

  --accent-yellow: #DDF024;
  --accent-gold: #F5B82E;
  --accent-hot: #EA3C1E;
  --accent-emerald-glow: rgba(116, 201, 43, 0.22);

  --text-primary: #F3F8F1;
  --text-secondary: #C4D4BF;
  --text-muted: #93A78E;
  --text-dark: #0A1109;

  --topbar-h: 64px;
  --sidebar-w: 224px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 24px rgba(116, 201, 43, 0.25);

  --font-display: 'Kanit', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  --font-body: 'Prompt', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 50% at 65% 8%, rgba(116, 201, 43, 0.14) 0%, transparent 60%),
    linear-gradient(135deg, rgba(63, 143, 23, 0.08) 0%, transparent 40%, rgba(18, 27, 16, 0.9) 100%),
    repeating-linear-gradient(
      -28deg,
      rgba(116, 201, 43, 0.03) 0px,
      rgba(116, 201, 43, 0.03) 2px,
      transparent 2px,
      transparent 64px
    );
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: #ffffff;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Top Bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(180deg, #1E3219 0%, #101A0E 100%);
  border-bottom: 1px solid var(--border-bright);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-link img {
  width: 112px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

.sidebar-collapse-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #3C5D2E;
  background: #0B120A;
  color: var(--text-primary);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sidebar-collapse-btn:hover {
  border-color: var(--brand-lime);
  color: var(--accent-yellow);
}

.topbar-nav {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(11, 18, 10, 0.72);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar-nav::-webkit-scrollbar {
  display: none;
}

.topbar-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.topbar-nav a:hover,
.topbar-nav a.is-active {
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lime {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: #84DC39;
  box-shadow: 0 4px 14px rgba(116, 201, 43, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-lime:hover {
  background: var(--brand-gradient-hover);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(116, 201, 43, 0.45);
}

.btn-gold {
  background: linear-gradient(180deg, #F8CA4A 0%, #D99311 100%);
  color: #10160B;
  border-color: #FFE07A;
  box-shadow: 0 4px 14px rgba(245, 184, 46, 0.3);
}

.btn-gold:hover {
  color: #080C06;
  filter: brightness(1.06);
}

.btn-dark {
  background: #1A2916;
  color: var(--text-primary);
  border-color: #3B5B2E;
}

.btn-dark:hover {
  background: #23371E;
  border-color: var(--brand-lime);
  color: var(--accent-yellow);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-xs {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.topbar-actions .btn-register,
.topbar-actions .btn-contact {
  display: none;
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-bright);
  background: #1A2B16;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  .topbar-actions .btn-register {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .topbar-actions .btn-contact {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .topbar {
    padding: 0 22px;
  }
  .sidebar-collapse-btn {
    display: inline-flex;
  }
  .topbar-nav {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* ---------- App Shell (Left Sidebar + Main Workspace) ---------- */
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}

.lobby-sidebar {
  display: none;
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--brand-gradient);
  border-right: 1px solid #8CE03F;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25), 6px 0 24px rgba(0, 0, 0, 0.4);
  padding: 12px 10px 24px;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  scrollbar-width: thin;
}

body.sidebar-collapsed .lobby-sidebar {
  width: 0;
  padding: 0;
  border-right: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .lobby-sidebar {
    display: block;
  }
}

.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-btn,
.sidebar-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 18, 10, 0.18);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.16s ease, transform 0.14s ease;
}

.sidebar-btn:hover,
.sidebar-group-toggle:hover {
  background: rgba(11, 18, 10, 0.34);
  transform: translateX(2px);
}

.sidebar-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.sidebar-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sidebar-group {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 8px;
  margin-top: 4px;
}

.sidebar-group-toggle {
  background: rgba(11, 18, 10, 0.34);
  font-family: var(--font-display);
}

.sidebar-group-toggle .chev {
  transition: transform 0.2s ease;
  font-size: 0.78rem;
}

.sidebar-group.is-collapsed .sidebar-group-toggle .chev {
  transform: rotate(-90deg);
}

.sidebar-sublist {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  padding-left: 4px;
}

.sidebar-group.is-collapsed .sidebar-sublist {
  display: none;
}

.sidebar-subbtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #F6FCEF;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  transition: background 0.16s ease;
}

.sidebar-subbtn:hover {
  background: rgba(11, 18, 10, 0.28);
  color: var(--accent-yellow);
}

.sidebar-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(11, 18, 10, 0.45);
  color: var(--accent-yellow);
}

.sidebar-badge.is-hot {
  background: var(--accent-hot);
  color: #ffffff;
}

/* ---------- Main Stage Container ---------- */
.main-stage {
  flex: 1;
  min-width: 0;
  padding: 18px 14px 42px;
}

@media (min-width: 768px) {
  .main-stage {
    padding: 22px 24px 48px;
  }
}

.content-wrap {
  max-width: 1220px;
  margin: 0 auto;
}

/* ---------- Breadcrumb & Hero Strip ---------- */
.lobby-header-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(24, 36, 21, 0.94) 0%, rgba(18, 27, 16, 0.86) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.lobby-header-strip h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.2vw, 1.72rem);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.lobby-header-strip h1 .hl {
  color: var(--accent-yellow);
}

.lobby-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: #0F180D;
  border: 1px solid var(--border-bright);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 8px var(--brand-lime);
}

.status-pill strong {
  color: var(--accent-yellow);
}

/* ---------- Dual Hero Banners (GG2K Lobby Layout) ---------- */
.dual-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

@media (min-width: 900px) {
  .dual-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background: var(--bg-deep);
  min-height: 224px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: stretch;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-banner-card.is-vip::after {
  background: linear-gradient(90deg, rgba(11, 18, 10, 0.25) 0%, rgba(11, 18, 10, 0.84) 38%, rgba(11, 18, 10, 0.94) 100%);
}

.hero-banner-card.is-auto::after {
  background: linear-gradient(90deg, rgba(11, 18, 10, 0.94) 0%, rgba(11, 18, 10, 0.86) 54%, rgba(11, 18, 10, 0.25) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-overlay.align-right {
  padding-left: 26%;
}

.hero-overlay.align-left {
  padding-right: 28%;
}

@media (max-width: 560px) {
  .hero-overlay.align-right,
  .hero-overlay.align-left {
    padding-left: 16px;
    padding-right: 16px;
    background: rgba(11, 18, 10, 0.55);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(234, 60, 30, 0.92);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-eyebrow.is-lime {
  background: var(--brand-gradient);
}

.hero-title {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.8vw, 1.48rem);
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-title .gold {
  color: var(--accent-gold);
}

.hero-title .neon {
  color: var(--accent-yellow);
}

.hero-sub {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.vip-tier-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 5px;
  margin-bottom: 10px;
}

.vip-chip {
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(24, 36, 21, 0.92);
  border: 1px solid #3D5E2C;
  text-align: center;
  line-height: 1.2;
}

.vip-chip span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.vip-chip strong {
  font-size: 0.75rem;
  color: #ffffff;
}

.vip-chip.is-top {
  border-color: var(--accent-yellow);
  background: linear-gradient(135deg, rgba(116, 201, 43, 0.28), rgba(245, 184, 46, 0.24));
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Interactive Game Lobby Console ---------- */
.lobby-console {
  background: rgba(18, 27, 16, 0.92);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.lobby-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-tab {
  min-width: 84px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: #142012;
  color: var(--text-secondary);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cat-tab img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.cat-tab:hover {
  transform: translateY(-2px);
  border-color: var(--brand-lime);
  color: #ffffff;
}

.cat-tab.is-active {
  background: var(--brand-gradient);
  border-color: #9CF04E;
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.lobby-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 380px;
}

.lobby-search-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #35522D;
  background: #0B120A;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

.lobby-search-input::placeholder {
  color: var(--text-muted);
}

.lobby-search-input:focus {
  border-color: var(--brand-lime);
  outline: none;
  box-shadow: 0 0 0 3px rgba(116, 201, 43, 0.2);
}

.lobby-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lobby-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
}

.lobby-section-title span.count {
  font-size: 0.8rem;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: #23361E;
  color: var(--accent-yellow);
}

/* Provider 3:4 Card Grid */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .provider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.provider-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.provider-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-lime);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

.provider-art {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0B120A;
}

.provider-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.provider-card:hover .provider-art img {
  transform: scale(1.04);
}

.provider-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 10, 0.08) 40%, rgba(11, 18, 10, 0.94) 100%);
  pointer-events: none;
}

.provider-top-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.badge-hot {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-hot);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(234, 60, 30, 0.45);
}

.badge-rtp {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(11, 18, 10, 0.88);
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
  font-size: 0.74rem;
  font-weight: 700;
}

.provider-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
}

.provider-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.provider-meta {
  font-size: 0.76rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.provider-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  background: #141F12;
  border-top: 1px solid var(--border-card);
}

.empty-lobby-msg {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  background: #141F12;
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

/* ---------- Below-the-Fold SEO Review Hub Sections ---------- */
.review-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .review-section {
    padding: 28px 26px;
  }
}

.review-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.26rem, 2.3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.32;
  color: #ffffff;
  border-left: 4px solid var(--brand-lime);
  padding-left: 12px;
}

.review-section h3 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--accent-yellow);
}

.direct-answer-box {
  background: linear-gradient(135deg, rgba(116, 201, 43, 0.14) 0%, rgba(24, 36, 21, 0.96) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.68;
}

.direct-answer-box strong {
  color: var(--accent-yellow);
}

.direct-answer-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .kpi-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpi-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
}

.kpi-box .label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.kpi-box .val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-top: 2px;
}

/* Rating Scorecard */
.scorecard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 820px) {
  .scorecard-grid {
    grid-template-columns: 260px 1fr;
  }
}

.score-overall-box {
  background: linear-gradient(160deg, #1F351A 0%, #101A0E 100%);
  border: 1px solid var(--brand-lime);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.score-big {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-yellow);
}

.score-max {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.score-stars {
  margin: 8px 0;
  color: var(--accent-gold);
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-bar-row {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.score-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.score-bar-head strong {
  color: var(--accent-yellow);
}

.score-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: #0B120A;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #74C92B 0%, #DDF024 100%);
}

/* Pros & Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
}

.pc-card.is-pros {
  border-top: 3px solid var(--brand-lime);
}

.pc-card.is-cons {
  border-top: 3px solid var(--accent-gold);
}

.pc-card h3 {
  margin-top: 0;
}

.pc-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
}

/* Semantic Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  margin: 14px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.9rem;
}

thead th {
  background: linear-gradient(180deg, #253A1E 0%, #192914 100%);
  color: var(--accent-yellow);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-bright);
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(42, 63, 37, 0.7);
  color: var(--text-secondary);
  vertical-align: top;
}

tbody tr:hover {
  background: rgba(116, 201, 43, 0.06);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.td-highlight {
  color: var(--accent-yellow);
  font-weight: 700;
}

/* Interactive Turnover Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 14px;
}

@media (min-width: 820px) {
  .calc-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.calc-form-panel,
.calc-result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
}

.calc-result-panel {
  border-color: var(--brand-lime);
  background: linear-gradient(160deg, #1D3018 0%, #121B10 100%);
}

.field-group {
  margin-bottom: 14px;
}

.field-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.field-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #3B5B2E;
  background: #0B120A;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.96rem;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.preset-chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #3B5B2E;
  background: #101A0E;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.preset-chip:hover,
.preset-chip.is-active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: var(--brand-lime);
}

.calc-output-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.calc-stat {
  background: rgba(11, 18, 10, 0.72);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.calc-stat span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.calc-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: var(--accent-yellow);
  margin-top: 2px;
}

.calc-advice {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(245, 184, 46, 0.12);
  border: 1px solid rgba(245, 184, 46, 0.4);
  font-size: 0.86rem;
  color: #FBE9B8;
}

/* Media Frames & Cards Grid */
.media-frame {
  margin: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.media-frame img {
  width: 100%;
  object-fit: cover;
}

.media-frame figcaption {
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-card);
}

.silo-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .silo-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .silo-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.silo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.silo-card:hover {
  border-color: var(--brand-lime);
  transform: translateY(-2px);
}

.silo-card-tag {
  display: inline-block;
  width: fit-content;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(116, 201, 43, 0.18);
  color: var(--accent-yellow);
  font-size: 0.74rem;
  font-weight: 700;
}

.silo-card h3 {
  margin: 4px 0;
  font-size: 1.02rem;
  color: #ffffff;
}

.silo-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* FAQ Accordion (<details>/<summary>, no heading inside summary) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--brand-lime);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-yellow);
  border-bottom: 2px solid var(--accent-yellow);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 16px 15px 36px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Sub-page Breadcrumb & Page Hero */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.page-hero-card {
  background: linear-gradient(135deg, #1B2C17 0%, #101A0E 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.page-hero-card h1 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.8vw, 2rem);
  line-height: 1.28;
  color: #ffffff;
}

.page-hero-lead {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ---------- Slide-over Quick-Review Drawer (<dialog>) ---------- */
dialog.review-drawer {
  margin: 0 0 0 auto;
  padding: 0;
  width: min(440px, 92vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  border: 0;
  border-left: 1px solid var(--brand-lime);
  background: #10190E;
  color: var(--text-primary);
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.75);
}

dialog.review-drawer::backdrop {
  background: rgba(5, 9, 4, 0.76);
  backdrop-filter: blur(4px);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--brand-gradient);
  color: #ffffff;
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 18, 10, 0.45);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #1B2C17;
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
  font-weight: 700;
  font-size: 0.88rem;
  width: fit-content;
}

.drawer-spec-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  border-bottom: 1px dashed rgba(42, 63, 37, 0.8);
  padding-bottom: 6px;
}

.drawer-spec-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.drawer-spec-row span {
  color: var(--text-muted);
}

.drawer-spec-row strong {
  color: #ffffff;
  text-align: right;
}

.drawer-foot {
  padding: 14px 18px;
  background: #0B120A;
  border-top: 1px solid var(--border-card);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Mobile Sidebar Drawer (<dialog>) */
dialog.mobile-nav-drawer {
  margin: 0 auto 0 0;
  padding: 0;
  width: min(296px, 84vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  border: 0;
  background: var(--brand-gradient);
  color: #ffffff;
}

dialog.mobile-nav-drawer::backdrop {
  background: rgba(5, 9, 4, 0.78);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(11, 18, 10, 0.35);
}

.mobile-drawer-body {
  padding: 12px;
  overflow-y: auto;
  height: calc(100% - 62px);
}

.mobile-silo-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-silo-links a {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(11, 18, 10, 0.25);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Footer (Mandatory Mobile Bottom Clearance >= 85px) ---------- */
footer.site-footer {
  background: #080E07;
  border-top: 1px solid var(--border-card);
  padding: 32px 18px 85px;
  padding-bottom: 85px;
}

@media (min-width: 1024px) {
  footer.site-footer {
    padding: 36px 28px 85px;
  }
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.footer-col h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--accent-yellow);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.footer-col a:hover {
  color: var(--accent-yellow);
}

.footer-disclaimer {
  max-width: 1220px;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- Sticky Mobile Bottom Bar (6 Buttons) ---------- */
.mobile-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: linear-gradient(180deg, #162413 0%, #0A1109 100%);
  border-top: 1px solid var(--brand-lime);
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.72);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}

.mob-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 2px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.64rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.mob-bar-item .mob-ico {
  font-size: 1.05rem;
  line-height: 1;
}

.mob-bar-item.is-active {
  color: var(--accent-yellow);
}

.mob-bar-item.is-play {
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(116, 201, 43, 0.4);
}

@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none;
  }
}

/* ---------- Subpage Layout Helpers ---------- */
.content-stack > p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.content-stack ul,
.content-stack ol {
  margin: 8px 0 14px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.content-stack li {
  margin-bottom: 6px;
}

.inline-cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(63, 143, 23, 0.28) 0%, rgba(24, 36, 21, 0.92) 100%);
  border: 1px solid var(--brand-lime);
  margin: 18px 0 6px;
}

.inline-cta-box p {
  margin: 0;
  font-size: 0.92rem;
  color: #ffffff;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-pill {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}

.filter-pill.is-active,
.filter-pill:hover {
  background: var(--brand-gradient);
  border-color: var(--brand-lime);
  color: #ffffff;
}
