@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;700;800&family=Roboto+Mono:wght@500;700&display=swap');

/* ==========================================================================
   AAAJL CASINO DESIGN SYSTEM TOKENS & SHELL ARCHITECTURE
   Reverse-Engineered from jl-bet.ph & Native Mobile App (aaajl.net)
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --primary: #F8CF40;
  --primary-hover: #FAE163;
  --primary-gradient: linear-gradient(135deg, #FAE163 0%, #9D6307 22%, #E0B521 58%, #9F6812 85%, #F8CF40 100%);
  --gold: #F8CF40;
  --gold-light: #FAE163;
  --gold-dark: #9D6307;
  --gold-glow: rgba(248, 207, 64, 0.22);
  --gold-border: rgba(250, 225, 99, 0.28);

  /* Accent & Interactive */
  --accent: #E0B521;
  --accent-blue: #3873FF;
  --accent-blue-light: #62A2FF;
  --accent-blue-gradient: linear-gradient(180deg, #62A2FF 0%, #3873FF 100%);
  --success: #0E9F6E;
  --success-bg: rgba(14, 159, 110, 0.15);
  --alert-red: #EB262A;

  /* Surfaces & Backgrounds */
  --outer-bg: #1a1a1a;
  --bg: #0E131F;
  --header-bg: rgba(24, 31, 43, 0.94);
  --surface: #1D2636;
  --surface-hover: #243044;
  --surface-active: #2C3A52;
  --surface-border: #28456C;
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Typography */
  --text: #FFFFFF;
  --text-muted: #A0AEC0;
  --text-dim: #718096;
  --font-main: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-number: 'Roboto Mono', 'Outfit', monospace;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-shell: 0 0 40px rgba(0, 0, 0, 0.95);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 4px 18px rgba(248, 207, 64, 0.35);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--outer-bg);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* ==========================================================================
   1. MOBILE APP SHELL CONTAINER (Desktop Centered 430px / Mobile 100%)
   ========================================================================== */

.app-shell {
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 84px;
  position: relative;
  box-shadow: var(--shadow-shell);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

@media (max-width: 480px) {
  .app-shell {
    max-width: 100%;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

/* ==========================================================================
   2. STICKY HEADER (.hdr)
   ========================================================================== */

.hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gold-border);
}

.hdr-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.hdr-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.hdr-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Button Variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #121318;
  box-shadow: 0 4px 14px rgba(248, 207, 64, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(248, 207, 64, 0.45);
}

.btn-outline {
  background: rgba(29, 38, 54, 0.6);
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(248, 207, 64, 0.12);
  color: var(--gold-light);
}

.btn-blue {
  background: var(--accent-blue-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(56, 115, 255, 0.3);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.98rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   3. NOTIFICATIONS, BADGES & DISCLAIMERS (Zero Heading Tags)
   ========================================================================== */

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(248, 207, 64, 0.12);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.pill-badge-verified {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(14, 159, 110, 0.35);
}

.pill-badge-alert {
  background: rgba(235, 38, 42, 0.15);
  color: var(--alert-red);
  border-color: rgba(235, 38, 42, 0.3);
}

.pill-badge-21 {
  background: rgba(255, 152, 0, 0.15);
  color: #FFB74D;
  border-color: rgba(255, 152, 0, 0.3);
  font-weight: 800;
}

.pill-badge-blue {
  background: rgba(56, 115, 255, 0.15);
  color: var(--accent-blue-light);
  border-color: rgba(56, 115, 255, 0.3);
}

.ticker-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(24, 31, 43, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.ticker-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
}

.ticker-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.ticker-text strong {
  color: var(--gold);
}

/* ==========================================================================
   4. HERO PROMOTIONAL BANNER & SLIDER
   ========================================================================== */

.hero-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000000;
}

.hero-slider {
  display: flex;
  width: 300%;
  animation: heroSlide 16s infinite ease-in-out;
}

.hero-slide {
  width: 33.33333%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/230;
  object-fit: cover;
  display: block;
}

@keyframes heroSlide {
  0%, 28% { transform: translateX(0); }
  33%, 61% { transform: translateX(-33.33333%); }
  66%, 94% { transform: translateX(-66.66666%); }
  100% { transform: translateX(0); }
}

.hero-overlay-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, var(--bg) 0%, rgba(14, 19, 31, 0.85) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Spoke & Guide Hero Banner */
.spoke-hero-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 14px 0 18px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.spoke-hero-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   5. QUICK ACTION BAR & CASHIER METRICS
   ========================================================================== */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  margin: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.qa-item:hover {
  transform: translateY(-2px);
  color: var(--gold);
}

.qa-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 19, 31, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qa-item:hover .qa-icon-wrap {
  border-color: var(--gold-border);
  background: rgba(248, 207, 64, 0.1);
}

.qa-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   6. INTERACTIVE 3x2 GAME GRIDS WITH DUAL-BUTTON OVERLAYS
   ========================================================================== */

.content-section {
  padding: 0 14px;
  margin: 22px 0;
}

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

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.section-more {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

/* 3x2 Responsive Game Grid */
.game-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

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

.game-placecard:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.game-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #111624;
  overflow: hidden;
}

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

.game-placecard:hover .game-thumb {
  transform: scale(1.06);
}

.game-provider-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.game-rtp-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(14, 159, 110, 0.85);
  font-size: 0.6rem;
  font-weight: 700;
  color: #FFFFFF;
  z-index: 2;
}

.game-meta {
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
}

.game-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Dual-Button Overlay / Action Bar */
.game-dual-actions {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4px;
  width: 100%;
}

.btn-game-play {
  padding: 5px 0;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 6px;
  background: var(--primary-gradient);
  color: #121318;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.btn-game-play:hover {
  filter: brightness(1.15);
}

.btn-game-guide {
  padding: 5px 0;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(14, 19, 31, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-game-guide:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(248, 207, 64, 0.08);
}

/* ==========================================================================
   7. PROMOTIONAL CARD & FEATURE HIGHLIGHTS
   ========================================================================== */

.promo-banner-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
}

.promo-banner-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/200;
  object-fit: cover;
  display: block;
}

