/* ==========================================================================
   Jilievo (jilievo8.ph) — Mobile App Shell & Design System Architecture
   Reverse-Engineered from jl-bet.ph & jilievo.bar Live Assets
   ========================================================================== */

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

:root {
  /* Brand Color Tokens */
  --primary: #f9bb22;
  --primary-hover: #f5d483;
  --primary-dark: #e9a71b;
  --primary-glow: rgba(249, 187, 34, 0.35);

  /* Secondary & Accent CTA Tokens */
  --accent: #fd2f2f;
  --accent-hover: #ea1c39;
  --accent-deep: #d63000;
  --accent-glow: rgba(253, 47, 47, 0.35);

  /* Surface & Background Hierarchy */
  --bg-desktop: #1a1a1a;
  --bg-shell: #000000;
  --surface-header: #000000;
  --surface-bottom-nav: #161823;
  --surface-card: #2a2a2a;
  --surface-card-secondary: #242636;
  --surface-subtle: #2f2f2f;
  --surface-input: #1f1f1f;

  /* Text & Typography Tokens */
  --text-main: #ffffff;
  --text-secondary: #c4c4c4;
  --text-muted: #8e8e8e;
  --text-gold: #f9bb22;

  /* Border & Divider Tokens */
  --border-subtle: #363636;
  --border-gold: #f9bb22;
  --border-focus: #9d8bd5;

  /* Status Tokens */
  --badge-21-bg: #fd2f2f;
  --badge-21-text: #ffffff;
  --badge-verified-bg: rgba(14, 159, 110, 0.15);
  --badge-verified-text: #3ee89a;
  --badge-verified-border: rgba(62, 232, 154, 0.3);

  /* Gradients */
  --grad-gold-cta: linear-gradient(180deg, #fffae5 0%, #ffdb00 51%, #ffb600 100%);
  --grad-red-cta: linear-gradient(180deg, #ff5757 0%, #fd2f2f 51%, #c63036 100%);
  --grad-hero: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  --grad-card: radial-gradient(circle at 50% 0%, rgba(249, 187, 34, 0.12) 0%, transparent 75%);

  /* Radius & Shadows */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-btn: 0 4px 12px rgba(249, 187, 34, 0.3);
  --shadow-sticky: 0 -4px 18px rgba(0, 0, 0, 0.6);

  /* Typography Scale */
  --font-primary: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-desktop);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   Mobile App Shell Layout (.app-shell)
   ========================================================================== */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: var(--bg-shell);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
  padding-bottom: 72px; /* Space for fixed bottom navigation */
}

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

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

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

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

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-login:hover {
  background: #383838;
  border-color: #555555;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 800;
  color: #111111;
  background: var(--grad-gold-cta);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(249, 187, 34, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

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

.btn-register:active {
  transform: translateY(0);
}

/* ==========================================================================
   Trust & Notification Pill Badges (Strictly <div class="pill-badge"> or <p>)
   ========================================================================== */
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #141724;
  border-bottom: 1px solid #232738;
}

.announcement-icon {
  font-size: 14px;
  flex-shrink: 0;
}

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

.announcement-text strong {
  color: var(--primary);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pill-badge-21 {
  background-color: var(--badge-21-bg);
  color: var(--badge-21-text);
  box-shadow: 0 2px 6px rgba(253, 47, 47, 0.3);
}

.pill-badge-verified {
  background-color: var(--badge-verified-bg);
  color: var(--badge-verified-text);
  border: 1px solid var(--badge-verified-border);
}

.pill-badge-gold {
  background-color: rgba(249, 187, 34, 0.18);
  color: var(--primary);
  border: 1px solid rgba(249, 187, 34, 0.35);
}

.trust-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0f1118;
  border-bottom: 1px solid var(--border-subtle);
}

.disclaimer-statement {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   Hero Banner Carousel Section
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000000;
}

.hero-slider {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-slider::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
}

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

.hero-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px 12px;
  background: var(--grad-hero);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-lead-text {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-cta-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #111111;
  background: var(--grad-gold-cta);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Quick Action Bar */
.quick-action-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 14px;
  background: #151824;
  border-bottom: 1px solid var(--border-subtle);
}

.action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  background: #1e2233;
  border-radius: var(--radius-sm);
  border: 1px solid #2b3046;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.action-tile:hover {
  background: #252b40;
  transform: translateY(-2px);
}

.action-tile-icon {
  font-size: 20px;
}

.action-tile-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ==========================================================================
   Category Horizontal Tabs (.category-tabs)
   ========================================================================== */
.category-tabs-container {
  padding: 14px 14px 6px;
  background: var(--bg-shell);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cat-tab img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cat-tab.active, .cat-tab:hover {
  background: var(--grad-gold-cta);
  color: #111111;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(249, 187, 34, 0.3);
}

/* ==========================================================================
   Interactive 3x2 Game Grids (.game-grid-3x2)
   ========================================================================== */
.section-wrapper {
  padding: 12px 14px 18px;
}

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

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

.section-title-icon {
  color: var(--primary);
}

.section-more-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.section-more-link:hover {
  text-decoration: underline;
}

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

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

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 187, 34, 0.45);
}

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

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

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

