/* IWBet Mobile-First Design System */
:root {
  --bg-main: #0B0E14;
  --bg-shell: #121620;
  --surface: #181E2C;
  --surface-hover: #222B3D;
  --surface-border: #283347;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --gold-primary: #F59E0B;
  --gold-glow: #FBBF24;
  --red-accent: #EF4444;
  --green-win: #10B981;
  --blue-brand: #3B82F6;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-family: -apple-system, BlinkMacSystemFont, "Pyidaungsu", "Padauk", "Myanmar Text", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* App Shell Container */
.app-container {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-shell);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 74px; /* Space for sticky bottom bar */
}

@media (min-width: 992px) {
  .app-container {
    max-width: 1040px; /* Enhanced comfortable reading view for desktop while maintaining mobile app vibe */
  }
}

/* Top App Bar */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 27, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}
.brand-logo-img:hover {
  transform: scale(1.02);
}
.header-nav {
  display: none;
  align-items: center;
  gap: 16px;
  margin: 0 16px;
}
.header-nav-link {
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.header-nav-link:hover {
  color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.05);
}
@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-login {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  letter-spacing: 0.2px;
}
.btn-login:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold-primary);
  color: #fde047;
}
.btn-register {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 800;
  color: #0b0e14;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  border: none;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.45);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  letter-spacing: 0.2px;
}
.btn-register:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.55);
}

/* Live Ticker Bar */
.ticker-bar {
  background: linear-gradient(90deg, #181E2C, #21293B);
  border-bottom: 1px solid var(--surface-border);
  padding: 6px 16px;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.ticker-badge {
  background: var(--red-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ticker-text {
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Category Navigation Pill Bar */
.cat-nav-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-shell);
  border-bottom: 1px solid var(--surface-border);
  padding: 10px 14px;
}
.cat-nav-wrapper::-webkit-scrollbar { display: none; }
.cat-pills {
  display: flex;
  gap: 8px;
  width: max-content;
}
.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.cat-pill.active, .cat-pill:hover {
  background: var(--gold-primary);
  color: #0B0E14;
  border-color: var(--gold-glow);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px 16px 4px 16px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs a { color: var(--gold-primary); text-decoration: none; }
.breadcrumbs span { color: var(--text-muted); }

/* Main Content Area */
.content-body {
  padding: 16px;
  flex: 1;
}

/* Hero Card */
.hero-card {
  background: linear-gradient(180deg, rgba(24, 30, 44, 0.8) 0%, rgba(18, 22, 32, 0.95) 100%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
}
h1.page-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}
.hero-media {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--surface-border);
  background: #0f172a;
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.cta-group {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.btn-primary-cta {
  flex: 1;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--gold-glow), var(--gold-primary));
  color: #0B0E14;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-secondary-cta {
  flex: 1;
  padding: 12px 18px;
  background: var(--surface);
  color: #fff;
  border: 1px solid var(--surface-border);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-secondary-cta:hover { background: var(--surface-hover); border-color: var(--gold-primary); }

/* Quick Trust Metrics Bar */
.trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.metric-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}
.metric-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-primary);
}
.metric-label {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Section Containers */
.section-block {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}
.section-heading {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid var(--gold-primary);
  padding-left: 10px;
}
.text-body {
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 12px;
}
.text-body p { margin-bottom: 10px; }
.text-body ul, .text-body ol {
  margin-left: 20px;
  margin-bottom: 12px;
}
.text-body li { margin-bottom: 6px; }

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
table.data-table th {
  background: #202737;
  color: var(--gold-primary);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
}
table.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #202737;
  color: #E2E8F0;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:nth-child(even) { background: rgba(32, 39, 55, 0.4); }

/* Game Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.game-card {
  background: #141924;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.card-media {
  width: 100%;
  height: 110px;
  background: #0B0E14;
  overflow: hidden;
  position: relative;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.card-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.card-btn {
  padding: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #0B0E14;
  background: var(--gold-primary);
  text-align: center;
  border-radius: 4px;
  text-transform: uppercase;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--surface-border);
  padding: 12px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  font-size: 13.5px;
  color: #94A3B8;
  margin-top: 8px;
  line-height: 1.55;
}

/* Full Mesh Internal Links Grid */
.internal-links-box {
  background: #141924;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 20px;
}
.internal-links-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.links-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mesh-link {
  font-size: 12px;
  font-weight: 600;
  color: #CBD5E1;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.mesh-link:hover {
  background: var(--gold-primary);
  color: #0B0E14;
  border-color: var(--gold-glow);
}

/* Site Footer */
.site-footer {
  background: #0B0E14;
  border-top: 1px solid var(--surface-border);
  padding: 24px 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-primary); }
.responsible-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--red-accent);
}
.footer-copy { font-size: 11px; color: #64748B; }

/* Sticky Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 64px;
  background: rgba(18, 22, 32, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}
@media (min-width: 992px) {
  .bottom-nav { max-width: 1040px; }
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  flex: 1;
  height: 100%;
  transition: all 0.2s;
  gap: 3px;
}
.nav-item svg { width: 22px; height: 22px; fill: currentColor; }
.nav-item.active, .nav-item:hover { color: var(--gold-primary); }
.nav-item.highlight {
  color: #0B0E14;
}
.nav-item.highlight .nav-icon-wrap {
  background: linear-gradient(135deg, var(--gold-glow), var(--gold-primary));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}
.nav-item.highlight svg { fill: #0B0E14; }

/* --- BRAND COMPARISON LIST COMPONENT (Matching Screenshots) --- */
.brand-list-section {
  background: #14121c;
  border: 1px solid #2d2642;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  margin-bottom: 22px;
}
.brand-list-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 2px;
}
.brand-list-header .red-bar {
  width: 3px;
  min-height: 28px;
  background: #ef4444;
  border-radius: 2px;
  flex-shrink: 0;
}
.brand-list-disclaimer {
  font-size: 11px;
  color: #a8a29e;
  line-height: 1.45;
  margin: 0;
}
.brand-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-card-item {
  background: linear-gradient(180deg, #1f1b2e 0%, #1a1727 100%);
  border: 1px solid #362f4e;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
}
.brand-card-item:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.brand-rank-num {
  background: #2c253d;
  color: #fde047;
  font-size: 15px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(253, 224, 71, 0.2);
}
.brand-identity-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 84px;
  flex-shrink: 0;
}
.brand-logo-thumb {
  width: 74px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border: 1px solid #38324f;
}
.brand-logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-name-text {
  font-size: 11.5px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}
