:root {
  --bg-deep: #060613;
  --bg-shell: #0a091e;
  --card-bg: rgba(20, 18, 48, 0.82);
  --card-border: rgba(139, 92, 246, 0.32);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --primary: #7c3aed;
  --secondary: #a855f7;
  --accent-pink: #ec4899;
  --accent-cyan: #38bdf8;
  --accent-gold: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --green: #10b981;
  --red: #ef4444;
  --violet: #8b5cf6;
  --gold: #fbbf24;
}

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

body {
  background: radial-gradient(circle at 50% 0%, #1d1542 0%, #09081a 60%, #050510 100%);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Mobile-First Native App Shell (centered on Desktop) */
.mobile-shell {
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 15% 8%, rgba(139, 92, 246, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 88% 22%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, #0d0a24 0%, #080718 100%);
  position: relative;
  padding-bottom: 96px;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.85);
  border-left: 1px solid rgba(168, 85, 247, 0.14);
  border-right: 1px solid rgba(168, 85, 247, 0.14);
}

/* Top App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 9, 30, 0.86);
  backdrop-filter: blur(18px);
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: #a5b4fc;
  opacity: 0.85;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(24, 20, 56, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s, border-color 0.2s;
}

.icon-btn:active {
  transform: scale(0.94);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 8px #ff4d4f;
}

/* Main Content Area */
.app-content {
  padding: 6px 14px 18px;
}

/* ============================================================================
   HERO BANNER CARD (Matches Uploaded Reference Design)
   ============================================================================ */
.hero-slider-wrap {
  margin-bottom: 14px;
}

.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(168, 85, 247, 0.48);
  box-shadow:
    0 12px 34px rgba(10, 6, 30, 0.8),
    0 0 24px rgba(139, 92, 246, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.banner-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-banner-card {
  min-width: 100%;
  min-height: 132px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at 78% 45%, rgba(192, 132, 252, 0.32) 0%, transparent 52%),
    linear-gradient(135deg, #17123a 0%, #2a145a 48%, #150d33 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-glow-orb {
  position: absolute;
  right: -25px;
  top: -25px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.hero-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.42);
  padding: 2px 9px 2px 5px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f8fafc;
  margin-bottom: 6px;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.hero-verified-pill .check-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: 0.67rem;
  color: #cbd5e1;
  line-height: 1.3;
  margin-bottom: 9px;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #9333ea 0%, #6366f1 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 254, 0.55);
  box-shadow: 0 5px 14px rgba(147, 51, 234, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.15s;
}

.hero-play-btn:active {
  transform: scale(0.96);
}

.hero-art {
  position: relative;
  z-index: 2;
  width: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crown-pedestal-svg {
  width: 100%;
  max-width: 122px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.banner-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: all 0.25s;
}

.banner-dot.active {
  width: 22px;
  height: 6px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

/* ============================================================================
   3-COLUMN STATS ROW
   ============================================================================ */
.home-stats-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.home-stat-pill {
  background: linear-gradient(145deg, rgba(24, 20, 54, 0.9), rgba(14, 12, 34, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 15px;
  padding: 10px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-stat-pill.green-glow {
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(52, 211, 153, 0.15);
}

.stat-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.stat-icon-wrap.purple {
  color: #a855f7;
}

.stat-icon-wrap.green {
  color: #10b981;
}

.stat-icon-wrap.orange {
  color: #f59e0b;
}

.stat-copy {
  min-width: 0;
}

.stat-lbl {
  font-size: 0.56rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
  white-space: nowrap;
}

.stat-val.green-text {
  color: #34d399;
}

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

.gaming-sec-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 7px;
}

.fire-emoji {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
}

.view-all-link {
  font-size: 0.78rem;
  color: #c084fc !important;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================================
   5 LUXURY GAMING PLATFORM CARDS (Matches Uploaded Reference Design)
   ============================================================================ */
.platform-cards-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.luxury-plat-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background:
    radial-gradient(circle at 68% 50%, rgba(147, 51, 234, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, rgba(25, 20, 58, 0.95) 0%, rgba(16, 13, 40, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.42);
  border-radius: 18px;
  padding: 11px 12px;
  text-decoration: none;
  color: #ffffff;
  box-shadow:
    0 8px 24px rgba(4, 3, 14, 0.65),
    0 0 15px rgba(139, 92, 246, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.luxury-plat-card:hover,
.luxury-plat-card:active {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.78);
  box-shadow:
    0 12px 28px rgba(10, 6, 30, 0.8),
    0 0 22px rgba(168, 85, 247, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* Left Platform Icon Box */
.lux-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #080b18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lux-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.fallback-logo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-align: center;
  line-height: 1.05;
}

.daman-fb {
  background: radial-gradient(circle at 30% 25%, #1e293b, #060913);
  color: #fff;
  font-size: 0.8rem;
}

.okwin-fb {
  background: linear-gradient(145deg, #ff8a00 0%, #e11d48 100%);
  color: #fff;
}
.okwin-fb span { font-size: 1.02rem; letter-spacing: 0.02em; }
.okwin-fb small { font-size: 0.72rem; letter-spacing: 0.05em; }

.yaarwin-fb {
  background: linear-gradient(145deg, #6366f1 0%, #2563eb 100%);
  color: #67e8f9;
}
.yaarwin-fb span { font-size: 0.86rem; color: #e0f2fe; }
.yaarwin-fb small { font-size: 0.76rem; color: #38bdf8; }

.jalwa-fb {
  background: radial-gradient(circle at 30% 25%, #172554, #060914);
  color: #fff;
  font-size: 0.78rem;
}
.jalwa-fb small { font-size: 0.58rem; color: #38bdf8; }

.tg-fb {
  background: radial-gradient(circle at 30% 25%, #1e1b4b, #050711);
}
.tg-fb span {
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 900;
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 60%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Middle Platform Info */
.lux-plat-info {
  flex: 1;
  min-width: 0;
}

.lux-plat-info h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lux-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.lux-status-badge.verified,
.lux-status-badge.connected {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.42);
}

.lux-status-badge.connected .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.lux-status-badge.demo {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.42);
}

.lux-subtext {
  font-size: 0.66rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lux-subtext.uid-active {
  color: #38bdf8;
  font-weight: 700;
}

/* Center-Right Decorative 3D Artwork Slot */
.lux-art-slot {
  width: 58px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-art-svg {
  width: 58px;
  height: 48px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}

/* Right Predict Button */
.lux-action {
  flex-shrink: 0;
}

.lux-predict-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(216, 180, 254, 0.45);
  box-shadow:
    0 5px 15px rgba(124, 58, 237, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

/* ============================================================================
   BOTTOM ANDROID NAVIGATION BAR (Matches Uploaded Reference Design)
   ============================================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(20, 16, 48, 0.96) 0%, rgba(10, 8, 28, 0.99) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 22px 22px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 8px 10px;
  z-index: 50;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 7px 4px;
  border-radius: 14px;
  position: relative;
  transition: all 0.2s ease;
}

.nav-item i {
  font-size: 1.15rem;
}

.nav-item.active {
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.42) 0%, rgba(99, 102, 241, 0.16) 100%);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: #e879f9;
  box-shadow: 0 0 8px #e879f9;
}

/* ============================================================================
   NATIVE ANDROID APP AUTH SCREEN STYLES (LOGIN & REGISTER)
   ============================================================================ */
.auth-app-shell {
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 20% 5%, rgba(168, 85, 247, 0.3) 0%, transparent 42%),
    radial-gradient(circle at 85% 18%, rgba(99, 102, 241, 0.24) 0%, transparent 45%),
    linear-gradient(180deg, #0e0a26 0%, #070616 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 14px 15px 24px;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.85);
  border-left: 1px solid rgba(168, 85, 247, 0.16);
  border-right: 1px solid rgba(168, 85, 247, 0.16);
}

.auth-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.auth-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 15px 16px;
  background:
    radial-gradient(circle at 82% 45%, rgba(192, 132, 252, 0.36) 0%, transparent 54%),
    linear-gradient(135deg, #19133e 0%, #2d145e 52%, #130b2e 100%);
  border: 1px solid rgba(168, 85, 247, 0.52);
  box-shadow:
    0 12px 32px rgba(6, 4, 20, 0.8),
    0 0 24px rgba(139, 92, 246, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-mini-logos {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.auth-mini-pill {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(9, 7, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

/* Segmented App Tab Switcher (Sign In / Sign Up) */
.auth-tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(11, 9, 28, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 16px;
  padding: 5px;
  margin-bottom: 14px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.auth-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  color: #94a3b8;
  position: relative;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.45) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.auth-tab-btn.active::before {
  content: '';
  position: absolute;
  top: -1px;
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: #e879f9;
  box-shadow: 0 0 8px #e879f9;
}

/* Native App Input Group with Icon Pod */
.app-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  background: rgba(9, 7, 25, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 15px;
  padding: 4px 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-input-wrap:focus-within {
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.28);
}

.app-input-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.app-input-field {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 11px;
  width: 100%;
}

.app-input-field::placeholder {
  color: #64748b;
  font-weight: 500;
}

.app-eye-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.app-submit-pill {
  width: 100%;
  background: linear-gradient(90deg, #9333ea 0%, #6366f1 100%);
  color: #ffffff;
  border: 1px solid rgba(216, 180, 254, 0.55);
  border-radius: 15px;
  padding: 13px 18px;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 8px 22px rgba(147, 51, 234, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.38);
  transition: transform 0.15s;
}

.app-submit-pill:active {
  transform: scale(0.98);
}

.auth-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.auth-trust-item {
  background: rgba(16, 13, 38, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ============================================================================
   SHARED GLASS CARDS, BUTTONS, TABLES, MODALS & ADMIN
   ============================================================================ */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.platform-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(145deg, rgba(25, 20, 58, 0.9), rgba(15, 13, 38, 0.95));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.plat-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plat-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: #090d1a;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.status-pill.live {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.status-pill.demo {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseAnim 1.5s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.btn-primary {
  background: linear-gradient(135deg, #9333ea, #6366f1);
  color: #fff;
  border: 1px solid rgba(216, 180, 254, 0.4);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s;
}

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

.btn-sm {
  padding: 8px 13px;
  font-size: 0.76rem;
  border-radius: 10px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label, .form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: #08071a;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--secondary);
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.cat-BIG { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.45); }
.cat-SMALL { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.45); }
.cat-GREEN { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.45); }
.cat-RED { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.45); }
.cat-Win { background: rgba(16, 185, 129, 0.22); color: #34d399; border: 1px solid #10b981; }
.cat-Loss { background: rgba(239, 68, 68, 0.22); color: #f87171; border: 1px solid #ef4444; }
.cat-Active, .cat-Waiting { background: rgba(139, 92, 246, 0.22); color: #d8b4fe; border: 1px solid #8b5cf6; }

.num-ball {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
}

.ball-green { background: linear-gradient(135deg, #10b981, #059669); }
.ball-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.ball-violet-red { background: linear-gradient(135deg, #ef4444 50%, #8b5cf6 50%); }
.ball-violet-green { background: linear-gradient(135deg, #10b981 50%, #8b5cf6 50%); }

.stats-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-tile {
  background: rgba(10, 9, 28, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
}

.stat-tile .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-tile .val {
  font-size: 1.08rem;
  font-weight: 800;
  margin-top: 4px;
  color: #fff;
}

.stat-tile .val.null-val {
  color: #64748b;
  font-family: monospace;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 14, 0.84);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.modal-box {
  width: 100%;
  max-width: 420px;
  background: #131033;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* Admin Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #09081c;
  border-right: 1px solid var(--card-border);
  padding: 22px 14px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.admin-nav-link.active, .admin-nav-link:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
}

.admin-main {
  padding: 26px;
  overflow-x: auto;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

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

.section-title {
  font-size: 0.96rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-success { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-warning { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-danger { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-info { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table th, .data-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table th {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mobile-First Responsive Prediction Results Table & B/S AI Badges */
.results-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.results-mobile-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.results-mobile-table th,
.results-mobile-table td {
  padding: 9px 6px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.14);
  vertical-align: middle;
  white-space: nowrap;
}

.results-mobile-table th {
  color: #a5b4fc;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(11, 9, 28, 0.55);
}

.results-mobile-table th:first-child,
.results-mobile-table td:first-child {
  text-align: left;
  padding-left: 8px;
}

.results-mobile-table th:nth-child(2),
.results-mobile-table td:nth-child(2),
.results-mobile-table th:nth-child(3),
.results-mobile-table td:nth-child(3) {
  text-align: center;
}

.results-mobile-table th:last-child,
.results-mobile-table td:last-child {
  text-align: right;
  padding-right: 8px;
}

.period-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.ai-selected-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.ai-bs-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.ai-bs-B {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.18));
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.22);
}

.ai-bs-S {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(14, 165, 233, 0.18));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.22);
}

.ai-hit-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 999px;
  line-height: 1;
}

.ai-hit-pill.win {
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.42);
}

.ai-hit-pill.miss {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.36);
}

@media (max-width: 400px) {
  .app-header {
    padding: 12px 12px 10px;
  }
  .app-content {
    padding: 6px 11px 18px;
  }
  .home-stats-3col {
    gap: 6px;
  }
  .home-stat-pill {
    padding: 8px 7px;
    gap: 6px;
  }
  .stat-icon-wrap {
    width: 24px;
    height: 24px;
    font-size: 0.82rem;
  }
  .stat-lbl {
    font-size: 0.52rem;
  }
  .stat-val {
    font-size: 0.72rem;
  }
  .luxury-plat-card {
    padding: 10px;
    gap: 8px;
  }
  .lux-logo-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  .lux-art-slot {
    width: 44px;
    height: 40px;
  }
  .mini-art-svg {
    width: 44px;
    height: 38px;
  }
  .lux-predict-btn {
    padding: 8px 11px;
    font-size: 0.72rem;
  }
  .results-mobile-table th,
  .results-mobile-table td {
    padding: 8px 4px;
  }
  .period-cell {
    font-size: 0.66rem;
  }
  .results-mobile-table .cat-badge {
    padding: 4px 8px;
    font-size: 0.66rem;
  }
  .ai-bs-badge {
    width: 24px;
    height: 24px;
    font-size: 0.74rem;
    border-radius: 7px;
  }
  .ai-hit-pill {
    font-size: 0.56rem;
    padding: 2px 5px;
  }
}

@media (max-width: 350px) {
  .lux-art-slot {
    display: none;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding: 14px 12px;
  }
  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .admin-nav-link {
    margin-bottom: 0;
    padding: 8px 11px;
    font-size: 0.78rem;
  }
  .admin-main {
    padding: 14px 12px;
  }
}
