/* ==========================================================================
   REAL MATKA KING - PREMIUM CASINO DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- Import Modern Sans Fonts --- */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* ==========================================
     LIGHT THEME VARIABLES (DEFAULT)
     ========================================== */
  --bg-primary: #f8fafc;
  /* Soft cool gray background */
  --bg-secondary: #ffffff;
  /* Pure white for containers */
  --bg-tertiary: #f1f5f9;
  /* Slate-100 for subtle accents */

  --accent-gold-light: #fef08a;
  /* Soft gold */
  --accent-gold: #eab308;
  /* Primary premium gold */
  --accent-gold-dark: #ca8a04;
  /* Rich amber gold */
  --accent-gold-gradient: linear-gradient(135deg, #FFB300 0%, #eab308 50%, #ca8a04 100%);

  --accent-green: #10b981;
  /* Emerald success */
  --accent-red: #ef4444;
  /* Alert red */
  --accent-blue: #3b82f6;
  /* Clean info blue */

  --text-primary: #0f172a;
  /* Deep slate-900 for absolute contrast */
  --text-muted: #475569;
  /* Slate-600 for supporting labels */
  --border-glass: rgba(15, 23, 42, 0.08);
  /* Dark slate delicate glass borders */

  --shadow-gold: 0 4px 20px rgba(234, 179, 8, 0.15);
  --shadow-neon: 0 4px 15px rgba(16, 185, 129, 0.2);

  /* Layout specific helper variables */
  --gradient-body: radial-gradient(circle at 50% 10%, #f1f5f9 0%, #f8fafc 70%);
  --header-bg: rgba(248, 250, 252, 0.85);

  --glass-card-bg: rgba(255, 255, 255, 0.8);
  --glass-card-border: rgba(15, 23, 42, 0.06);
  --glass-card-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);

  --market-card-bg: rgba(255, 255, 255, 0.95);
  --founder-card-bg: rgba(15, 23, 42, 0.02);
  --founder-card-border: rgba(15, 23, 42, 0.04);
  --founder-card-bg-hover: rgba(15, 23, 42, 0.04);

  --ticker-bg: rgba(234, 179, 8, 0.08);
  --ticker-border: rgba(234, 179, 8, 0.12);
  --ticker-text-color: #854d0e;

  --premium-gold-bg: linear-gradient(135deg, #ffffff 0%, #fff9eb 100%);
  --premium-green-bg: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  --premium-border: rgba(234, 179, 8, 0.2);
  --nav-bg: rgba(248, 250, 252, 0.9);
  --toast-bg: rgba(255, 255, 255, 0.95);

  --safe-bottom-nav: 68px;
}

/* ==========================================
   DARK THEME VARIABLE OVERRIDES
   ========================================== */
html[data-theme="dark"] {
  --bg-primary: #09090b;
  /* Deep space obsidian */
  --bg-secondary: #121217;
  /* Backplate charcoal */
  --bg-tertiary: #181822;
  /* Elevated obsidian panel */

  --accent-gold-light: #FFE082;
  /* Glowing champagne */
  --accent-gold: #FFB300;
  /* Rich royal gold */
  --accent-gold-dark: #FF8F00;
  /* Deep brass */
  --accent-gold-gradient: linear-gradient(135deg, #FFE082 0%, #FFB300 50%, #FF8F00 100%);

  --text-primary: #f4f4f5;
  /* Titanium white */
  --text-muted: #a1a1aa;
  /* Muted ash gray */
  --border-glass: rgba(255, 255, 255, 0.06);

  --shadow-gold: 0 0 25px rgba(255, 179, 0, 0.35);
  --shadow-neon: 0 0 15px rgba(16, 185, 129, 0.4);

  --gradient-body: radial-gradient(circle at 50% 10%, #151520 0%, #09090b 70%);
  --header-bg: rgba(9, 9, 11, 0.85);

  --glass-card-bg: rgba(24, 24, 30, 0.7);
  --glass-card-border: rgba(255, 255, 255, 0.05);
  --glass-card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

  --market-card-bg: rgba(20, 20, 26, 0.7);
  --founder-card-bg: rgba(255, 255, 255, 0.02);
  --founder-card-border: rgba(255, 255, 255, 0.04);
  --founder-card-bg-hover: rgba(255, 255, 255, 0.04);

  --ticker-bg: #ffaa0015;
  --ticker-border: rgba(255, 170, 0, 0.15);
  --ticker-text-color: #FFE082;

  --premium-gold-bg: linear-gradient(135deg, #1f1402 0%, #09090b 100%);
  --premium-green-bg: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(20, 20, 26, 0.7) 70%);
  --premium-border: rgba(255, 179, 0, 0.2);
  --nav-bg: rgba(18, 18, 24, 0.9);
  --toast-bg: rgba(18, 18, 24, 0.95);
}

/* --- Document Defaults & Smooth scroll --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.5;
  background: var(--gradient-body);
  transition: background 0.3s ease;
}

/* --- Floating Particle Canvas --- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

button,
input,
select {
  font-family: inherit;
  outline: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.main-layout {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  padding-bottom: calc(var(--safe-bottom-nav) + 2rem);
}

/* ==========================================================================
   HEADER COMPONENT
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
}

/* Logo Brand */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo Brand Text Group */
.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.logo-title-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(255, 179, 0, 0.2));
}

.logo-subtitle-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.crown-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(255, 179, 0, 0.6));
}