.brand-sub-text {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
}
.brand-promo-box {
  flex: 1;
  min-width: 0;
  padding: 0 4px;
}
.brand-promo-label {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 2px;
}
.brand-promo-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 4px;
}
.brand-promo-note {
  font-size: 10px;
  color: #78716c;
  line-height: 1.35;
}
.brand-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-align: center;
}
.btn-brand-visit {
  background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
  color: #1c1917;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.3);
  transition: all 0.2s;
}
.btn-brand-visit:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}
.brand-aff-subtext {
  font-size: 9px;
  color: #a8a29e;
  margin-top: 4px;
  white-space: nowrap;
}
.btn-expand-brands {
  width: 100%;
  background: #1a1729;
  border: 1px solid #3e3759;
  color: #e2d9f3;
  padding: 11px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s;
  text-align: center;
}
.btn-expand-brands:hover {
  background: #25203b;
  border-color: #f59e0b;
}
.brand-list-footer-note {
  font-size: 10px;
  color: #78716c;
  text-align: center;
  line-height: 1.5;
  margin-top: 12px;
  padding: 0 4px;
}

@media (max-width: 440px) {
  .brand-card-item {
    flex-wrap: wrap;
    padding: 12px 10px;
  }
  .brand-action-box {
    width: 100%;
    margin-top: 8px;
    align-items: stretch;
  }
  .btn-brand-visit {
    width: 100%;
    justify-content: center;
  }
}
