/* ==========================================================================
   YQ包网 (YQ Global White Label) — Master Stylesheet
   Hybrid High-Contrast Enterprise Aesthetic (Dark Hero + Light/Dark Switchable)
   ========================================================================== */

:root {
  /* Brand Palette */
  --brand-gold: #f59e0b;
  --brand-amber: #ff6a00;
  --brand-gold-soft: rgba(245, 158, 11, 0.14);
  --brand-blue: #2563eb;
  --brand-cyan: #06b6d4;
  --brand-grad: linear-gradient(135deg, #f59e0b 0%, #ff6a00 100%);
  --brand-tech-grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);

  /* Light Mode Semantic Tokens */
  --bg-body: #f5f7fb;
  --bg-surface: #ffffff;
  --bg-surface-alt: #eef2f9;
  --bg-dark-hero: #060a14;
  --bg-dark-card: #0e1526;
  --bg-dark-card-2: #131c31;
  --border-light: rgba(15, 23, 42, 0.09);
  --border-dark: rgba(255, 255, 255, 0.1);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #94a3b8;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 12px 32px rgba(245, 158, 11, 0.28);
  --glass-header: rgba(6, 10, 20, 0.78);
  --watermark-color: rgba(15, 23, 42, 0.045);

  /* Layout & Radius */
  --container: 1260px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark Theme Override */
[data-theme="dark"] {
  --bg-body: #070b15;
  --bg-surface: #0e1526;
  --bg-surface-alt: #131c31;
  --border-light: rgba(255, 255, 255, 0.09);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  --watermark-color: rgba(255, 255, 255, 0.04);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #b8c2d1;
  opacity: 1;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(148, 163, 184, 0.42);
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--dark {
  background: var(--bg-dark-hero);
  color: var(--text-on-dark);
}

.section--alt {
  background: var(--bg-surface-alt);
}

/* ==========================================================================
   Typography & Section Headers (TC Gaming Bilingual Watermark + DB Precision)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
  position: relative;
}

.section-watermark {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--watermark-color);
  line-height: 1;
  user-select: none;
  margin-bottom: -18px;
  pointer-events: none;
}

.section--dark .section-watermark {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand-gold-soft);
  color: var(--brand-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 14px;
}

.section-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 8px var(--brand-gold);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.section--dark .section-sub {
  color: var(--text-on-dark-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-grad);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 106, 0, 0.42);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-outline-theme {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline-theme:hover {
  border-color: var(--brand-gold);
  color: var(--brand-amber);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Top Official Anti-Phishing Alert Bar (Inspired by WG & TC)
   ========================================================================== */
.top-alert {
  background: linear-gradient(90deg, #1b1407 0%, #2a1c06 50%, #17120a 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  color: #fde68a;
  font-size: 0.82rem;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}

.top-alert.hidden {
  display: none;
}

.top-alert__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  padding-right: 36px;
}

.top-alert__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
}

.top-alert__link {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.24);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s;
}

.top-alert__link:hover {
  background: var(--brand-amber);
}

.top-alert__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(253, 230, 138, 0.65);
  font-size: 1.1rem;
  padding: 4px 8px;
}

.top-alert__close:hover {
  color: #ffffff;
}

/* ==========================================================================
   Sticky Glassmorphic Header (Inspired by DB Gaming + WG Multi-Lang)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.header.scrolled {
  background: rgba(6, 10, 20, 0.92);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-grad);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.brand__name span {
  color: var(--brand-gold);
}

.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover,
.nav__link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  outline: none;
}

.lang-select option {
  background: #0e1526;
  color: #f8fafc;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--brand-gold);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(6, 10, 20, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer__links a {
  padding: 14px 16px;
  border-radius: 12px;
  color: #f8fafc;
  font-size: 1.08rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Hero Section — Global Multi-Region Command Center
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg-dark-hero);
  color: #ffffff;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 75% 32%, rgba(245, 158, 11, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 20% 75%, rgba(37, 99, 235, 0.2) 0%, transparent 48%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero__title {
  font-size: clamp(2.4rem, 4.4vw, 3.85rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero__title-accent {
  display: block;
  background: linear-gradient(95deg, #fde68a 0%, #f59e0b 45%, #ff6a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 6px;
}

.hero__desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.8;
  max-width: 590px;
  margin-bottom: 32px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 500;
}

.node-chip b {
  color: #38bdf8;
  font-weight: 700;
}

/* Hero Visual Showcase */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18), rgba(6, 10, 20, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(245, 158, 11, 0.12);
}