.logo-text {
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.accent-text {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Premium Header Action Buttons */
.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.btn-header-action.download {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.btn-header-action.download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
}

.btn-header-action.play-btn {
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.25);
}

.btn-header-action.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 179, 0, 0.5);
}

.btn-header-icon {
  font-size: 1rem;
}

/* Display helpers for header responsive actions */
.desktop-only {
  display: inline;
}

.mobile-only {
  display: none;
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:hover {
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  position: absolute;
}

/* Default state (Dark Theme active by default) */
.theme-toggle-btn .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Light Theme active */
html[data-theme="light"] .theme-toggle-btn .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

html[data-theme="light"] .theme-toggle-btn .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Header Utilities */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.live-counter-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
}

.blinking-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.blinking-dot.green {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-blinker 1.5s infinite;
}

.blinking-dot.red {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-blinker 1.5s infinite;
}

/* Simulated Wallet */
.wallet-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid rgba(255, 179, 0, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 700;
  color: var(--accent-gold-light);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wallet-badge:hover {
  background: rgba(255, 179, 0, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 179, 0, 0.2);
}

.wallet-amount {
  font-size: 0.9rem;
  font-family: var(--font-display);
}

.plus-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.icon-svg {
  width: 20px;
  height: 20px;
}

.icon-svg.gold-glow {
  filter: drop-shadow(0 0 5px var(--accent-gold));
}

/* Header Buttons */
.icon-btn-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-btn-header:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-dot.red-pulse {
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-blinker 1s infinite alternate;
}

.profile-avatar-btn {
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--accent-gold);
}

.header-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Tickers --- */
.ticker-ribbon {
  display: flex;
  background: var(--ticker-bg);
  border-top: 1px solid var(--ticker-border);
  border-bottom: 1px solid var(--ticker-border);
  overflow: hidden;
  height: 32px;
  align-items: center;
}

.ticker-title {
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0 0.8rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ticker-text-color);
  padding-left: 100%;
  animation: scroll-ticker 25s linear infinite;
}

/* Running Banners Result Strip */
.results-banner-strip {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
  height: 38px;
  align-items: center;
  overflow: hidden;
}

.live-flash-label {
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0 0.8rem;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.4);
  z-index: 10;
  animation: pulse-red-bg 2s infinite alternate;
}

.running-banners-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  scrollbar-width: none;
  /* Hide scrollbar for clean strip look */
}

.running-banners-container::-webkit-scrollbar {
  display: none;
}

.banner-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.banner-mname {
  color: var(--text-muted);
}

.banner-res {
  color: var(--accent-gold);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ==========================================================================
   GLASSMORPHISM CARDS
   ========================================================================== */

.glass-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-card-border);
  box-shadow: var(--glass-card-shadow);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  border-color: rgba(255, 179, 0, 0.15);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  text-align: center;
  padding: 3rem 1rem 3rem 1rem;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 179, 0, 0.08) 0%, transparent 100%);
}

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

