/* ==========================================================================
   JUAN365 Mobile App-Shell Design System (Signature Grey Casino Architecture)
   Compliant with Google Search Essentials & Spam Update Directives
   Target Viewport: Mobile-First Max-Width 430px Container on Desktop Backdrop
   ========================================================================== */

:root {
  /* Signature Grey App-Shell Palette */
  --backdrop: #1a1a1a;
  --bg: #2b2b2b;
  --surface: #383838;
  --surface2: #444444;
  --surface-border: #4d4d4d;
  --surface-hover: #505050;
  
  /* Juan365 Amber Gold Accent */
  --gold: #FFD700;
  --gold-end: #FF9900;
  --gold-grad: linear-gradient(135deg, #FFD700 0%, #FF9900 100%);
  --gold-grad-hover: linear-gradient(135deg, #FFE033 0%, #E68A00 100%);
  --gold-glow: rgba(255, 153, 0, 0.35);

  /* Secondary Accents */
  --blue: #0066FF;
  --blue-hover: #0052cc;
  --cyan: #00D2FF;
  --green: #10B981;
  --danger: #EF4444;

  /* Studio Tag Colorways */
  --badge-jili: #E11D48;
  --badge-fc: #D97706;
  --badge-pp: #EA580C;
  --badge-pg: #8B5CF6;
  --badge-live: #2563EB;
  --badge-arcade: #059669;

  /* Typography Colors */
  --text: #F0F0F0;
  --text-primary: #FFFFFF;
  --text-muted: #A0A0AA;
  --text-subtle: #71717A;
  --text-dark: #111827;

  /* Metrics & Elevation */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --app-shell-shadow: 0 0 35px rgba(0, 0, 0, 0.95);

  /* Fonts */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 60px;
  --bottom-nav-height: 64px;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  background-color: var(--backdrop);
  color: var(--text);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--backdrop);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Mobile App Shell Container */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: var(--bg);
  box-shadow: var(--app-shell-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

/* Utilities */
a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   Header Architecture
   ========================================================================== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(43, 43, 43, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

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

.hdr-logo {
  display: flex;
  align-items: center;
}

.hdr-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.hdr-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.hdr-logo-text span {
  color: #FFFFFF;
}

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

.btn-header-login {
  background-color: var(--surface2);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-header-login:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-muted);
}

.btn-header-reg {
  background: var(--gold-grad);
  color: var(--text-dark);
  border: none;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 6px var(--gold-glow);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

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

/* In-Content Dual Action Buttons (Styled identically to Image 2: Grey Pill & Gold Pill) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-grad);
  color: #111827 !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px var(--gold-glow);
  transition: transform 0.15s ease, filter 0.2s ease;
  margin: 6px 6px 6px 0;
  user-select: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface2);
  color: #FFFFFF !important;
  border: 1px solid var(--surface-border);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  margin: 6px 6px 6px 0;
  user-select: none;
}

.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-muted);
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.menu-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Navigation Drawer (Slide-out menu for mobile)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  max-width: 80%;
  height: 100vh;
  background: #242424;
  border-right: 1px solid var(--surface-border);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  overflow-y: auto;
}

.drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 16px;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: background 0.2s;
}

.drawer-links a:hover {
  background: var(--surface);
  color: var(--gold);
}

/* ==========================================================================
   Main Content Layout & Typography
   ========================================================================== */
.main-content {
  padding: 16px;
  flex: 1;
}

/* STRICT DOM RULE: h1 is styled properly */
h1.page-title {
  font-size: 1.45rem;
  line-height: 1.28;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

h1.page-title .highlight {
  color: var(--gold);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}

h3.sub-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5e7eb;
  margin: 20px 0 10px 0;
}

p {
  color: #D4D4D8;
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================================
   Hero Banner & Marquee
   ========================================================================== */
.hero-box {
  background: linear-gradient(180deg, #333333 0%, #292929 100%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,153,0,0.18) 0%, rgba(255,153,0,0) 70%);
  pointer-events: none;
}

.hero-badge-wrap {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid rgba(255, 153, 0, 0.35);
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.hero-img-wrap {
  margin: 14px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.hero-img-wrap img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-cta-gold {
  background: var(--gold-grad);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius-full);
  text-align: center;
  box-shadow: 0 4px 14px var(--gold-glow);
  transition: transform 0.15s ease, filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-cta-gold:hover {
  filter: brightness(1.08);
}

.btn-cta-gold:active {
  transform: scale(0.97);
}

.btn-cta-ghost {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius-full);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.btn-cta-ghost:hover {
  background: var(--surface2);
  border-color: var(--text-muted);
}

/* Live Marquee Ticker */
.ticker-wrap {
  background: #202020;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.ticker-label {
  background: var(--gold);
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #D1D5DB;
  width: 100%;
}

.ticker-content {
  display: inline-block;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Interactive 3x2 Game Card Grid & Category Filter Chips
   ========================================================================== */
.filter-tabs-wrap {
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.filter-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.filter-chip {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-chip.active {
  background: var(--gold-grad);
  color: var(--text-dark);
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.filter-chip:hover:not(.active) {
  background: var(--surface2);
  color: #FFFFFF;
}

/* 3x2 Grid (3 rows of 2 columns = 6 cards) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--surface-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;
  position: relative;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: #666;
  box-shadow: var(--shadow-md);
}

.game-card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #202020;
  overflow: hidden;
}

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

.game-card:hover .game-card-thumb img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 2;
}

.badge-jili { background-color: var(--badge-jili); }
.badge-fc { background-color: var(--badge-fc); }
.badge-pp { background-color: var(--badge-pp); }
.badge-pg { background-color: var(--badge-pg); }
.badge-live { background-color: var(--badge-live); }
.badge-arcade { background-color: var(--badge-arcade); }

.card-rtp {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.75);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.game-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Dual Button Action Row */
.game-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.btn-card-play {
  background: var(--gold-grad);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 0;
  border-radius: var(--radius-full);
  text-align: center;
  transition: opacity 0.15s ease;
}

.btn-card-play:hover {
  filter: brightness(1.08);
}

.btn-card-guide {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-border);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 0;
  border-radius: var(--radius-full);
  text-align: center;
  transition: all 0.15s ease;
}

.btn-card-guide:hover {
  background: var(--surface2);
  border-color: var(--text-muted);
}

/* Pagination for 6-card chunks */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 18px 0 26px 0;
}

.page-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text);
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.page-btn.active {
  background: var(--gold-grad);
  color: var(--text-dark);
  border-color: transparent;
  font-weight: 800;
}

.page-btn:hover:not(.active):not(:disabled) {
  background: var(--surface2);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   Trust & Verification Bar (Payment Badges + E-E-A-T)
   ========================================================================== */
.trust-bar {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 22px;
}

.trust-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-align: center;
}

.payment-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}

.pay-card {
  background: #242424;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pay-card img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.pay-card span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-signals-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #D1D5DB;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--green);
}

/* ==========================================================================
   Informational Guides, Paytables & Data Tables
   ========================================================================== */
.guide-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

th {
  background: #222222;
  color: var(--gold);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
  white-space: nowrap;
}

td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #E4E4E7;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* Step-by-Step Walkthrough List (Tight, sleek mobile spacing) */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 0 !important;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gold-grad);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 0.90rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px 0 !important;
}

.step-desc {
  font-size: 0.82rem;
  color: #A1A1AA;
  line-height: 1.35;
  margin: 0 !important;
  padding: 0 !important;
}

.step-card p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35;
}

/* Formula Callout Boxes (Replacing raw math/code blocks) */
.formula-box {
  background: #202020;
  border: 1px solid rgba(255, 153, 0, 0.35);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.formula-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.formula-text {
  font-size: 0.88rem;
  color: #F3F4F6;
  font-weight: 600;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.formula-text strong {
  color: var(--gold);
  font-weight: 800;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 26px 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: rgba(255, 153, 0, 0.4);
}

.faq-question {
  width: 100%;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 10px;
}

.faq-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--gold);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 14px 14px 14px;
  color: #D4D4D8;
  font-size: 0.84rem;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -4px;
  padding-top: 10px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Author E-E-A-T Card
   ========================================================================== */
.author-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  margin: 24px 0;
  align-items: center;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--surface2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.author-role {
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 4px;
}

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

/* ==========================================================================
   Mandatory Compliance Footer (21+ PAGCOR Responsible Gaming)
   ========================================================================== */
.compliance-footer {
  background: #1e1e1e;
  border-top: 1px solid var(--surface-border);
  padding: 20px 14px;
  margin-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.badge-21-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid #DC2626;
  color: #DC2626;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.compliance-text {
  margin-bottom: 10px;
  color: #A1A1AA;
}

.compliance-text strong {
  color: #E4E4E7;
}

.helpline-box {
  background: #252525;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin: 12px 0;
  font-size: 0.72rem;
}

.helpline-box span {
  color: var(--gold);
  font-weight: 700;
}

.affiliate-disclaimer {
  font-size: 0.68rem;
  color: #71717A;
  margin-top: 12px;
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
  font-size: 0.75rem;
}

.footer-nav a {
  color: #D4D4D8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.copyright {
  font-size: 0.68rem;
  color: #52525B;
  margin-top: 10px;
}

/* ==========================================================================
   Fixed 5-Tab Bottom Navigation Bar (Mobile App Shell)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--bottom-nav-height);
  background: rgba(35, 35, 35, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--surface-border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 900;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.nav-tab svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

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

.nav-tab:active {
  transform: scale(0.92);
}

.nav-tab-center {
  position: relative;
  top: -10px;
}

.nav-tab-center .center-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gold-grad);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--gold-glow);
  margin-bottom: 2px;
}

/* ==========================================================================
   Age-Gate Modal (21+ Interstitial - STRICT DOM RULE: Uses div.modal-title)
   ========================================================================== */
.age-gate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.age-gate-modal.show {
  display: flex;
}

.age-gate-card {
  background: #2b2b2b;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.age-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 3px solid #DC2626;
  color: #DC2626;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 14px;
}

/* STRICT RULE: DIV for modal title, NOT H1-H6 */
.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.82rem;
  color: #A1A1AA;
  line-height: 1.5;
  margin-bottom: 20px;
}

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

.btn-confirm-age {
  background: var(--gold-grad);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px var(--gold-glow);
}

.btn-reject-age {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.btn-reject-age:hover {
  background: var(--surface);
  color: #FFFFFF;
}
