/* ==========================================================================
   789BINGO MOBILE APP SHELL DESIGN SYSTEM
   Reverse-engineered from jl-bet.ph & 76jl.io
   Theme Tokens: brand_palette.json
   ========================================================================== */

:root {
  /* Brand Tokens */
  --primary: #0acf83;
  --primary-hover: #08b672;
  --primary-glow: rgba(10, 207, 131, 0.28);
  --accent: #ff7a00;
  --accent-hover: #e66e00;
  --accent-glow: rgba(255, 122, 0, 0.35);
  --tertiary: #9353d3;

  /* Shell Surfaces & Canvas */
  --bg-outer: #1a1a1a;
  --bg-shell: #0a0f1d;
  --surface: #131b2e;
  --surface-elevated: #1a253d;
  --surface-card: #151e33;
  --border: #1e293b;
  --border-light: rgba(255, 255, 255, 0.08);

  /* Typography */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #0d2245;

  /* State & Badges */
  --badge-21-bg: #ef4444;
  --badge-verified-bg: #0acf83;
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ff8800 100%);
  --primary-gradient: linear-gradient(135deg, #0acf83 0%, #00a86b 100%);
  --card-gradient: linear-gradient(180deg, rgba(26, 37, 61, 0.6) 0%, rgba(19, 27, 46, 0.95) 100%);

  /* Layout Constants */
  --shell-max-width: 430px;
  --header-height: 56px;
  --bottom-nav-height: 62px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--bg-outer);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-outer);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* ==========================================================================
   1. Mobile App Shell Container (max-width: 430px desktop, 100% mobile)
   ========================================================================== */
.app-shell {
  width: 100%;
  max-width: var(--shell-max-width);
  min-height: 100vh;
  background-color: var(--bg-shell);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  overflow-x: hidden;
}

@media (max-width: 430px) {
  body {
    background-color: var(--bg-shell);
  }
  .app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ==========================================================================
   2. Sticky Header (.app-header)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

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

.btn-header-login {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.btn-header-login:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-header-deposit {
  background: var(--gold-gradient);
  color: #1a1000;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(255, 170, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-header-deposit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 170, 0, 0.5);
}

/* ==========================================================================
   3. Notification Ticker & 21+ Badges (Zero Heading Tags)
   ========================================================================== */
.notification-ticker {
  background: #0d1629;
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pill-badge.age-badge {
  background: var(--badge-21-bg);
  color: #ffffff;
}

.pill-badge.verified-badge {
  background: rgba(10, 207, 131, 0.15);
  color: var(--primary);
  border: 1px solid rgba(10, 207, 131, 0.3);
}

.pill-badge.promo-badge {
  background: var(--gold-gradient);
  color: #1a1000;
}

.ticker-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* ==========================================================================
   4. Hero Banner Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 16px;
  background: radial-gradient(circle at top right, rgba(147, 83, 211, 0.15) 0%, rgba(10, 15, 29, 0) 70%);
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.hero-banner-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  padding: 16px 4px 8px;
}

/* DOM Rule: First heading in DOM is <h1> */
.hero-content h1 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 8px;
}

.hero-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Dual Action CTAs */
.hero-cta-group {
  display: flex;
  gap: 10px;
}

.btn-primary-action {
  flex: 1.2;
  background: var(--gold-gradient);
  color: #1a1000;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.5);
}

.btn-secondary-action {
  flex: 0.9;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Category Quick Bar */
.category-quick-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-quick-bar::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.category-tab.active, .category-tab:hover {
  border-color: var(--primary);
  background: var(--surface-elevated);
  color: var(--primary);
}

.category-tab span.icon {
  font-size: 18px;
}

/* ==========================================================================
   5. Interactive 3x2 Game Grids (.game-grid-3x2)
   ========================================================================== */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.section-header-row h2 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.view-all-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.game-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 16px 16px;
}

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

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.game-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 260;
  overflow: hidden;
  background: #080d19;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.04);
}

.game-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.game-card-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card-gradient);
}

.game-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-provider {
  font-size: 11px;
  color: var(--text-muted);
}

/* Dual Button Overlay */
.game-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.btn-game-play {
  flex: 1.2;
  background: var(--gold-gradient);
  color: #1a1000;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 2px 6px rgba(255, 122, 0, 0.25);
  transition: all 0.15s ease;
}

.btn-game-play:hover {
  transform: scale(1.02);
  box-shadow: 0 3px 10px rgba(255, 122, 0, 0.4);
}

.btn-game-guide {
  flex: 0.9;
  background: transparent;
  color: #e2e8f0;
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 6px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.15s ease;
}

.btn-game-guide:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   6. Content Deep Dives & Mobile Data Blocks (Thumb-Friendly)
   ========================================================================== */
.content-block {
  padding: 14px 16px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
}

.content-block h2 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 18px 0 8px;
}

.content-block h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 14px 0 6px;
}

.content-block p {
  margin-bottom: 12px;
  color: #cbd5e1;
}

/* Compact 2-Column Key-Value Mobile Table */
.data-table-compact {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.data-table-compact tr {
  border-bottom: 1px solid var(--border);
}

.data-table-compact tr:last-child {
  border-bottom: none;
}

.data-table-compact td {
  padding: 10px 12px;
}

.data-table-compact td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
  background: rgba(0, 0, 0, 0.2);
}

.data-table-compact td:last-child {
  color: #ffffff;
  font-weight: 500;
}

/* FAQ Accordion List */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.faq-item summary {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   7. Compliance Footer & Verbatim Disclaimer
   ========================================================================== */
.app-footer {
  margin-top: 24px;
  padding: 20px 16px 12px;
  background: #080d19;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-links-row a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-links-row a:hover {
  color: var(--primary);
}

/* Verbatim Independent Publisher & NPGH Compliance Disclaimer */
.legal-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.copyright-text {
  font-size: 11px;
  color: #475569;
  text-align: center;
  margin-top: 8px;
}

/* ==========================================================================
   8. Fixed Bottom Navigation (.bottom-nav)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell-max-width);
  height: var(--bottom-nav-height);
  background: rgba(14, 21, 37, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 4px;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  width: 20%;
  height: 100%;
  transition: color 0.18s ease;
}

.nav-tab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: stroke 0.18s ease, transform 0.18s ease;
}

.nav-tab.active, .nav-tab:hover {
  color: var(--primary);
}

.nav-tab.active svg {
  stroke: var(--primary);
  transform: translateY(-1px);
}

.nav-tab.cta-tab {
  color: var(--accent);
}

.nav-tab.cta-tab svg {
  stroke: var(--accent);
}

/* ==========================================================================
   9. Age-Gate Modal Component (Non-Heading Tags)
   ========================================================================== */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.age-gate-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.age-gate-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.age-gate-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.age-gate-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-age-confirm {
  background: var(--gold-gradient);
  color: #1a1000;
  font-size: 14px;
  font-weight: 700;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

.btn-age-exit {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  font-size: 13px;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-age-exit:hover {
  color: #ffffff;
}


.answer-capsule {
  background: rgba(10, 207, 131, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 10px 0 14px;
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.55;
  font-weight: 500;
}
.step-list {
  margin: 12px 0 16px 20px;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.6;
}
.step-list li {
  margin-bottom: 8px;
}
.guide-cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-cta-banner p {
  margin-bottom: 0 !important;
  font-size: 13px;
  color: var(--text-muted);
}
.guide-cta-actions {
  display: flex;
  gap: 10px;
}