.hero-badge {
  display: inline-block;
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid rgba(255, 179, 0, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.gold-gradient-text {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}

.btn-icon {
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(255, 179, 0, 0.55);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 179, 0, 0.3);
  transform: translateY(-3px);
}

.btn-accent {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  box-shadow: var(--shadow-neon);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

/* ==========================================================================
   WEEKLY JACKPOT CARD
   ========================================================================== */

.jackpot-banner-card {
  position: relative;
  background: var(--premium-gold-bg);
  border: 1.5px solid var(--premium-border);
  border-radius: 20px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(255, 179, 0, 0.1);
}

.jackpot-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 179, 0, 0.05), transparent 40%, transparent);
  animation: rotate-conic 10s linear infinite;
  z-index: 0;
}

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

.jackpot-header-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.jackpot-amount-glow {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  background: linear-gradient(to bottom, #fff 0%, #FFD54F 40%, #FFB300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 179, 0, 0.45));
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

.jackpot-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
}

.compact-jackpot-btn {
  font-size: 0.8rem;
  padding: 0.6rem 1.3rem;
}

/* ==========================================================================
   QUICK APP STATS
   ========================================================================== */

.quick-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  border-radius: 12px;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.stat-number.text-green {
  color: var(--accent-green);
}

.stat-number.text-gold {
  color: var(--accent-gold);
}

.stat-number.text-blue {
  color: var(--accent-blue);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   GAME GRID & CARDS
   ========================================================================== */

.game-grid-section {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gold-indicator {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent-gold);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-gold);
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* Premium Market Card - Request UI Style */
.market-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.market-card-header {
  background: #2d1414; /* Dark Reddish for header as per image */
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #444;
}

.market-card-body {
  padding: 15px;
  text-align: center;
}

.status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ff4444; /* Default closed */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.status-pill.live {
  color: #00ff88;
}

.market-name-display {
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  text-transform: uppercase;
  margin-top: 5px;
}

.res-time-lbl {
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 15px;
}

.dual-result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.res-box {
  background: #262626;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #333;
}

.res-box-lbl {
  font-size: 0.65rem;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.res-box-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ff4444; /* Last result color */
}

.res-box-val.now {
  color: #00ff88; /* Now result color */
}

.card-footer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #444;
}

.card-btn {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s;
}

.card-btn.play {
  background: linear-gradient(to bottom, #ffcc33, #d4a017);
  color: #000;
}

.card-btn:hover {
  filter: brightness(1.2);
}

/* Calendar Icon Theme Fix */
.search-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1); /* Default white for dark */
}

html[data-theme="light"] .search-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0); /* Black for light */
}


/* Results Display */
.market-results-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 0.6rem;
  margin-bottom: 1rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 0.2rem 0;
}

.result-row:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.res-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.res-val.highlight {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.85rem;
}

/* Countdown & Bottom Actions */
.countdown-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

.timer-wrap-card {
  display: flex;
  flex-direction: column;
}

.timer-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.timer-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}

/* Play/Result Grid Actions */
.card-actions-grid {
  display: flex;
  gap: 0.5rem;
}

.btn-card-action {
  font-size: 0.7rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.btn-card-action.play {
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.25);
  transition: all 0.3s ease;
}

.btn-card-action.play:hover {
  box-shadow: 0 0 15px rgba(255, 179, 0, 0.5);
  transform: scale(1.03);
}

.btn-card-action.chart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.btn-card-action.chart:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 179, 0, 0.2);
}

.btn-card-action:disabled {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
  border: 1px solid transparent !important;
}

/* ==========================================================================
   LUCKY SPIN WHEEL
   ========================================================================== */

.wheel-section {
  margin-bottom: 3rem;
}

.wheel-grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.casino-badge {
  display: inline-block;
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid rgba(255, 179, 0, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

.wheel-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.wheel-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.lucky-rules-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rule-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Physical Wheel Elements */
.wheel-visual-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.wheel-pointer {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-gold);
  font-size: 1.8rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  z-index: 10;
}

.royal-wheel-outer {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 10px;
  background: radial-gradient(circle, #332200 0%, #110d05 100%);
  box-shadow: 0 0 35px rgba(255, 179, 0, 0.25), inset 0 0 15px rgba(0, 0, 0, 0.8);
  border: 3px solid var(--accent-gold);
}

.royal-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-primary);
  transition: transform 5s cubic-bezier(0.15, 0.85, 0.25, 1);
  /* Royal deceleration */
}