.hero__image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__float-card {
  position: absolute;
  background: rgba(14, 21, 38, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatY 5s ease-in-out infinite;
}

.hero__float-card--1 {
  top: 22px;
  left: -20px;
}

.hero__float-card--2 {
  bottom: 24px;
  right: -16px;
  animation-delay: 2.2s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: rgba(245, 158, 11, 0.16);
  color: var(--brand-gold);
}

.float-icon--blue {
  background: rgba(6, 182, 212, 0.16);
  color: #38bdf8;
}

.float-val {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.float-lbl {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* KPI Strip */
.kpi-bar {
  margin-top: 64px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.kpi-item {
  text-align: center;
  padding: 6px 12px;
  position: relative;
}

.kpi-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.kpi-num {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.kpi-label {
  font-size: 0.86rem;
  color: #94a3b8;
  margin-top: 6px;
}

/* ==========================================================================
   Section 2: Interactive Global Markets Hub (Signature Multi-Region Module)
   ========================================================================== */
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.region-tab {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.region-tab:hover {
  border-color: var(--brand-gold);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.region-tab.active {
  background: var(--brand-grad);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.region-hub {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 28px;
  align-items: stretch;
}

.map-panel {
  background: var(--bg-dark-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #ffffff;
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.map-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.world-map-wrap {
  position: relative;
  width: 100%;
  margin: 8px 0 18px;
}

.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-pin {
  cursor: pointer;
  transition: transform 0.25s ease;
}

.map-pin .pin-ring {
  fill: rgba(245, 158, 11, 0.18);
  transition: all 0.3s ease;
}

.map-pin .pin-core {
  fill: #64748b;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.map-pin:hover .pin-core,
.map-pin.active .pin-core {
  fill: #f59e0b;
  r: 8;
}

.map-pin.active .pin-ring {
  fill: rgba(245, 158, 11, 0.35);
  animation: svgPulse 1.8s infinite;
}

@keyframes svgPulse {
  0% { opacity: 0.9; }
  50% { opacity: 0.25; }
  100% { opacity: 0.9; }
}

.map-panel__footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.map-stat {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-stat__lbl {
  font-size: 0.74rem;
  color: #94a3b8;
}

.map-stat__val {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fbbf24;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Region Detail Card */
.region-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  min-height: 676px;
}

.region-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
  min-height: 54px;
}

.region-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
}

.region-card__en {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.region-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .region-badge {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.18);
}

.region-chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  min-height: 76px;
}

.chip {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.chip--gold {
  background: var(--brand-gold-soft);
  color: var(--brand-amber);
  border-color: rgba(245, 158, 11, 0.25);
}

.region-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.region-meta-box {
  background: var(--bg-surface-alt);
  border-radius: 14px;
  padding: 15px 16px;
  border: 1px solid var(--border-light);
  min-height: 232px;
}

.region-meta-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.region-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-meta-tags span {
  font-size: 0.8rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 500;
}

.region-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.region-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.region-highlights li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 2px;
}

.region-card__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.region-lang-line {
  width: 100%;
  font-size: 0.84rem;
  line-height: 1.5;
  min-height: 22px;
  color: var(--text-muted);
}

.region-card__foot .btn {
  width: auto;
  padding: 10px 22px;
}

/* ==========================================================================
   Section 3: Turnkey Solution Models (4-Tab Switcher)
   ========================================================================== */
.solution-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.solution-tab {
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.solution-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .solution-tab.active {
  background: var(--brand-grad);
  border-color: transparent;
}

.solution-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 40px;
  align-items: center;
}

.solution-left__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--brand-gold-soft);
  color: var(--brand-amber);
  margin-bottom: 14px;
}

.solution-left__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.solution-left__desc {
  color: var(--text-secondary);
  font-size: 0.97rem;
  margin-bottom: 24px;
}

.solution-meta-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.solution-meta-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--bg-surface-alt);
  padding: 10px 14px;
  border-radius: 12px;
}

.solution-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.sol-metric {
  background: var(--bg-dark-card);
  color: #ffffff;
  padding: 14px 12px;
  border-radius: 14px;
  text-align: center;
}

.sol-metric__k {
  font-size: 0.72rem;
  color: #94a3b8;
}

.sol-metric__v {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fbbf24;
  margin-top: 4px;
}

.solution-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sol-feature {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 22px;
  transition: transform var(--transition), border-color var(--transition);
}

.sol-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.sol-feature__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-amber);
  margin-bottom: 8px;
}

.sol-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sol-feature p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section 4: Product Matrix Bento Grid + Filterable Game API Catalog
   (Inspired by DB Gaming Bento + WG API Explorer)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: repeat(3, minmax(150px, auto));
  gap: 18px;
  margin-bottom: 64px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.45;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 158, 11, 0.45);
}

.bento-card--featured {
  grid-row: span 3;
  background: linear-gradient(160deg, #0d1527 0%, #17233d 65%, #2a1808 100%);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 34px;
}

.bento-card--featured::after {
  background-image: radial-gradient(rgba(245, 158, 11, 0.22) 1px, transparent 1px);
}

.bento-card__content {
  position: relative;
  z-index: 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--brand-gold-soft);
  margin-bottom: 16px;
}

.bento-card--featured .bento-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-grad);
  box-shadow: var(--shadow-glow);
}

