/* 
 * King Wins - Stylesheet
 * Brand Color: Rich Royal Gold (#D3A745)
 * Classic Light Theme Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --primary: #D3A745;
  --primary-hover: #B4964B;
  --primary-light: #faf6eb;
  --primary-glow: rgba(211, 167, 69, 0.12);
  --success: #10b981;
  --danger: #ef4444;
  
  /* Classic warm background palette */
  --bg-body: #FAF9F5;
  --bg-card: #ffffff;
  --bg-accent: #FAF8F2;
  
  --text-main: #181E29;
  --text-secondary: #475367;
  --text-muted: #8A98A8;
  --text-light: #ffffff;
  
  --border: rgba(211, 167, 69, 0.15);
  --border-strong: rgba(211, 167, 69, 0.25);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 16px -4px rgba(211, 167, 69, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 16px 24px -6px rgba(211, 167, 69, 0.08), 0 6px 12px -3px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 25px 50px -12px rgba(211, 167, 69, 0.12);
  --shadow-gold: 0 10px 25px -4px rgba(211, 167, 69, 0.3);
  
  /* Typography & Layout */
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --header-height: 80px;
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

button, .btn {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-bg {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* Classic Crown/Diamond Divider */
.classic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 24px;
}

.classic-divider::before, .classic-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.classic-diamond {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  transform: rotate(45deg);
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Button Component */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-gold);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(211, 167, 69, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-main);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(250, 249, 245, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.logo span {
  color: var(--primary);
}

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

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

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

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--text-main);
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-strong);
  padding: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav .nav-link {
  font-size: 17px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 90px;
  background: 
    radial-gradient(circle at 10% 20%, rgba(211, 167, 69, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(250, 249, 245, 1) 0%, rgba(245, 242, 232, 1) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-green 1.5s infinite;
}

.pill-divider {
  color: var(--text-muted);
}

.verified-tag {
  color: var(--primary);
}

.hero-title {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -1.2px;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, #D3A745 0%, #B4964B 50%, #947732 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  background-color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-hero-glow {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(211, 167, 69, 0.45);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-strong);
  padding-top: 28px;
}

.stat-item h3 {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.stat-item p {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow-aura {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 167, 69, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: pulse-aura 4s ease-in-out infinite alternate;
}

@keyframes pulse-aura {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.phone-mockup-wrapper {
  position: relative;
  width: 270px;
  height: 550px;
  background-color: #11151c;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 35px rgba(211, 167, 69, 0.2);
  border: 4px solid #28303d;
  z-index: 1;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--bg-body);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 32px;
  display: block;
}

.floating-badge {
  position: absolute;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  gap: 12px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.fb-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-icon-box.success {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.fb-icon-box.gold {
  background-color: var(--primary-light);
  color: var(--primary);
}

.floating-badge strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.floating-badge span {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.phone-header {
  height: 60px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: white;
}

.phone-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.mock-card {
  background-color: white;
  border-radius: 10px;
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-card-header {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
}

.mock-time {
  font-size: 11px;
  color: var(--text-secondary);
}

.mock-bottom-nav {
  height: 50px;
  background-color: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.mock-dot.active {
  background-color: var(--primary);
}

.floating-badge {
  position: absolute;
  background-color: white;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}

.fb-1 {
  top: 60px;
  left: -20px;
}

.fb-2 {
  bottom: 80px;
  right: -20px;
  animation-delay: 2s;
}

.floating-badge span {
  font-weight: 700;
  font-size: 14px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Results & Markets Section */
.markets-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 24px;
}

.markets-header-col {
  max-width: 650px;
}

.section-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-subtitle-left {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.markets-controls-col {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-wrapper svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box-wrapper input {
  font-family: var(--font-sans);
  padding: 11px 16px 11px 42px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-card);
  color: var(--text-main);
  outline: none;
  width: 260px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.search-box-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 167, 69, 0.2);
  width: 290px;
}

.results-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.results-header-row .section-title {
  margin-bottom: 0;
}

.refresh-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.refresh-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: white;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.btn-refresh:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(180deg);
}

.btn-refresh.spinning svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.result-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 22px;
  position: relative;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.result-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-market-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-main);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-status-running {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 50px;
  background-color: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-status-running::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.card-status-closed {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 50px;
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.card-timing-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg-accent);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.time-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.time-label {
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.time-label svg {
  color: var(--primary);
}

.time-val {
  font-weight: 700;
  color: var(--text-main);
}

.card-action-row {
  margin-top: 8px;
}

.btn-card-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background-color: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: all 0.2s ease;
}

.btn-card-play:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-card-closed {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background-color: #e5e7eb;
  color: #9ca3af;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid #d1d5db;
  cursor: not-allowed;
}

/* Game Rates Cards Grid Section */
.section-gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  border: 1px solid var(--border-strong);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-hover);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.rates-filter-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  margin-bottom: 32px;
}

.filter-chips-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-gold);
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.rate-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.rate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #eab308);
  opacity: 0.8;
}

.rate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.rate-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--primary-light);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}

.rate-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.rate-value-badge {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.rate-example {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-accent);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: 100%;
  margin-bottom: 16px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  background-color: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  border: 1px solid var(--border-strong);
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Download APK CTA Section */
.download-section {
  background: linear-gradient(135deg, #fdfbf7 0%, #f6f1e5 100%);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-strong);
}

.download-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.download-text-col h2 {
  font-size: 40px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.download-text-col p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-item p {
  margin-bottom: 0;
  font-size: 15.5px;
}

.download-btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.download-visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
  text-align: center;
}

.apk-icon {
  width: 80px;
  height: 80px;
  color: var(--primary);
  margin-bottom: 20px;
}

.download-visual-col h4 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
}

.download-visual-col p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Footer */
.footer {
  background-color: #0c1017;
  color: #8c96a3;
  padding: 80px 0 40px;
  font-size: 15px;
  border-top: 2px solid var(--primary);
}

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

.footer-logo {
  font-size: 26px;
  font-weight: 900;
  color: white;
  margin-bottom: 18px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-desc {
  max-width: 340px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-title {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1c222b;
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 12px;
  color: #535d6a;
  text-align: justify;
  margin-top: 32px;
  line-height: 1.7;
}

/* Live Winners Ticker Bar */
.winners-ticker-bar {
  margin-top: var(--header-height);
  background: #0f141d;
  border-bottom: 1px solid var(--border-strong);
  overflow: hidden;
  padding: 10px 0;
  color: white;
  font-size: 13.5px;
  position: relative;
  z-index: 90;
}

.ticker-content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-badge {
  background-color: rgba(211, 167, 69, 0.2);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.ticker-badge.success {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-color: #10b981;
}

.ticker-badge.gold {
  background-color: rgba(234, 179, 8, 0.25);
  color: #eab308;
  border-color: #eab308;
}

/* Interactive Return Calculator Widget */
.section-calc {
  background: linear-gradient(135deg, #111622 0%, #171d2b 100%);
  color: white;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.calc-card-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl), 0 20px 40px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 50px;
  align-items: center;
}

.calc-text-col h2 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 10px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.calc-text-col h2 span {
  color: var(--primary);
}

.calc-text-col p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.calc-input-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-symbol span {
  position: absolute;
  left: 16px;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
}

.input-with-symbol input {
  font-family: var(--font-sans);
  width: 100%;
  padding: 14px 16px 14px 38px;
  font-size: 18px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background-color: var(--bg-body);
  color: var(--text-main);
  outline: none;
  transition: all 0.25s ease;
}

.input-with-symbol input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 167, 69, 0.2);
}

.quick-bet-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.bet-chip {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-accent);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bet-chip:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.calc-input-group select {
  font-family: var(--font-sans);
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background-color: var(--bg-body);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.calc-input-group select:focus {
  border-color: var(--primary);
}

.calc-result-col {
  height: 100%;
  display: flex;
}

.result-display-box {
  width: 100%;
  background: linear-gradient(135deg, #11151e 0%, #1a2232 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.result-display-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #10b981);
}

.res-subtitle {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.res-amount {
  font-size: 46px;
  font-weight: 900;
  color: #10b981;
  letter-spacing: -1px;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.res-formula-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.calc-cta-box {
  width: 100%;
}

/* Floating Bottom Action Dock */
.floating-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  background-color: rgba(17, 21, 28, 0.9);
  backdrop-filter: blur(12px);
  padding: 8px 12px;
  border-radius: 50px;
  border: 1px solid rgba(211, 167, 69, 0.3);
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.dock-item.primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-gold);
}

.dock-item.primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.dock-item.success {
  background-color: #10b981;
  color: white;
}

.dock-item.success:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Media Queries & Mobile Optimizations
   ========================================================================== */

/* Laptop / Large Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-live-pill {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-title {
    font-size: 46px;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-features-list {
    justify-content: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    text-align: center;
  }
  
  .markets-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .markets-controls-col {
    width: 100%;
    justify-content: space-between;
  }
  
  .search-box-wrapper input {
    width: 100%;
  }

  .search-box-wrapper input:focus {
    width: 100%;
  }
  
  .calc-card-wrapper {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 32px;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .download-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .steps-list {
    text-align: left;
  }

  .download-btn-row {
    justify-content: center;
  }
}

/* Tablet & Standard Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .nav-links, 
  .navbar-right .btn-primary, 
  .navbar-right .btn-success {
    display: none !important;
  }
  
  .mobile-menu-btn {
    display: flex !important;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 34px;
    letter-spacing: -0.5px;
  }

  .hero-description {
    font-size: 15.5px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .stat-item h3 {
    font-size: 24px;
  }

  .floating-badge {
    padding: 8px 12px;
  }

  .fb-1 {
    top: 20px;
    left: 0;
  }

  .fb-2 {
    bottom: 30px;
    right: 0;
  }

  .section-title {
    font-size: 30px;
  }

  .markets-controls-col {
    flex-direction: column;
    align-items: stretch;
  }

  .refresh-container {
    justify-content: space-between;
    width: 100%;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .rates-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .footer {
    padding: 50px 0 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .download-section {
    padding: 32px 20px;
  }

  /* Floating Bottom Action Dock for Mobile */
  .floating-dock {
    bottom: 16px;
    left: 16px;
    right: 16px;
    justify-content: center;
    border-radius: 50px;
    padding: 6px;
  }

  .dock-item {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-live-pill {
    font-size: 11.5px;
    padding: 5px 12px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-success,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .phone-mockup-wrapper {
    width: 240px;
    height: 480px;
  }

  .floating-badge {
    display: none; /* Hide overflow floating badges on very narrow screens for clean look */
  }

  .calc-card-wrapper {
    padding: 24px 16px;
  }

  .res-amount {
    font-size: 36px;
  }

  .download-text-col h2 {
    font-size: 28px;
  }

  .download-btn-row {
    flex-direction: column;
    width: 100%;
  }

  .download-btn-row .btn-primary,
  .download-btn-row .btn-success {
    width: 100%;
    justify-content: center;
  }
}