.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  /* 8 segments: 360/8 = 45deg */
  transform: rotate(calc(45deg * var(--i))) skewY(-45deg);
  background-color: var(--bg);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  left: 0;
  top: 0;
}

.wheel-segment span {
  position: absolute;
  left: 30px;
  top: 40px;
  transform: skewY(45deg) rotate(22.5deg);
  display: block;
  width: 80px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.wheel-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--accent-gold-gradient);
  border: 3.5px solid var(--bg-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 8;
}

/* ==========================================================================
   LIVE WINNERS SECTION
   ========================================================================== */

.live-winners-section {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  margin-bottom: 2rem;
  overflow: hidden;
  gap: 1.2rem;
}

.winners-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-right: 1px solid var(--border-glass);
  padding-right: 1.2rem;
}

.winners-header h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  letter-spacing: 0.05em;
}

.live-indicator-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-blinker 1s infinite alternate;
}

.winners-scroller-wrap {
  width: 100%;
  overflow: hidden;
}

.winners-scroller {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  animation: scroll-winners 35s linear infinite;
}

.winner-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}

.winner-name {
  color: var(--text-muted);
}

.winner-amt {
  color: var(--accent-green);
  font-weight: 700;
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */

.why-choose-us {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  text-align: left;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  box-shadow: 0 5px 15px rgba(255, 179, 0, 0.2);
}

.feature-svg {
  width: 22px;
  height: 22px;
  color: var(--bg-primary);
}

.gold-gradient-bg {
  background: var(--accent-gold-gradient);
}

.feature-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   APK DOWNLOAD CARD
   ========================================================================== */

.app-download-banner {
  background: var(--premium-green-bg);
  margin-bottom: 3rem;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.download-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.apk-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.download-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.download-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 580px;
}

.download-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-svg-icon {
  margin-right: 0.3rem;
}

/* CSS Mobile Frame Simulator (Premium UX) */
.mobile-mockup-frame {
  position: relative;
  width: 170px;
  height: 270px;
  background: #000;
  border-radius: 20px;
  border: 4px solid var(--bg-tertiary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mockup-header {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.mockup-screen {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mockup-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: 6px;
  font-size: 0.45rem;
  font-weight: 600;
  color: #fff;
}

.mockup-wheel {
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  text-align: center;
  font-size: 0.45rem;
  font-weight: 800;
  padding: 6px;
  border-radius: 6px;
  margin-top: auto;
}

/* ==========================================================================
   CHART SEARCH & ARCHIVE
   ========================================================================== */

.search-box-card {
  margin-bottom: 1.5rem;
  border-color: rgba(255, 255, 255, 0.04);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: flex-end;
}

.search-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.search-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.search-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.1);
}

/* Styling custom options drop */
select.search-input option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.search-button-group {
  display: flex;
  gap: 0.5rem;
}

.search-submit-btn {
  flex-grow: 1;
}

/* Premium Result Table */
.table-container {
  overflow-x: auto;
  border-color: rgba(255, 255, 255, 0.04);
  padding: 0.5rem;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.result-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-gold-light);
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--border-glass);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.result-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-glass);
  font-weight: 500;
  color: var(--text-primary);
}

.result-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-status-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.table-status-pill.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.table-status-pill.red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */

.app-footer {
  margin-top: 5rem;
  z-index: 10;
  position: relative;
}

/* Customer Support 24x7 Banner */
.contact-admin-card {
  border: 1.5px solid var(--premium-border);
  margin-bottom: 3rem;
  background: var(--premium-gold-bg);
  text-align: center;
}