.bento-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-amber);
  margin-bottom: 10px;
}

.bento-card--featured .bento-tag {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.22);
}

.bento-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.bento-card--featured h3 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.bento-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.bento-card--featured p {
  color: #cbd5e1;
  font-size: 0.96rem;
  margin-bottom: 24px;
}

.bento-featured-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0 28px;
  position: relative;
  z-index: 2;
}

.bento-featured-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
}

.bento-featured-stat strong {
  display: block;
  font-size: 1.3rem;
  color: #fbbf24;
  font-family: "Space Grotesk", sans-serif;
}

.bento-featured-stat span {
  font-size: 0.76rem;
  color: #94a3b8;
}

/* Game API Explorer */
.api-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.api-box__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.api-box__head h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.api-box__head p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.api-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

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

.api-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.api-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.api-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 158, 11, 0.45);
}

.api-card__banner {
  padding: 20px 18px;
  color: #ffffff;
  position: relative;
}

.api-card__provider {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin-bottom: 6px;
}

.api-card__name {
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.3;
}

.api-card__rtp {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde68a;
}

.api-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.api-card__region {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-blue);
}

[data-theme="dark"] .api-card__region {
  color: #60a5fa;
}

.api-card__desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.api-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.api-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.api-platforms span {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-weight: 600;
  color: var(--text-primary);
}

/* Partner Marquee */
.marquee-wrap {
  margin-top: 40px;
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 10px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.partner-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow-md);
}

.partner-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.partner-name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

/* ==========================================================================
   Section 5: Core Architecture & 7-Layer Security Shield (Dark Section)
   ========================================================================== */
.arch-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.arch-tab {
  padding: 11px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.94rem;
  transition: all var(--transition);
}

.arch-tab.active {
  background: var(--brand-grad);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.arch-stage {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
}

.arch-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d1526;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55);
  position: relative;
}

.arch-visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.arch-visual__caption {
  padding: 16px 22px;
  background: rgba(6, 10, 20, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

.arch-info__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #38bdf8;
  margin-bottom: 8px;
}

.arch-info__title {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.arch-info__desc {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.arch-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arch-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color 0.25s, background 0.25s;
}

.arch-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.arch-card__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-gold);
  line-height: 1.2;
}

.arch-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.arch-card p {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* 7-Badge Enterprise Security Shield (Inspired by TC Gaming) */
.security-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sec-badge {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 10px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.sec-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
}

.sec-badge__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.sec-badge__title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 3px;
}

.sec-badge__sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ==========================================================================
   Section 6: Tiled Theme Templates Showcase (V1 / V2 / V3 Flat Grid)
   ========================================================================== */
.templates-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.tpl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  group: true;
}

.tpl-screen-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid var(--border-light);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  aspect-ratio: 9 / 11.8;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .tpl-screen-frame {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52);
}