.game-tag-rtp {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  color: #3ee89a;
  border: 1px solid rgba(62, 232, 154, 0.3);
}

.game-provider-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 5px;
  background: rgba(249, 187, 34, 0.9);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  color: #111111;
}

.game-meta {
  padding: 8px 6px 6px;
  background: #20222e;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-name {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.game-payout {
  font-size: 10px;
  color: var(--text-gold);
  font-weight: 600;
  margin-bottom: 6px;
}

/* Dual-Button Overlays & Layout */
.game-actions-dual {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-play-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 800;
  color: #111111;
  background: var(--grad-gold-cta);
  border-radius: var(--radius-xs);
  transition: filter 0.15s ease;
  box-shadow: 0 2px 6px rgba(249, 187, 34, 0.25);
}

.btn-play-gold:hover {
  filter: brightness(1.1);
}

.btn-guide-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.btn-guide-outline:hover {
  color: #ffffff;
  border-color: var(--primary);
  background: rgba(249, 187, 34, 0.1);
}

/* ==========================================================================
   Compliance & Responsible Gaming Section
   Strict Zero PAGCOR License Numbers Enforcement
   ========================================================================== */
.compliance-section {
  padding: 20px 14px;
  background: #111218;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 10px;
}

.compliance-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.compliance-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.compliance-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.compliance-link-card {
  padding: 8px 10px;
  background: #191b26;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.compliance-link-card:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   Fixed Bottom Navigation Bar (.bottom-nav)
   5 mobile touch tabs anchored at viewport bottom
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 64px;
  background-color: var(--surface-bottom-nav);
  border-top: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sticky);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
  position: relative;
}

.nav-tab svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.15s ease;
}

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

.nav-tab:hover {
  color: #ffffff;
}

.nav-tab.active svg {
  transform: translateY(-2px);
}

/* Highlighted Play / Promo Center Tab */
.nav-tab-center {
  position: relative;
  top: -10px;
}

.nav-tab-center-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-gold-cta);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(249, 187, 34, 0.45);
  border: 3px solid var(--surface-bottom-nav);
  transition: transform 0.15s ease;
}

.nav-tab-center-btn svg {
  width: 24px;
  height: 24px;
}

.nav-tab-center:hover .nav-tab-center-btn {
  transform: scale(1.08);
}

.nav-tab-center-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 1px;
}

/* ==========================================================================
   21+ Age Gate Modal
   ========================================================================== */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate-card {
  width: 100%;
  max-width: 360px;
  background: #1e2130;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
}

.age-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(253, 47, 47, 0.4);
}

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

.age-gate-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

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

.btn-confirm-age {
  padding: 12px 0;
  font-size: 13px;
  font-weight: 800;
  color: #111111;
  background: var(--grad-gold-cta);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
}

.btn-exit-age {
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Responsive Viewport Overrides
   ========================================================================== */
@media (max-width: 480px) {
  body {
    background-color: var(--bg-shell);
  }
  .app-shell {
    max-width: 100%;
    box-shadow: none;
  }
  .bottom-nav {
    max-width: 100%;
  }
}

/* ==========================================================================
   Spoke & Category Postcard System
   ========================================================================== */
.postcard-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.spoke-postcard {
  background: #141724;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.spoke-postcard:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 187, 34, 0.4);
}
.postcard-img-box {
  position: relative;
  width: 100%;
  height: 105px;
  overflow: hidden;
  background: #0c0e15;
}
.postcard-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.postcard-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--text-gold);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(4px);
}
.postcard-content {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.postcard-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.postcard-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.postcard-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: all 0.2s ease;
}
.postcard-btn:hover {
  background: var(--primary);
  color: #000000;
}