.contact-badge {
  display: inline-block;
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid rgba(255, 179, 0, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.contact-admin-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-admin-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  text-align: left;
}

.contact-icon {
  font-size: 1.4rem;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.contact-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.copy-btn {
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid rgba(255, 179, 0, 0.25);
  color: var(--accent-gold);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
}

.whatsapp-chat-btn {
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
}

/* Bottom Footer Links */
.footer-links-wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-glass);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.copyright-text {
  font-size: 0.68rem !important;
  margin-top: 1rem;
}

.footer-nav-groups {
  display: flex;
  gap: 3rem;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nav-group h6 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-group a,
.link-styled-btn {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.nav-group a:hover,
.link-styled-btn:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   APP BOTTOM STICKY NAVIGATION BAR
   ========================================================================== */

.bottom-sticky-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--safe-bottom-nav);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 99;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  gap: 0.25rem;
  width: 25%;
  height: 100%;
  transition: all 0.3s ease;
}

.nav-tab span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-svg {
  width: 22px;
  height: 22px;
}

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

/* Special Center Play Button Navigation Tab */
.nav-circle-gold {
  position: absolute;
  bottom: 12px;
  width: 54px;
  height: 54px;
  background: var(--accent-gold-gradient);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 102;
}

.nav-circle-gold:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 25px rgba(255, 179, 0, 0.7);
}

.text-dark {
  color: var(--bg-primary) !important;
}

.nav-play-label {
  margin-top: 32px;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--accent-gold);
  animation: pulse-grow 2s infinite;
  pointer-events: none;
}

/* ==========================================================================
   MODAL COMPONENT & DRAWER OVERLAYS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 179, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--accent-red);
}

/* Modal Content Structure */
.modal-header-section {
  padding: 1.8rem;
  border-bottom: 1px solid var(--border-glass);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 0%, transparent 100%);
  position: relative;
}

.modal-crown {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px var(--accent-gold));
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-timing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.68rem;
  color: var(--accent-green);
  font-weight: 700;
  margin-top: 0.5rem;
}

.modal-body-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem 1.8rem;
}

.modal-footer-sticky {
  padding: 1.2rem 1.8rem;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* --- Betting Modal Specifics --- */
.modal-input-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.bid-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.bid-type-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  line-height: 1.3;
}

.bid-type-btn.active {
  background: rgba(255, 179, 0, 0.08);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.payout-mult {
  font-size: 0.6rem;
  color: var(--accent-green);
  font-weight: 800;
}

.betting-forms-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.bet-entry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bet-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bet-styled-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  width: 100%;
}

.bet-styled-input:focus {
  border-color: var(--accent-gold);
}

/* Quick Chips Container */
.chips-container-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.quick-chips-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.chip-btn {
  background: radial-gradient(circle, #25252f 0%, #15151e 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chip-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.3);
}

.add-to-cart-btn {
  width: 100%;
  margin-top: 1rem;
  font-size: 0.78rem;
  padding: 0.6rem;
}

/* Cart Slip Items styling */
.slip-cart-container {
  border-top: 1px dashed var(--border-glass);
  padding-top: 1rem;
}

.cart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.cart-header-row h6 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.clear-cart-btn {
  background: none;
  border: none;
  color: var(--accent-red);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 140px;
  overflow-y: auto;
}

.empty-cart-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0;
}

.cart-slip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-cat-badge {
  background: rgba(255, 179, 0, 0.08);
  border: 1.5px solid rgba(255, 179, 0, 0.2);
  color: var(--accent-gold-light);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.item-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
}

.item-amt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-gold);
}

.item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}

.item-remove:hover {
  color: var(--accent-red);
}

/* Modal Ticket Footer */
.total-ticket-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.total-amount-glow {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255, 179, 0, 0.3);
}

.play-submit-btn {
  width: 100%;
  padding: 0.85rem;
}

/* --- Wallet Modal View Panel specifics --- */
.wallet-modal-card {
  max-width: 440px;
}

.wallet-huge-balance {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--accent-gold);
  text-align: center;
  margin-top: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 179, 0, 0.3));
}

.wallet-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-tertiary);
}

.wallet-tab-btn {
  width: 50%;
  padding: 0.9rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  text-align: center;
}

.wallet-tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.01);
}

.wallet-body {
  padding: 1.5rem;
}

.pane-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.deposit-quick-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  margin-bottom: 1.2rem;
}