.tpl-card:hover .tpl-screen-frame {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 26px 60px rgba(245, 158, 11, 0.18), 0 18px 40px rgba(0, 0, 0, 0.25);
}

.tpl-hover-pill {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 10px);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  z-index: 6;
  white-space: nowrap;
}

.tpl-card:hover .tpl-hover-pill {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tpl-card__caption {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  transition: color 0.2s ease;
}

.tpl-card:hover .tpl-card__caption {
  color: var(--brand-amber);
}

.templates-more-row {
  margin-top: 38px;
  display: flex;
  justify-content: center;
}

/* Mock Mobile UI Inside Each Tiled Template Card */
.m-ui {
  width: 100%;
  height: 100%;
  padding: 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  position: relative;
}

.m-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: #475569;
  padding: 2px 2px 4px;
}

.m-ticker__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.m-mail-badge {
  position: relative;
  width: 22px;
  height: 18px;
  border-radius: 4px;
  background: #6d28d9;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}

.m-mail-badge::after {
  content: "+99";
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 7px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 999px;
}

/* V1 Specific */
.m-cats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.m-cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: #64748b;
  font-weight: 600;
  padding-bottom: 3px;
}

.m-cat-tab.is-active {
  color: #6d28d9;
  border-bottom: 2px solid #6d28d9;
}

.m-award-banner {
  border-radius: 12px;
  padding: 10px 10px 8px;
  background: linear-gradient(135deg, #4c1d95 0%, #7e22ce 50%, #9333ea 100%);
  border: 2px solid #f59e0b;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.26);
}

.m-award-title {
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #fde047;
  margin-bottom: 6px;
}

.m-award-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 9px;
  margin-bottom: 4px;
}

.m-award-row:last-child { margin-bottom: 0; }
.m-award-amt { color: #fde047; font-weight: 800; }

/* V2 Specific */
.m-vip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 8px;
  border: 1px solid #f1f5f9;
}

.m-vip-pill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.m-vip-bal {
  color: #ea580c;
  font-weight: 800;
  font-size: 10px;
  margin-top: 2px;
}

.m-vip-actions {
  display: flex;
  gap: 7px;
  font-size: 8px;
  color: #db2777;
  text-align: center;
  font-weight: 700;
}

.m-jackpot {
  border-radius: 12px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 50%, #fce7f3 100%);
  border: 1.5px solid #f472b6;
  text-align: center;
}

.m-jackpot__title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #db2777, #f59e0b, #e11d48);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.m-jackpot__num {
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ec4899, #e11d48, #f59e0b);
  color: #fef08a;
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  display: inline-block;
}

.m-v2-body {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 7px;
  flex: 1;
  min-height: 0;
}

.m-v2-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.m-v2-tab {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #64748b;
}

.m-v2-tab.is-active {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: #ffffff;
  border-color: transparent;
}

