﻿/* ==========================================================================
   92LOTTERY (lagranvitrinainmobiliaria.co) REVAMP — DESIGN SYSTEM
   Signature Palette: Deep Electric Sapphire + Luminous Cyan-Emerald + Solar Amber-Coral
   Hybrid Vibrant Showcase + Crisp Cool-Ice Editorial
   ========================================================================== */

:root {
  /* Deep Imperial Crimson & Garnet Surfaces (Primary Red Theme) */
  --bg-sapphire-deep: #1a060b;
  --bg-sapphire: #290a12;
  --bg-sapphire-card: #3b101b;
  --bg-glass-header: rgba(26, 6, 11, 0.94);

  /* Crisp Warm Blush-White Editorial Light Surfaces */
  --bg-ice: #fdf7f7;
  --bg-white: #ffffff;
  --bg-mint-soft: #fff1f2;
  --bg-amber-soft: #fff9eb;

  /* Primary Crimson Red & Warm Gold Accents */
  --cyan-400: #ff4d63;
  --cyan-500: #e11d38;
  --emerald-400: #ffd166;
  --emerald-500: #f59e0b;
  --emerald-600: #c8102e;

  --coral-400: #ff4757;
  --coral-500: #dc142c;
  --coral-600: #b00d21;

  --amber-300: #ffe680;
  --amber-400: #ffc93c;
  --amber-500: #f59e0b;
  --amber-700: #b45309;

  --indigo-500: #be123c;

  /* Gradients — Primarily Red with Luminous Gold Highlights */
  --grad-solar: linear-gradient(135deg, #ffe580 0%, #ffb703 52%, #e65c00 100%);
  --grad-coral-amber: linear-gradient(135deg, #ff3b4f 0%, #dc142c 55%, #a80a1e 100%);
  --grad-cyan-emerald: linear-gradient(135deg, #ff4757 0%, #e11d38 55%, #f59e0b 100%);
  --grad-sapphire-glow: linear-gradient(135deg, #e11d38 0%, #9f1239 100%);

  /* Typography Colors */
  --text-on-dark: #ffffff;
  --text-on-dark-soft: #fce7ea;
  --text-on-dark-muted: #d4a6ae;

  --text-primary: #1f0a10;
  --text-secondary: #4a2830;
  --text-muted: #7a545d;

  /* Borders & Shadows */
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-cyan: rgba(255, 77, 99, 0.42);
  --border-light: #f0dce0;

  --shadow-sm: 0 2px 10px rgba(31, 10, 16, 0.06);
  --shadow-md: 0 12px 32px rgba(31, 10, 16, 0.1);
  --shadow-lg: 0 24px 56px rgba(26, 6, 11, 0.2);
  --shadow-coral: 0 12px 32px rgba(220, 20, 44, 0.4);
  --shadow-cyan: 0 12px 30px rgba(225, 29, 56, 0.34);
  --shadow-amber: 0 12px 30px rgba(245, 158, 11, 0.34);

  --container-max: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --font-sans: 'Be Vietnam Pro', 'Bai Jamjuree', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: all var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

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

.section { padding: 84px 0; position: relative; }
.section-sapphire { background: var(--bg-sapphire); color: var(--text-on-dark); }
.section-ice { background: var(--bg-ice); color: var(--text-primary); }
.section-white { background: var(--bg-white); color: var(--text-primary); }

.text-gradient-cyan {
  background: var(--grad-cyan-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.text-gradient-solar {
  background: var(--grad-solar);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* Section Headers */
.section-header { max-width: 720px; margin-bottom: 44px; }
.section-header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.eyebrow--cyan { background: rgba(255, 77, 99, 0.14); color: var(--cyan-400); border: 1px solid rgba(255, 77, 99, 0.34); }
.eyebrow--coral { background: #ffe4ea; color: var(--coral-600); border: 1px solid #fecdd3; }
.eyebrow--emerald { background: #dcfce7; color: var(--emerald-600); border: 1px solid #a7f3d0; }
.eyebrow--blue { background: #ffe4e8; color: #b00d21; border: 1px solid #fecdd3; }

.section-title {
  font-size: clamp(1.72rem, 3vw, 2.42rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle { font-size: 1rem; line-height: 1.7; color: var(--text-muted); }
.section-sapphire .section-subtitle { color: var(--text-on-dark-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.btn-primary { background: var(--grad-coral-amber); color: #ffffff; box-shadow: var(--shadow-coral); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(244, 63, 94, 0.44); }

.btn-cyan { background: var(--grad-cyan-emerald); color: #ffffff; box-shadow: var(--shadow-cyan); }
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(225, 29, 56, 0.42); }

.btn-solar { background: var(--grad-solar); color: #1c1002; box-shadow: var(--shadow-amber); }
.btn-solar:hover { transform: translateY(-2px); }

.btn-glass { background: rgba(255, 255, 255, 0.08); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--cyan-400); transform: translateY(-2px); }

.btn-outline { background: var(--bg-white); color: var(--text-primary); border: 1.5px solid var(--border-light); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--cyan-500); color: #b00d21; background: #fff1f2; transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: 0.84rem; }
.btn-lg { padding: 15px 28px; font-size: 0.98rem; }

/* ==========================================================================
   UNIFIED STICKY DEEP-SAPPHIRE HEADER (Crisp SVGs — Zero Broken fl-icons!)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 77, 99, 0.2);
}

.site-header.is-scrolled {
  background: rgba(26, 6, 11, 0.97);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-emblem { width: 42px; height: 42px; filter: drop-shadow(0 4px 12px rgba(225, 29, 56, 0.4)); }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.32rem; font-weight: 800; color: #ffffff; letter-spacing: -0.02em; }
.brand-name span { background: var(--grad-cyan-emerald); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tagline { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-400); }

.primary-nav { display: flex; align-items: center; gap: 3px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-on-dark-soft);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { color: var(--cyan-400); background: rgba(255, 77, 99, 0.13); }

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

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.icon-btn:hover { color: var(--cyan-400); border-color: var(--cyan-400); background: rgba(255, 77, 99, 0.14); }

.mobile-menu-btn { display: none; }

/* ==========================================================================
   HERO SECTION + 4-SERVER OFFICIAL ACCESS HUB CARD
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg-sapphire-deep);
  color: #ffffff;
  padding: 66px 0 92px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center right; opacity: 0.9; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 6, 11, 0.96) 0%, rgba(26, 6, 11, 0.82) 48%, rgba(26, 6, 11, 0.24) 100%),
    linear-gradient(180deg, rgba(26, 6, 11, 0.2) 0%, rgba(26, 6, 11, 0.12) 66%, rgba(26, 6, 11, 0.96) 100%);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 42px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(59, 16, 27, 0.86);
  border: 1px solid rgba(255, 77, 99, 0.42);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan-400);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(255, 209, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
}

.hero-title {
  font-size: clamp(1.95rem, 2.85vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-desc { font-size: 1.03rem; line-height: 1.72; color: var(--text-on-dark-soft); max-width: 575px; margin-bottom: 26px; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.83rem; color: var(--text-on-dark-muted); }
.hero-trust-item { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust-item svg { color: var(--emerald-400); }

/* 4-Link Official Quick Access Card (Replaces empty 65% void + scattered CTAs!) */
.hub-card {
  position: relative;
  background: linear-gradient(155deg, rgba(59, 16, 27, 0.9) 0%, rgba(26, 6, 11, 0.94) 100%);
  border: 1px solid rgba(255, 77, 99, 0.42);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}
.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  background: var(--grad-cyan-emerald);
  border-radius: 0 0 6px 6px;
}

.hub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hub-pill { font-size: 0.71rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 11px; border-radius: var(--radius-pill); background: rgba(244, 63, 94, 0.24); border: 1px solid rgba(255, 92, 119, 0.45); color: #fda4af; }
.hub-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; color: var(--emerald-400); }
.hub-title { font-size: 1.3rem; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.hub-sub { font-size: 0.84rem; color: var(--text-on-dark-muted); margin-bottom: 16px; }

.hub-links { display: grid; gap: 9px; margin-bottom: 14px; }
.hub-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #ffffff;
}
.hub-link-row--hot {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.34) 0%, rgba(251, 191, 36, 0.18) 100%);
  border-color: rgba(251, 191, 36, 0.5);
}
.hub-link-row:hover { transform: translateY(-2px); border-color: var(--cyan-400); background: rgba(255, 77, 99, 0.14); }
.hub-link-left { display: flex; align-items: center; gap: 11px; }
.hub-num { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-cyan-emerald); color: #ffffff; font-weight: 800; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hub-link-row--hot .hub-num { background: var(--grad-solar); color: #1c1002; }
.hub-link-title { display: block; font-size: 0.9rem; font-weight: 800; color: #ffffff; }
.hub-link-meta { display: block; font-size: 0.74rem; color: var(--emerald-400); font-weight: 600; }
.hub-link-cta { font-size: 0.76rem; font-weight: 800; padding: 6px 11px; border-radius: var(--radius-pill); background: var(--grad-solar); color: #1c1002; white-space: nowrap; }
.hub-note { font-size: 0.75rem; color: var(--text-on-dark-muted); text-align: center; }

/* ==========================================================================
   QUICK-DRAW LOTTERY BRIDGE (Wingo • K3 • 5D • Lô Đề)
   ========================================================================== */
.quickdraw-bridge { margin-top: -42px; position: relative; z-index: 10; }
.quickdraw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.qd-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.qd-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.qd-card--cyan::before { background: var(--grad-cyan-emerald); }
.qd-card--coral::before { background: var(--grad-coral-amber); }
.qd-card--indigo::before { background: linear-gradient(135deg, #e11d38, #f59e0b); }
.qd-card--amber::before { background: var(--grad-solar); }
.qd-card:hover { transform: translateY(-5px); border-color: var(--cyan-500); box-shadow: var(--shadow-lg); }

.qd-badge { align-self: flex-start; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.qd-badge--cyan { background: #ffe4e8; color: #c8102e; }
.qd-badge--coral { background: #ffe4ea; color: var(--coral-600); }
.qd-badge--indigo { background: #ffe8cc; color: #b45309; }
.qd-badge--amber { background: #fef3c7; color: var(--amber-700); }

.qd-card h3 { font-size: 1.08rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.qd-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: 12px; }
.qd-go { font-size: 0.83rem; font-weight: 700; color: #b00d21; }

/* ==========================================================================
   INTERACTIVE 6-LOBBY SHOWCASE (Deep Electric Sapphire Band)
   ========================================================================== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-on-dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.filter-tab:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.filter-tab.is-active { background: var(--grad-cyan-emerald); color: #ffffff; border-color: transparent; }

.lobbies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lobby-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-sapphire-card);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
}
.lobby-card.is-hidden { display: none; }
.lobby-card:hover { transform: translateY(-6px); border-color: var(--cyan-400); box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42); }
.lobby-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.lobby-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.lobby-card:hover .lobby-media img { transform: scale(1.07); }
.lobby-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(59, 16, 27, 0.96) 100%); }
.lobby-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); background: rgba(26, 6, 11, 0.85); color: var(--cyan-400); border: 1px solid rgba(255, 77, 99, 0.35); }
.lobby-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.lobby-body h3 { font-size: 1.22rem; font-weight: 800; color: #ffffff; margin-bottom: 8px; }
.lobby-body p { font-size: 0.9rem; color: var(--text-on-dark-muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.lobby-link { font-size: 0.9rem; font-weight: 700; color: var(--cyan-400); }
.lobby-card:hover .lobby-link { color: #ffffff; }

/* ==========================================================================
   CLICKABLE PROMOTIONS + GOLDEN RISK-MANAGEMENT RULES
   ========================================================================== */
.promos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promo-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.promo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.promo-card--coral::before { background: var(--grad-coral-amber); }
.promo-card--cyan::before { background: var(--grad-cyan-emerald); }
.promo-card--amber::before { background: var(--grad-solar); }
.promo-card--indigo::before { background: var(--grad-sapphire-glow); }
.promo-card--dark { background: linear-gradient(155deg, #3b101b 0%, #1a060b 100%); color: #ffffff; border-color: rgba(255, 77, 99, 0.38); }
.promo-card--dark p { color: var(--text-on-dark-muted); }
.promo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan-500); }
.promo-kicker { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #b00d21; margin-bottom: 8px; }
.promo-card--dark .promo-kicker { color: var(--cyan-400); }
.promo-big { font-size: 1.95rem; font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.promo-card h3 { font-size: 1.04rem; font-weight: 800; margin-bottom: 8px; }
.promo-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.58; flex: 1; margin-bottom: 18px; }

/* Onboarding + 3 Golden Rules */
.guide-rules-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: start; }
.guide-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.guide-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.guide-tab { padding: 10px 18px; border-radius: var(--radius-pill); font-size: 0.88rem; font-weight: 700; background: var(--bg-ice); border: 1.5px solid var(--border-light); color: var(--text-secondary); }
.guide-tab.is-active { background: var(--bg-sapphire-deep); color: var(--cyan-400); border-color: var(--bg-sapphire-deep); }
.guide-panel { display: none; }
.guide-panel.is-active { display: grid; gap: 14px; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--bg-ice); }
.step-num { width: 32px; height: 32px; border-radius: 9px; background: var(--grad-cyan-emerald); color: #ffffff; font-weight: 800; font-size: 0.86rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-row h4 { font-size: 0.96rem; font-weight: 800; margin-bottom: 3px; }
.step-row p { font-size: 0.86rem; color: var(--text-muted); }

.rules-stack { display: grid; gap: 14px; }
.rule-card { background: var(--bg-white); border: 1px solid var(--border-light); border-left: 4px solid var(--coral-500); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.rule-card h4 { font-size: 1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.rule-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   READABLE HIGH-CONTRAST GUIDES GRID (Fixes White-on-White Bug!)
   ========================================================================== */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--cyan-500); }
.news-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sapphire-deep); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-cat-pill { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(26, 6, 11, 0.88); color: var(--cyan-400); }
.news-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--text-muted); margin-bottom: 8px; }
.news-title { font-size: 1.02rem; font-weight: 800; line-height: 1.42; color: var(--text-primary); margin-bottom: 9px; }
.news-card:hover .news-title { color: #b00d21; }
.news-excerpt { font-size: 0.86rem; color: var(--text-muted); line-height: 1.56; flex: 1; margin-bottom: 14px; }
.news-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--bg-ice); font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.news-footer a { color: var(--coral-600); font-weight: 700; white-space: nowrap; }

/* ==========================================================================
   INTERACTIVE FAQ ACCORDION & CLEAN COLLAPSIBLE SEO ARTICLE
   ========================================================================== */
.faq-list { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--bg-white); border: 1.5px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; }
.faq-item.is-open { border-color: var(--cyan-500); box-shadow: var(--shadow-md); background: #fff5f6; }
.faq-trigger { width: 100%; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; font-size: 0.98rem; font-weight: 700; color: var(--text-primary); }
.faq-trigger-left { display: flex; align-items: center; gap: 12px; }
.faq-num { width: 28px; height: 28px; border-radius: 8px; background: var(--bg-ice); color: var(--text-secondary); font-size: 0.78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-item.is-open .faq-num { background: var(--grad-cyan-emerald); color: #ffffff; }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.is-open .faq-icon { transform: rotate(180deg); color: #b00d21; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-content-inner { padding: 0 22px 20px 62px; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.72; }

.seo-article-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 38px 42px; box-shadow: var(--shadow-md); }
.seo-article-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.seo-article-body { position: relative; }
.seo-article-body.is-collapsed { max-height: 400px; overflow: hidden; }
.seo-article-body.is-collapsed::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 140px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.94) 68%, #ffffff 100%); pointer-events: none; }
.seo-article-prose { font-size: 0.99rem; line-height: 1.82; color: var(--text-secondary); }
.seo-article-prose h2 { font-size: 1.42rem; font-weight: 800; color: var(--text-primary); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--bg-ice); }
.seo-article-prose h2:first-child { margin-top: 0; }
.seo-article-prose h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin: 20px 0 8px; }
.seo-article-prose p { margin-bottom: 14px; }
.seo-article-prose img { border-radius: 14px; margin: 18px auto; box-shadow: var(--shadow-md); }
.seo-article-footer { margin-top: 24px; text-align: center; }

/* ==========================================================================
   CREDIBLE 4-COLUMN DARK SAPPHIRE FOOTER
   ========================================================================== */
.site-footer { background: var(--bg-sapphire-deep); color: var(--text-on-dark-soft); padding: 68px 0 0; border-top: 1px solid rgba(255, 77, 99, 0.22); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.9fr 0.95fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.footer-about { font-size: 0.89rem; color: var(--text-on-dark-muted); line-height: 1.7; margin: 16px 0 16px; }
.footer-meta { display: grid; gap: 8px; font-size: 0.85rem; color: var(--text-on-dark-muted); margin-bottom: 18px; }
.footer-meta a { color: var(--cyan-400); font-weight: 600; }
.badges-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.responsible-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--radius-sm); background: rgba(244, 63, 94, 0.16); border: 1px solid rgba(244, 63, 94, 0.36); font-size: 0.78rem; font-weight: 700; color: #fecdd3; }
.responsible-18 { width: 24px; height: 24px; border-radius: 50%; background: var(--coral-500); color: #ffffff; font-weight: 800; font-size: 0.72rem; display: inline-flex; align-items: center; justify-content: center; }
.dmca-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-sm); background: rgba(255, 183, 3, 0.14); border: 1px solid rgba(255, 183, 3, 0.36); color: var(--emerald-400); font-size: 0.76rem; font-weight: 800; }
.footer-heading { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #ffffff; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--grad-cyan-emerald); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--text-on-dark-muted); }
.footer-links a:hover { color: var(--cyan-400); transform: translateX(3px); }
.footer-bottom { padding: 22px 64px 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-on-dark-muted); }

/* Modals, Mobile Drawer & Back-to-Top */
.modal-backdrop { position: fixed; inset: 0; background: rgba(18, 4, 8, 0.78); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all var(--transition); }
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal-dialog { width: 100%; max-width: 600px; background: #2b0b14; color: #ffffff; border: 1px solid rgba(255, 77, 99, 0.38); border-radius: var(--radius-lg); padding: 28px; position: relative; box-shadow: 0 32px 72px rgba(0, 0, 0, 0.56); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #ffffff; display: flex; align-items: center; justify-content: center; }
.form-input { width: 100%; padding: 12px 15px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); color: #ffffff; font-family: inherit; font-size: 0.94rem; }
.form-input:focus { outline: none; border-color: var(--cyan-400); }
.search-results { margin-top: 16px; display: grid; gap: 9px; max-height: 340px; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: #ffffff; }
.search-result-item:hover { border-color: var(--cyan-400); background: rgba(255, 77, 99, 0.12); }

.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #1f070e; border-left: 1px solid rgba(255, 77, 99, 0.28); z-index: 2100; padding: 24px; transform: translateX(100%); transition: transform var(--transition); display: flex; flex-direction: column; gap: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-nav-list { display: grid; gap: 6px; }
.mobile-nav-list a { padding: 11px 14px; border-radius: var(--radius-sm); color: #ffffff; font-weight: 600; }
.mobile-nav-list a:hover { background: rgba(255, 77, 99, 0.14); color: var(--cyan-400); }

.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-cyan-emerald); color: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-cyan); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--transition); z-index: 900; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Responsive */
@media (max-width: 1160px) {
  .primary-nav, .header-app-btn { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}
@media (max-width: 1040px) {
  .hero-grid, .guide-rules-grid { grid-template-columns: 1fr; }
  .quickdraw-grid, .promos-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .lobbies-grid, .guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .section { padding: 62px 0; }
  .quickdraw-grid, .promos-grid, .lobbies-grid, .guides-grid, .footer-grid { grid-template-columns: 1fr; }
  .seo-article-card, .guide-card { padding: 24px 20px; }
  .faq-content-inner { padding-left: 22px; }
}

/* ==========================================================================
   WORDPRESS & FLATSOME FULL-WIDTH ISOLATION OVERRIDES
   ========================================================================== */
html {
  background: var(--bg-sapphire-deep) !important;
}

body.lotto92-revamp-body {
  background: var(--bg-ice) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-shadow: none !important;
}

body.lotto92-revamp-body .container {
  max-width: 1240px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

body.lotto92-revamp-body .site-header,
body.lotto92-revamp-body header#siteHeader,
body.lotto92-revamp-body main,
body.lotto92-revamp-body footer.site-footer {
  width: 100% !important;
  max-width: none !important;
}

body.lotto92-revamp-body .site-header { top: var(--admin-bar-h, 0px) !important; }
@media (max-width: 782px) {
  html,
  html[lang],
  html body.lotto92-revamp-body { margin-top: 0 !important; padding-top: 0 !important; }
  body.lotto92-revamp-body .site-header,
  body.lotto92-revamp-body.admin-bar .site-header { top: 0 !important; }
}

body.lotto92-revamp-body h1,
body.lotto92-revamp-body h2,
body.lotto92-revamp-body h3,
body.lotto92-revamp-body h4,
body.lotto92-revamp-body p,
body.lotto92-revamp-body a,
body.lotto92-revamp-body button {
  font-family: var(--font-sans) !important;
}

body.lotto92-revamp-body h1,
body.lotto92-revamp-body h2,
body.lotto92-revamp-body h3,
body.lotto92-revamp-body h4 {
  border-left: none !important;
  padding-left: 0 !important;
  text-transform: none;
  color: var(--text-primary);
}

body.lotto92-revamp-body .hero h1,
body.lotto92-revamp-body .hero h2,
body.lotto92-revamp-body .hero h3,
body.lotto92-revamp-body .section-sapphire h2,
body.lotto92-revamp-body .section-sapphire h3,
body.lotto92-revamp-body .promo-card--dark h3,
body.lotto92-revamp-body .site-footer h4,
body.lotto92-revamp-body .modal-dialog h3 {
  color: #ffffff !important;
}

body.lotto92-revamp-body .text-gradient-cyan,
body.lotto92-revamp-body .text-gradient-solar {
  color: transparent !important;
}

body.lotto92-revamp-body .section-header {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.lotto92-revamp-body .section-header::before,
body.lotto92-revamp-body .section-header::after {
  display: none !important;
  content: none !important;
}

body.lotto92-revamp-body button,
body.lotto92-revamp-body .btn {
  margin-bottom: 0 !important;
  min-height: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.25 !important;
}

body.lotto92-revamp-body .icon-btn,
body.lotto92-revamp-body .modal-close,
body.lotto92-revamp-body .back-to-top {
  padding: 0 !important;
  min-width: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.lotto92-revamp-body .mobile-menu-btn { display: none !important; }
@media (max-width: 1160px) { body.lotto92-revamp-body .mobile-menu-btn { display: inline-flex !important; } }

body.lotto92-revamp-body .footer-links,
body.lotto92-revamp-body .footer-links li {
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

/* Override legacy Flatsome Custom CSS .content-wrapper 600px nested scroll trap inside SEO article */
body.lotto92-revamp-body .seo-article-prose .content-wrapper,
body.lotto92-revamp-body .seo-article-prose .border-wrapper {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

body.lotto92-revamp-body .seo-article-prose blockquote {
  border: none !important;
  border-left: 4px solid var(--cyan-500) !important;
  background: var(--bg-ice) !important;
  padding: 18px 22px !important;
  border-radius: 0 12px 12px 0 !important;
  margin: 18px 0 !important;
  font-style: normal !important;
}


/* Primary Red Signature Polish (v1.1.0) */
body.lotto92-revamp-body .site-header {
  background: linear-gradient(90deg, rgba(140, 11, 28, 0.96) 0%, rgba(36, 8, 15, 0.96) 55%, rgba(120, 10, 26, 0.96) 100%) !important;
  border-bottom: 1px solid rgba(255, 209, 102, 0.32) !important;
}

body.lotto92-revamp-body .hero {
  background: radial-gradient(circle at 20% 20%, rgba(220, 20, 44, 0.42), transparent 52%), #1a060b !important;
}

body.lotto92-revamp-body .hero-overlay {
  background:
    linear-gradient(90deg, rgba(26, 6, 11, 0.95) 0%, rgba(48, 10, 20, 0.82) 50%, rgba(125, 14, 32, 0.36) 100%),
    linear-gradient(180deg, rgba(26, 6, 11, 0.22) 0%, rgba(26, 6, 11, 0.14) 65%, rgba(26, 6, 11, 0.96) 100%) !important;
}

body.lotto92-revamp-body .btn-cyan {
  background: var(--grad-solar) !important;
  color: #1f0a05 !important;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.34) !important;
}

body.lotto92-revamp-body .hub-num,
body.lotto92-revamp-body .step-num,
body.lotto92-revamp-body .faq-item.is-open .faq-num,
body.lotto92-revamp-body .filter-tab.is-active,
body.lotto92-revamp-body .back-to-top {
  color: #ffffff !important;
}

body.lotto92-revamp-body .brand-tagline,
body.lotto92-revamp-body .nav-link:hover,
body.lotto92-revamp-body .nav-link.is-active,
body.lotto92-revamp-body .hero-badge,
body.lotto92-revamp-body .eyebrow--cyan,
body.lotto92-revamp-body .lobby-badge,
body.lotto92-revamp-body .lobby-link,
body.lotto92-revamp-body .news-cat-pill,
body.lotto92-revamp-body .footer-meta a,
body.lotto92-revamp-body .footer-links a:hover {
  color: #ffd166 !important;
}

body.lotto92-revamp-body .text-gradient-cyan {
  background: linear-gradient(135deg, #ffe580 0%, #ffb703 48%, #ff4d63 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Original 92Lottery Logo Sizing */
body.lotto92-revamp-body .brand-logo-img {
  height: 54px !important;
  width: auto !important;
  max-height: 56px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

body.lotto92-revamp-body .brand-logo-img--footer {
  height: 62px !important;
  max-height: 64px !important;
}

/* Hide any third-party floating/footer Telegram icon if injected by plugins */
body.lotto92-revamp-body footer [href*="t.me"],
body.lotto92-revamp-body footer [href*="telegram"],
body.lotto92-revamp-body footer .icon-telegram,
body.lotto92-revamp-body footer .telegram-icon {
  display: none !important;
}

/* ==========================================================================
   MOBILE UX, RESPONSIVE TABLES & COMPACT HEADER POLISH (v1.1.3)
   ========================================================================== */
.l92-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.l92-table-wrap table,
.seo-article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
  font-size: 0.92rem;
  line-height: 1.55;
}

.l92-table-wrap th,
.seo-article-prose th {
  background: linear-gradient(135deg, #3b101b 0%, #24080f 100%);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid rgba(255, 209, 102, 0.45);
}

.l92-table-wrap td,
.seo-article-prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

.l92-table-wrap tbody tr:nth-child(even),
.seo-article-prose tbody tr:nth-child(even) {
  background: #fff8f9;
}

.l92-table-wrap tbody tr:last-child td,
.seo-article-prose tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .l92-table-wrap table {
    min-width: 540px;
    font-size: 0.86rem;
  }
  .l92-table-wrap th,
  .l92-table-wrap td {
    padding: 10px 12px;
  }
}

@media (max-width: 680px) {
  body.lotto92-revamp-body .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .header-inner {
    height: 64px;
    gap: 6px;
  }

  body.lotto92-revamp-body .brand-logo-img {
    height: 38px !important;
    max-height: 40px !important;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .btn-sm {
    padding: 7px 10px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .header-actions .header-login-btn {
    display: inline-flex !important;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 209, 102, 0.45);
    color: #ffffff;
  }

  body.lotto92-revamp-body .icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px !important;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-title {
    font-size: clamp(1.42rem, 5.8vw, 1.85rem);
  }

  .hero {
    padding: 28px 0 46px;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    line-height: 1.4;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.66rem, 6.6vw, 2.15rem);
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.92rem;
  }

  .hero-trust-row {
    gap: 8px 14px;
    font-size: 0.79rem;
  }

  .hub-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .hub-card::before {
    left: 16px;
    right: 16px;
  }

  .hub-title {
    font-size: 1.12rem;
  }

  .hub-sub {
    font-size: 0.81rem;
    margin-bottom: 12px;
  }

  .hub-link-row {
    padding: 10px 11px;
    gap: 8px;
  }

  .hub-link-left {
    gap: 9px;
    min-width: 0;
    flex: 1;
  }

  .hub-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.74rem;
  }

  .hub-link-title {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .hub-link-meta {
    font-size: 0.71rem;
    line-height: 1.35;
  }

  .hub-link-cta {
    font-size: 0.72rem;
    padding: 6px 10px;
    flex-shrink: 0;
  }

  .quickdraw-bridge {
    margin-top: -18px;
  }

  #sanh-game {
    margin-top: 32px !important;
  }

  .seo-article-card,
  .guide-card {
    padding: 20px 15px;
    border-radius: 16px;
  }

  #seoArticleTopToggle {
    display: none !important;
  }

  .faq-trigger {
    padding: 15px 16px;
    font-size: 0.92rem;
  }

  .faq-content-inner {
    padding: 0 16px 16px;
    font-size: 0.88rem;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-grid {
    gap: 26px;
    padding-bottom: 32px;
  }

  .footer-bottom {
    padding: 18px 0 60px;
    font-size: 0.79rem;
    gap: 8px;
  }

  body.lotto92-revamp-body .back-to-top {
    width: 38px;
    height: 38px;
    min-width: 38px !important;
    right: 10px;
    bottom: 14px;
  }

  .back-to-top.is-visible {
    opacity: 0.88;
  }
}

@media (max-width: 374px) {
  .header-actions .btn-sm {
    padding: 6px 8px;
    font-size: 0.7rem;
  }
  body.lotto92-revamp-body .icon-btn {
    width: 31px;
    height: 31px;
    min-width: 31px !important;
  }
}
