/**
 * iGaming Elite - Ultra-Luxury Design System v2.0
 * Engineered for maximum conversion, visual excellence & enterprise SEO.
 */

:root {
  --bg-deep: #070a12;
  --bg-body: #0b0f19;
  --bg-card: #111726;
  --bg-card-hover: #161f33;
  --bg-glass: rgba(11, 15, 25, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  
  --text-main: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Luxury Accents */
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --violet: #8b5cf6;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lux: 0 12px 35px -10px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(56, 189, 248, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Live Trust Ticker */
.top-trust-bar {
  background: #060911;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-chip strong {
  color: #fff;
}

/* Header & Glass Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.search-trigger-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-trigger-btn:hover {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(6, 182, 212, 0.12);
}

.kbd-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Grand Hero Banner */
.grand-hero {
  padding: 44px 0 32px;
  text-align: center;
}

.hero-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-main-title {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: #fff;
}

.hero-main-title span.glow-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Category Filter Tabs */
.filter-tabs-wrapper {
  background: rgba(11, 15, 25, 0.95);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 74px;
  z-index: 90;
  backdrop-filter: blur(16px);
  padding: 14px 0;
  margin-bottom: 34px;
}

.filter-tabs-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.category-pill:hover, .category-pill.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lux-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.lux-select:focus {
  border-color: var(--cyan);
}

/* ==========================================================================
   THE MASTER LUXURY APP CARD (Desktop & Mobile Optimized)
   ========================================================================== */
.apps-feed {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 60px;
}

.luxury-app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-lux);
}

.luxury-app-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.2);
}

/* Top Ribbons */
.card-ribbon {
  position: absolute;
  top: -12px;
  right: 30px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; box-shadow: 0 0 14px var(--gold-glow); }
.badge-emerald { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 0 14px var(--emerald-glow); }
.badge-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #000; box-shadow: 0 0 14px var(--cyan-glow); }
.badge-violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; box-shadow: 0 0 14px var(--violet-glow); }
.badge-red { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }

.card-main-grid {
  display: grid;
  grid-template-columns: 280px 1fr 220px 220px;
  gap: 28px;
  align-items: center;
}

/* Column 1: Identity */
.col-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rank-medal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 0.95rem;
}

.rank-medal.gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; box-shadow: 0 0 15px var(--gold-glow); }
.rank-medal.silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.rank-medal.bronze { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }
.rank-medal.normal { background: #1e293b; color: #94a3b8; border: 1px solid var(--border-subtle); }

.brand-logo-wrap {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-text h3.app-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.app-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.star-rating {
  color: #fbbf24;
  font-size: 0.92rem;
}

.rating-val {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.rating-total {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.verified-pill {
  font-size: 0.74rem;
  color: #34d399;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Column 2: Bonus & Promo */
.col-bonus {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.bonus-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.bonus-amount {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.promo-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: var(--transition);
}

.promo-box:hover {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.12);
}

.promo-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}

.promo-val {
  font-family: monospace;
  font-weight: 900;
  font-size: 1rem;
  color: #fbbf24;
  letter-spacing: 0.05em;
}

.promo-copy-btn {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
}

.card-bullets {
  list-style: none;
}

.card-bullets li {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-bullets .chk {
  color: #10b981;
  font-weight: 900;
}

/* Column 3: Specs & Payments */
.col-specs {
  font-size: 0.88rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.spec-lbl {
  color: var(--text-muted);
}

.spec-val {
  font-weight: 700;
  color: #fff;
}

.spec-val.emerald {
  color: #34d399;
}

.payments-wrapper {
  margin-top: 12px;
}

.payments-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.payments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Column 4: CTAs */
.col-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.lux-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.lux-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
  color: #fff;
}

.lux-btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.lux-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
  color: #000;
}

.lux-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.88rem;
  padding: 10px 18px;
  width: 100%;
}

.lux-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.compare-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & SMARTPHONES)
   ========================================================================== */
@media (max-width: 1100px) {
  .card-main-grid {
    grid-template-columns: 240px 1fr 200px;
  }
  .col-specs {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2.1rem;
  }
  .top-trust-bar {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .header-inner {
    height: 64px;
  }
  
  /* Mobile App Card Layout */
  .luxury-app-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  .card-ribbon {
    right: 16px;
    font-size: 0.68rem;
  }
  .card-main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .col-identity {
    gap: 14px;
  }
  .brand-logo-wrap {
    width: 68px;
    height: 68px;
  }
  .identity-text h3.app-name {
    font-size: 1.3rem;
  }
  .col-bonus {
    padding: 14px;
  }
  .bonus-amount {
    font-size: 1.15rem;
  }
  .promo-box {
    width: 100%;
    justify-content: space-between;
  }
  .lux-btn-primary {
    height: 48px;
    font-size: 1rem;
  }
  .site-footer {
    padding-bottom: 90px;
  }
}

/* Footer & Other Components */
.site-footer {
  margin-top: auto;
  background: #060911;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.responsible-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.age-badge {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Modals & Comparison Dock */
.comparison-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-full);
  padding: 12px 26px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-dock.active {
  transform: translateX(-50%) translateY(0);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #0b1120;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lux);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 9, 17, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  height: 64px;
  z-index: 890;
  align-items: center;
  justify-content: space-around;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--cyan);
}