.m-v2-subtabs {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.m-v2-subtabs span:first-child {
  color: #db2777;
  border-bottom: 2px solid #db2777;
  padding-bottom: 2px;
}

/* V3 Specific */
.m-v3-top {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  background: #ffffff;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #064e3b;
}

.m-v3-search {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 9px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-v3-gridcats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.m-v3-cat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.m-v3-cat.is-active {
  background: linear-gradient(135deg, #064e3b, #047857);
  color: #ffffff;
  border-color: transparent;
}

/* Shared Game Poster Grid Inside Mockups */
.m-sec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #1e293b;
}

.m-all-pill {
  background: #10b981;
  color: #ffffff;
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.m-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}

.m-poster {
  border-radius: 10px;
  padding: 6px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 82px;
  box-shadow: inset 0 -22px 24px rgba(0, 0, 0, 0.35);
}

.m-poster__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.5px;
  font-weight: 900;
}

.m-poster__prov {
  background: rgba(0, 0, 0, 0.36);
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.m-poster__emoji {
  font-size: 24px;
  text-align: center;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
}

.m-poster__name {
  font-size: 8.5px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.m-poster__best {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 6.5px;
  font-weight: 900;
  padding: 2px 5px;
  border-bottom-right-radius: 6px;
}

/* V4 Crimson Jackpot */
.m-v4-jackpot {
  border-radius: 11px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 55%, #b91c1c 100%);
  border: 2px solid #f59e0b;
  text-align: center;
  color: #fef08a;
  box-shadow: 0 6px 14px rgba(185, 28, 28, 0.25);
}

.m-v4-jackpot__num {
  font-family: "Space Grotesk", monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-top: 2px;
}

/* V5 Sky Blue */
.m-v5-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.m-v5-cat {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 7px 4px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: #0284c7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.m-v5-cat.is-active {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #ffffff;
  border-color: transparent;
}

.m-v5-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e0f2fe;
  border-radius: 999px;
  padding: 3px 6px;
  font-size: 8.5px;
  font-weight: 700;
  color: #64748b;
}

.m-v5-pills span.is-active {
  background: #0ea5e9;
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 999px;
}

/* V6 & V7 Lightning Black-Gold Jackpot */
.m-dark-jackpot {
  border-radius: 11px;
  padding: 8px 10px;
  background: radial-gradient(circle at 50% 45%, #1e3a8a 0%, #090d16 78%);
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  text-align: center;
}

.m-dark-jackpot__title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #fef08a, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.m-dark-jackpot__num {
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

/* V7 & V8 4-Column Compact Icon Grid */
.m-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  flex: 1;
}

.m-poster--sm {
  min-height: 68px;
  padding: 5px 4px;
  border-radius: 9px;
}

.m-poster--sm .m-poster__emoji {
  font-size: 20px;
}

.m-poster--sm .m-poster__name {
  font-size: 7.5px;
}

/* V8 Split Promo + 2x2 Quick Actions */
.m-v8-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 6px;
}

.m-v8-qa {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.m-v8-btn {
  border-radius: 7px;
  padding: 6px 4px;
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

@media (max-width: 960px) {
  .templates-gallery {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Section 7: Cooperation Ecosystem & Industry News (Inspired by WG News)
   ========================================================================== */
.coop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.coop-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.coop-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.coop-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.coop-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.coop-card__badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-gold-soft);
  color: var(--brand-amber);
}

.coop-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.coop-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* News Grid */
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.news-head h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  animation: newsCardIn 0.28s ease;
}

@keyframes newsCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: var(--shadow-md);
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-card__cat {
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-blue);
}

[data-theme="dark"] .news-card__cat {
  color: #60a5fa;
}

.news-card h4 {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.4;
}

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

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.news-card__more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-amber);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.news-more-bar {
  margin-top: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.news-more-bar:empty {
  display: none;
}

.news-more-bar::before,
.news-more-bar::after {
  content: "";
  flex: 1;
  max-width: 240px;
  height: 1px;
}

.news-more-bar::before {
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.38));
}

.news-more-bar::after {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.38), transparent);
}

.news-more-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.news-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.news-action-link:hover {
  color: var(--brand-amber);
  background: var(--brand-gold-soft);
}

.news-action-link--more:hover svg {
  transform: translateY(2px);
}

.news-action-link--collapse:hover svg {
  transform: translateY(-2px);
}

.news-action-link svg {
  transition: transform 0.2s ease;
}

.news-action-sep {
  width: 1px;
  height: 13px;
  background: rgba(148, 163, 184, 0.42);
}

/* ==========================================================================
   Section 8: Official BD Directory & Anti-Fraud Verifier (Inspired by WG)
   ========================================================================== */
.verifier-box {
  background: linear-gradient(135deg, #0c1425 0%, #15223e 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: #ffffff;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: center;
}

.verifier-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.verifier-box p {
  font-size: 0.88rem;
  color: #94a3b8;
}

.verifier-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.verifier-input {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 13px 20px;
  color: #ffffff;
  outline: none;
}

.verifier-input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.verifier-input:focus {
  border-color: var(--brand-gold);
}

.verifier-result {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.verifier-result.show {
  display: block;
}

.verifier-result.valid {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.verifier-result.invalid {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.bd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.bd-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.bd-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bd-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.bd-card h4 {
  font-size: 1rem;
  font-weight: 800;
}

.bd-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.bd-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-surface-alt);
}

.bd-handle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bd-handle {
  font-family: "Space Grotesk", monospace;
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 0.84rem;
}

[data-theme="dark"] .bd-handle {
  color: #60a5fa;
}

.copy-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--brand-gold-soft);
  color: var(--brand-amber);
}