.promo-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.promo-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.promo-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* Cashier Comparison Strip */
.cashier-strip {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cashier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(14, 19, 31, 0.6);
  border-radius: 8px;
}

.cashier-method {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.cashier-speed {
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
}

/* ==========================================================================
   8. E-E-A-T AUTHOR CREDENTIALS & AUDIT BLOCK
   ========================================================================== */

.eeat-box {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  padding: 14px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.eeat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.eeat-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eeat-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.eeat-bio {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.eeat-date {
  font-size: 0.7rem;
  color: var(--gold);
  margin-top: 2px;
}

/* ==========================================================================
   9. ACCORDION FAQ SECTION
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--text);
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

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

.faq-content {
  padding: 0 14px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   10. RESPONSIBLE GAMING 21+ COMPLIANCE FOOTER (Zero Fake Licenses)
   ========================================================================== */

.compliance-footer {
  background: #080B12;
  padding: 24px 14px 16px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.compliance-logo {
  height: 26px;
  width: auto;
  margin: 0 auto 12px;
  opacity: 0.75;
}

.compliance-rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: #FFA726;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.compliance-text {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 10px;
}

.compliance-disclaimer {
  font-size: 0.68rem;
  color: #556276;
  line-height: 1.5;
  margin-bottom: 14px;
}

.compliance-disclaimer strong {
  color: #94A3B8;
}

.compliance-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.72rem;
  flex-wrap: wrap;
}

.compliance-links a {
  color: var(--text-muted);
}

.compliance-links a:hover {
  color: var(--gold);
}

/* ==========================================================================
   11. FIXED BOTTOM TOUCH BAR (.bottom-nav) - 5 Touch Tabs
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  border-top: 1px solid var(--gold-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
  .bottom-nav {
    max-width: 100%;
  }
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  gap: 3px;
  transition: color 0.18s ease, transform 0.15s ease;
  min-width: 58px;
  min-height: 44px; /* WCAG 44x44 touch target */
}

.nav-tab-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}

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

.nav-tab.active .nav-tab-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 2px 6px rgba(248, 207, 64, 0.5));
}

.nav-tab-cta {
  color: #121318 !important;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  box-shadow: 0 2px 10px rgba(248, 207, 64, 0.4);
}

/* ==========================================================================
   12. AGE-GATE MODAL (21+ Verification)
   ========================================================================== */

.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
}

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

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

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

.age-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hidden,
.age-gate-overlay.hidden,
[hidden] {
  display: none !important;
}