.quick-deposit-chip {
  flex-grow: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.quick-deposit-chip:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 179, 0, 0.05);
}

.qr-code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--border-glass);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.mock-qr {
  background: #fff;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
}

.qr-svg {
  display: block;
}

.qr-svg path {
  fill: #09090b;
}

.qr-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

.submit-deposit-action,
.submit-withdraw-action {
  width: 100%;
  padding: 0.85rem;
}

.withdraw-warning-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.7rem;
  color: var(--accent-red);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

/* --- Profile drawer specifics --- */
.profile-large-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  display: block;
  margin: 0 auto 0.6rem auto;
}

.profile-username {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

.history-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
  max-height: 250px;
  overflow-y: auto;
}

.profile-modal-card h6 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.history-separator {
  height: 1.5rem;
}

.bid-history-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.bid-hist-row {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
}

.bh-mname {
  font-weight: 700;
  color: var(--text-primary);
}

.bh-cat {
  color: var(--text-muted);
}

.bh-points {
  color: var(--accent-gold);
  font-weight: 700;
}

.bh-num {
  font-weight: 800;
  color: var(--text-primary);
}

.bh-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.bh-status {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.bh-status.pending {
  color: var(--accent-blue);
}

.bh-status.won {
  color: var(--accent-green);
}

.bh-status.lost {
  color: var(--accent-red);
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.72rem;
}

.green-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
}

.red-badge {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
}

.tx-meta {
  color: var(--text-primary);
  font-weight: 500;
}

.tx-time {
  color: var(--text-muted);
}

/* --- Legal / Policies Overlay --- */
.legal-modal-card {
  max-width: 580px;
}

.legal-content-box {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.legal-content-box h5 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.legal-content-box p {
  margin-bottom: 0.8rem;
}

/* --- APK Install Banner Card --- */
.pwa-prompt-card {
  max-width: 360px;
  text-align: center;
  padding: 1.8rem;
}

.pwa-logo-strip {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

.pwa-prompt-card h5 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.pwa-prompt-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.pwa-rating-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 1.2rem;
}

.pwa-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.confirm-pwa-install {
  width: 100%;
}

.close-pwa-btn {
  width: 100%;
}

/* ==========================================================================
   FLOATING WIDGETS & ALERTS
   ========================================================================== */

/* Floating WhatsApp Customer Support */
.floating-whatsapp-widget {
  position: fixed;
  bottom: calc(var(--safe-bottom-nav) + 1.2rem);
  right: 1.2rem;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 98;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp-widget:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
}

.wa-widget-svg {
  width: 28px;
  height: 28px;
}

.ping-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse-grow 2s infinite;
}

.wa-tooltip {
  position: absolute;
  right: 64px;
  background: #181822;
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp-widget:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Stackable Toast Container */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 320px;
  width: calc(100% - 2rem);
  pointer-events: none;
}

.toast-item {
  background: var(--toast-bg);
  border-left: 4px solid var(--accent-gold);
  border-top: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: auto;
  animation: slide-in-right 0.3s ease forwards;
}

.toast-item.success {
  border-left-color: var(--accent-green);
}

.toast-item.error {
  border-left-color: var(--accent-red);
}

.toast-icon {
  font-size: 1.1rem;
}

.toast-content {
  flex-grow: 1;
  line-height: 1.3;
}