.copy-btn:hover {
  background: var(--brand-amber);
  color: #ffffff;
}

/* ==========================================================================
   Final CTA Banner & Enterprise Footer
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #070b15 0%, #101d38 55%, #2b1705 100%);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.22), transparent 60%);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.cta-banner p {
  max-width: 660px;
  margin: 0 auto 30px;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.footer {
  background: #04070e;
  color: #94a3b8;
  padding: 72px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h5 {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
}

.footer ul a:hover {
  color: var(--brand-gold);
}

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Floating Dock, Live Chat Drawer & Modals
   ========================================================================== */
.floating-dock {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.dock-btn:hover {
  transform: scale(1.08);
}

.dock-btn--chat {
  background: var(--brand-grad);
}

.dock-btn--tg {
  background: linear-gradient(135deg, #229ed9, #0088cc);
}

.dock-btn--top {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.2s;
}

.dock-btn--top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Live Chat Drawer (Inspired by TC Gaming Replain Widget) */
.chat-widget {
  position: fixed;
  right: 84px;
  bottom: 24px;
  width: 350px;
  max-width: calc(100vw - 32px);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chat-widget.open {
  display: flex;
  animation: fadeUp 0.25s ease;
}

.chat-widget__head {
  background: linear-gradient(135deg, #0d1527, #1c2c4d);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-widget__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 310px;
  overflow-y: auto;
}

.chat-bubble {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 92%;
}

.chat-bubble--bot {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  align-self: flex-start;
}

.chat-bubble--user {
  background: var(--brand-grad);
  color: #ffffff;
  align-self: flex-end;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-quick button {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  background: var(--brand-gold-soft);
  color: var(--brand-amber);
  font-weight: 600;
}

.chat-widget__foot {
  padding: 10px 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.chat-widget__foot input {
  flex: 1;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.84rem;
  outline: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(4, 7, 14, 0.76);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s ease;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  outline: none;
}

.form-control:focus {
  border-color: var(--brand-gold);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2500;
  text-align: center;
  max-width: min(90vw, 460px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Full Light Mode Overrides (Header, Hero, Screen 5 Architecture, CTA & Footer)
   Ensures Light/Dark toggle visibly transforms EVERY section of the page
   ========================================================================== */
[data-theme="light"] .top-alert {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
  border-bottom-color: rgba(245, 158, 11, 0.32);
  color: #92400e;
}

[data-theme="light"] .top-alert__badge {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.35);
}

[data-theme="light"] .top-alert__link {
  color: #ffffff;
  background: #f59e0b;
}

[data-theme="light"] .top-alert__link:hover {
  background: #ea580c;
}

[data-theme="light"] .top-alert__close {
  color: #b45309;
}

[data-theme="light"] .top-alert__close:hover {
  color: #0f172a;
}

/* Light Header */
[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .header .brand__name,
[data-theme="light"] .footer .brand__name,
[data-theme="light"] .mobile-drawer .brand__name {
  color: #0f172a;
}

[data-theme="light"] .header .brand__sub,
[data-theme="light"] .footer .brand__sub {
  color: #64748b;
}

[data-theme="light"] .nav__link {
  color: #475569;
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .lang-select {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .lang-select option {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .icon-btn,
[data-theme="light"] .hamburger {
  color: #334155;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .icon-btn:hover {
  background: #fff7ed;
  border-color: rgba(245, 158, 11, 0.45);
  color: #ea580c;
}

[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .mobile-drawer__links a {
  color: #0f172a;
  background: #f1f5f9;
}

/* Light Screen 1: Hero & KPI Strip */
[data-theme="light"] .hero {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 56%, #eef2f9 100%);
  color: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .hero__bg-grid {
  background-image:
    radial-gradient(circle at 75% 32%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 18% 78%, rgba(37, 99, 235, 0.1) 0%, transparent 48%),
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

[data-theme="light"] .hero__badge {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
}

[data-theme="light"] .hero__title-accent {
  background: linear-gradient(95deg, #d97706 0%, #ea580c 55%, #ff6a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero__desc {
  color: #475569;
}

[data-theme="light"] .hero .btn-outline-light,
[data-theme="light"] .cta-banner .btn-outline-light {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .hero .btn-outline-light:hover,
[data-theme="light"] .cta-banner .btn-outline-light:hover {
  border-color: var(--brand-gold);
  color: var(--brand-amber);
  background: #fffbeb;
}

[data-theme="light"] .node-chip {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .node-chip b {
  color: #2563eb;
}

[data-theme="light"] .hero__image-frame {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16), 0 0 40px rgba(245, 158, 11, 0.1);
}

[data-theme="light"] .hero__float-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .float-val {
  color: #0f172a;
}

[data-theme="light"] .float-lbl {
  color: #64748b;
}

[data-theme="light"] .float-icon--blue {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .kpi-bar {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .kpi-item:not(:last-child)::after {
  background: rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .kpi-num {
  background: linear-gradient(135deg, #0f172a 20%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .kpi-label {
  color: #64748b;
}

/* Light Screen 5: Core Architecture & 7-Layer Security Shield */
[data-theme="light"] .section--dark {
  background: linear-gradient(180deg, #eef2f9 0%, #f8fafc 100%);
  color: #0f172a;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .section--dark .section-watermark {
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.055);
}

[data-theme="light"] .section--dark .section-sub {
  color: #475569;
}

[data-theme="light"] .arch-tab {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .arch-tab:hover {
  border-color: var(--brand-gold);
  color: #0f172a;
}

[data-theme="light"] .arch-tab.active {
  background: var(--brand-grad);
  color: #ffffff;
  border-color: transparent;
}

[data-theme="light"] .arch-visual {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .arch-visual__caption {
  background: #ffffff;
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}

[data-theme="light"] .arch-info__eyebrow {
  color: #2563eb;
}

[data-theme="light"] .arch-info__desc {
  color: #475569;
}

[data-theme="light"] .arch-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .arch-card:hover {
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .arch-card h4 {
  color: #0f172a;
}

[data-theme="light"] .arch-card p {
  color: #475569;
}

[data-theme="light"] .security-strip {
  border-top-color: rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .sec-badge {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .sec-badge:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .sec-badge__icon {
  background: rgba(37, 99, 235, 0.09);
  border-color: rgba(37, 99, 235, 0.22);
}

[data-theme="light"] .sec-badge__title {
  color: #0f172a;
}

[data-theme="light"] .sec-badge__sub {
  color: #64748b;
}

/* Light CTA Banner & Enterprise Footer */
[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 55%, #fff7ed 100%);
  color: #0f172a;
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .cta-banner::before {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.14), transparent 60%);
}

[data-theme="light"] .cta-banner p {
  color: #475569;
}

[data-theme="light"] .footer {
  background: #ffffff;
  color: #475569;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .footer-grid {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .footer h5 {
  color: #0f172a;
}

[data-theme="light"] .footer__bottom {
  color: #64748b;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1140px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .hero__grid,
  .region-hub,
  .solution-panel,
  .arch-stage,
  .templates-layout,
  .verifier-box {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .bento-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }
  .api-grid,
  .bd-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .kpi-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-item:not(:last-child)::after { display: none; }
  .hero__float-card { display: none; }
  .region-meta-grid,
  .solution-right,
  .coop-grid,
  .news-grid,
  .api-grid,
  .bd-grid,
  .template-preview-stage {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--featured {
    grid-column: span 1;
  }
  .security-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-panel,
  .api-box,
  .region-card {
    padding: 24px;
  }
  .region-card {
    min-height: auto;
  }
  .region-chips,
  .region-meta-box {
    min-height: auto;
  }
  .region-card__foot {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }
  .region-card__foot .btn {
    width: 100%;
  }
  .top-alert__inner {
    padding-right: 48px;
    text-align: left;
    justify-content: flex-start;
  }
  .top-alert__close {
    right: 8px;
    top: 8px;
    transform: none;
  }
  .header__inner {
    gap: 10px;
  }
  .brand__sub {
    display: none;
  }
  .header__actions {
    gap: 6px;
  }
  .lang-select {
    padding: 6px 8px;
    font-size: 0.78rem;
  }
  .icon-btn,
  .hamburger {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .header__actions .btn-primary {
    display: none;
  }
  .footer__bottom {
    padding-right: 0;
    padding-bottom: 64px;
  }
  .chat-widget {
    right: 16px;
    bottom: 84px;
  }
}
