/* BetSo88 Signature Grey Mobile App-Shell UI Design System */
:root {
  --body-bg: #1a1a1a;
  --bg: #2b2b2b;
  --surface: #383838;
  --surface2: #444444;
  --surface-border: #4d4d4d;
  
  /* Brand Tokens */
  --gold-primary: #FF8C00;
  --gold-gradient: linear-gradient(135deg, #FF8C00 0%, #FFB300 100%);
  --gold-gradient-hover: linear-gradient(135deg, #FFA000 0%, #FFC107 100%);
  --red-accent: #FF3B30;
  --red-gradient: linear-gradient(135deg, #FF3B30 0%, #E11D48 100%);
  --cashier-green: #00C853;
  --cashier-gradient: linear-gradient(135deg, #00C853 0%, #059669 100%);
  
  /* Provider Colorway Badges */
  --badge-jili: linear-gradient(135deg, #E11D48 0%, #F59E0B 100%);
  --badge-fc: linear-gradient(135deg, #D97706 0%, #059669 100%);
  --badge-pp: linear-gradient(135deg, #EA580C 0%, #7C3AED 100%);
  --badge-pg: linear-gradient(135deg, #8B5CF6 0%, #FB923C 100%);
  --badge-live: linear-gradient(135deg, #2563EB 0%, #E2E8F0 100%);

  /* Typography */
  --text: #f0f0f0;
  --text-white: #ffffff;
  --muted: #a0a0aa;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Radii & Shadows */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --shell-shadow: 0 0 35px rgba(0, 0, 0, 0.95);
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--body-bg);
  font-family: var(--font-family);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

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

/* Sticky Top Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(43, 43, 43, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.hdr-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.hdr-brand-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.hdr-brand-text span {
  color: var(--gold-primary);
}

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

.btn-login {
  background: var(--surface2);
  color: var(--text-white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--surface-border);
  transition: all 0.2s ease;
}

.btn-register {
  background: var(--gold-gradient);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
  transition: all 0.2s ease;
}

/* Compliance Notice Modal Bar (Using div, NEVER h1-h6) */
.compliance-bar {
  background: #202020;
  border-bottom: 1px solid #3a3a3a;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.compliance-badge-21 {
  background: #e11d48;
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
}

/* Hero Section with Immersive Dark Gradient */
.hero-container {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 24px 18px 20px;
  border-bottom: 1px solid var(--surface-border);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 27, 27, 0.75) 0%, rgba(43, 43, 43, 0.98) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Strict Heading Typography */
h1.page-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-white);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  margin: 22px 0 10px;
  border-left: 3px solid var(--gold-primary);
  padding-left: 10px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffb300;
  margin: 16px 0 8px;
}

p {
  color: #d1d1d6;
  margin-bottom: 12px;
  font-size: 13.5px;
}

/* Dual CTAs */
.dual-cta-group {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.btn-primary-cta {
  flex: 1;
  background: var(--gold-gradient);
  color: #111;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease;
}

.btn-secondary-cta {
  flex: 1;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-cta:active, .btn-secondary-cta:active {
  transform: scale(0.98);
}

/* Trust / Feature Metrics Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--surface);
  padding: 12px;
  border-radius: var(--radius);
  margin: 14px 0;
  border: 1px solid var(--surface-border);
}

.trust-item {
  text-align: center;
}

.trust-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-primary);
}

.trust-lbl {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Interactive Filter Chips */
.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 1px solid var(--surface-border);
  cursor: pointer;
  text-decoration: none;
}

.chip.active {
  background: var(--gold-gradient);
  color: #111;
  font-weight: 700;
  border-color: transparent;
}

/* 3x2 Interactive Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 16px;
}

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

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

.game-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 800;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.rtp-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #4ade80;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.game-info {
  padding: 8px 6px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.game-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-play-sm {
  background: var(--gold-gradient);
  color: #111;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 0;
  border-radius: 6px;
  text-decoration: none;
  display: block;
}

.btn-guide-sm {
  background: var(--surface2);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 0;
  border-radius: 4px;
  text-decoration: none;
  display: block;
  border: 1px solid var(--surface-border);
}

/* Pagination Row */
.pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 16px;
}

.page-num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--surface-border);
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.page-num.active {
  background: var(--gold-gradient);
  color: #111;
  font-weight: 800;
  border-color: transparent;
}

/* Article / Body Content Section */
.content-body {
  padding: 16px;
}

.content-body ul, 
.content-body ol {
  margin: 12px 0 16px 0;
  padding-left: 24px;
  color: #d1d1d6;
}

.content-body li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 13.5px;
}

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

.table-responsive table,
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 12.5px;
  background: transparent;
  border: none;
}

.content-body th {
  background: #252525;
  color: var(--gold-primary);
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.content-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
  color: #e0e0e0;
  font-size: 12px;
  line-height: 1.5;
}

.content-body tr:last-child td {
  border-bottom: none;
}

/* Custom subtle scrollbar for mobile tables */
.table-responsive::-webkit-scrollbar {
  height: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

/* Styled Table & Spec Card Container for converted ASCII boxes */
.spec-card, .info-card {
  background: #222222;
  border: 1px solid #3d3d3d;
  border-radius: 10px;
  padding: 14px;
  margin: 16px 0;
}

.spec-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spec-item {
  background: #2b2b2b;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 8px 10px;
}

.spec-item-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-item-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

/* Step Flow Cards */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.step-flow-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #232323;
  border: 1px solid #383838;
  border-radius: 8px;
  padding: 10px 12px;
}

.step-badge {
  background: var(--gold-gradient);
  color: #111;
  font-weight: 800;
  font-size: 11px;
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-details {
  flex: 1;
}

.step-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.step-desc {
  font-size: 11.5px;
  color: #b0b0b8;
  margin: 2px 0 0 0;
}

.content-body pre {
  background: #202020;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  color: #e0e0e0;
  overflow-x: auto;
  margin: 14px 0;
  line-height: 1.45;
}

.inline-context-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 14px 0;
  border: 1px solid var(--surface-border);
  display: block;
}

/* FAQ Accordion */
.faq-box {
  background: var(--surface);
  border-radius: var(--radius);
  margin: 12px 0;
  border: 1px solid var(--surface-border);
  overflow: hidden;
}

.faq-q {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 14px 12px;
  font-size: 13px;
  color: #c4c4cc;
}

/* Fixed Bottom Navigation (5 Sticky Tabs) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: rgba(35, 35, 35, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  gap: 3px;
  flex: 1;
}

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

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

/* Footer Section */
.footer-wrap {
  padding: 20px 16px;
  background: #202020;
  border-top: 1px solid var(--surface-border);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.footer-badge-img {
  height: 24px;
  width: auto;
  opacity: 0.8;
}