.toast-item.fade-out {
  animation: fade-out-down 0.4s ease forwards;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes pulse-blinker {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes pulse-grow {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes pulse-red-bg {
  0% {
    background: #ef4444;
  }

  100% {
    background: #b91c1c;
  }
}

@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes scroll-winners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes rotate-conic {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes slide-in-right {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-out-down {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE FIRST COMPLIANCE)
   ========================================================================== */

/* --- Mobile / Tablet Port view (up to 768px) --- */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-block !important;
  }

  .logo-title-text {
    font-size: 1.05rem;
  }

  .logo-subtitle-text {
    font-size: 0.55rem;
    letter-spacing: 0.01em;
  }

  .btn-header-action {
    padding: 0.4rem 0.65rem;
    font-size: 0.7rem;
    gap: 0.25rem;
    border-radius: 6px;
  }

  .main-layout {
    padding: 1rem;
    padding-bottom: calc(var(--safe-bottom-nav) + 1.5rem);
  }

  .header-container {
    padding: 0.6rem 1rem;
  }

  .live-counter-badge {
    display: none;
    /* Hide live badge on very small header to prevent overlap */
  }

  .hero-section {
    padding: 2.2rem 0.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .jackpot-amount-glow {
    font-size: 2.5rem;
  }

  /* Quick stats compact grid */
  .quick-stats-row {
    gap: 0.6rem;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  /* Main market cards grid to force 2 columns on mobile screen widths */
  .market-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Wheel layout stacking */
  .wheel-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .wheel-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lucky-rules-box {
    align-items: center;
  }

  .royal-wheel-outer {
    width: 240px;
    height: 240px;
  }

  .wheel-segment span {
    left: 24px;
    top: 32px;
    width: 70px;
    font-size: 0.65rem;
  }

  /* APK Download Section banner */
  .download-flex {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
  }

  .apk-badge {
    margin: 0 auto 0.8rem auto;
  }

  .download-actions {
    justify-content: center;
  }

  .download-img-container {
    display: flex;
    justify-content: center;
  }

  /* Chart search grid stacking */
  .search-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  /* Contact admin layouts stacking */
  .contact-details-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .contact-item {
    padding: 0.6rem 0.8rem;
  }

  /* Bottom footer layout */
  .footer-links-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-nav-groups {
    gap: 2rem;
    justify-content: center;
    width: 100%;
  }

  /* Drawer layouts on mobile behave like sheets rising from bottom */
  .modal-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 85vh;
    border-bottom: none;
    transform: translateY(100%) !important;
    position: fixed;
    bottom: 0;
  }

  .modal-overlay.active .modal-card {
    transform: translateY(0) !important;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  /* Fast responsive chip scroll */
  .quick-chips-row {
    padding-bottom: 0.6rem;
  }
}

/* Large screens layout overrides */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   LOGO BRAND IMAGES STYLE OVERRIDES
   ========================================================================== */
.brand-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 179, 0, 0.4));
  transition: transform 0.3s ease;
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

.footer-brand-logo-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 179, 0, 0.3));
}

/* ==========================================================================
   MUMBAI LEGACY HISTORICAL SECTION STYLES
   ========================================================================== */
.legacy-section {
  position: relative;
  background: var(--premium-gold-bg);
  border: 1.5px solid var(--premium-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 179, 0, 0.05);
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.legacy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gold-gradient);
  opacity: 0.8;
}

.legacy-badge {
  display: inline-block;
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid rgba(255, 179, 0, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-title {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.legacy-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Ensure readability of legacy elements */
.legacy-section .legacy-title {
  color: var(--text-primary);
}

.legacy-section .legacy-subtitle {
  color: var(--text-muted);
}

.legacy-section .founder-card h4 {
  color: var(--text-primary);
}

.legacy-section .founder-desc {
  color: var(--text-muted);
}

.legacy-section .legacy-history-box {
  color: var(--text-primary);
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.founder-card {
  position: relative;
  background: var(--founder-card-bg);
  border: 1px solid var(--founder-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.founder-card:hover {
  background: var(--founder-card-bg-hover, rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 179, 0, 0.2);
  transform: translateY(-3px);
}

.founder-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 179, 0, 0.15);
  color: var(--accent-gold-light);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.founder-avatar-box {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.2) 0%, rgba(255, 179, 0, 0.05) 100%);
  border: 1px solid rgba(255, 179, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.founder-emoji {
  font-size: 1.8rem;
}

.founder-card h4 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.founder-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.founder-desc strong {
  color: var(--accent-gold-light);
}

.legacy-history-box {
  background: rgba(255, 179, 0, 0.04);
  border-left: 3px solid var(--accent-gold);
  border-radius: 4px;
  padding: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.legacy-history-box strong {
  color: var(--accent-gold);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM OVERRIDES
   ========================================================================== */
@media screen and (max-width: 480px) {
  .legacy-title {
    font-size: 1.4rem;
  }

  .founder-card {
    padding: 1.2rem;
  }
}