/* ==========================================================================
   TJK AT YARIŞI NE DAĞITIR? - ANA CSS
   Tema Yönetimi (Varsayılan Beyaz Tema: Beyaz, Kırmızı, Lacivert Ağırlıklı & Karanlık Tema)
   ========================================================================== */

:root,
[data-theme="light"] {
  /* Beyaz Tema Paleti (Beyaz, Kırmızı & Lacivert Ağırlıklı) */
  --bg-primary: #f4f6f9;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-inner: #f8fafc;

  --navy-dark: #0b1329;
  --navy-primary: #0f172a;
  --navy-secondary: #1e293b;
  --navy-light: #eff6ff;

  --accent-red: #c62828;
  --accent-red-bright: #d32f2f;
  --accent-red-subtle: rgba(198, 40, 40, 0.08);

  --accent-gold: #d97706;
  --accent-gold-light: #b45309;
  --accent-gold-bg: rgba(217, 119, 6, 0.12);

  --accent-green: #059669;
  --accent-green-bright: #10b981;
  --accent-green-bg: rgba(5, 150, 105, 0.12);

  --accent-cyan: #0284c7;
  --accent-purple: #7e22ce;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-inverse: #ffffff;

  --border-glass: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-gold: rgba(217, 119, 6, 0.4);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);

  --header-bg: #0f172a;
  --header-text: #ffffff;

  --font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
}

[data-theme="dark"] {
  /* Karanlık Tema Paleti */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-card: rgba(20, 29, 47, 0.85);
  --bg-card-inner: rgba(10, 15, 26, 0.6);

  --navy-dark: #050811;
  --navy-primary: #131b2e;
  --navy-secondary: #1e293b;
  --navy-light: rgba(255, 255, 255, 0.05);

  --accent-red: #c62828;
  --accent-red-bright: #e53935;
  --accent-red-subtle: rgba(198, 40, 40, 0.18);

  --accent-gold: #f5b027;
  --accent-gold-light: #ffd700;
  --accent-gold-bg: rgba(245, 176, 39, 0.15);

  --accent-green: #00e676;
  --accent-green-bright: #00e676;
  --accent-green-bg: rgba(0, 230, 118, 0.15);

  --accent-cyan: #00e5ff;
  --accent-purple: #b388ff;

  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #0b0f19;

  --border-glass: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(245, 176, 39, 0.4);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);

  --header-bg: rgba(11, 15, 25, 0.92);
  --header-text: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(198, 40, 40, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(15, 23, 42, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 60px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel-inner {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px;
}

/* App Header Layout */
.app-header {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 24px;
  box-shadow: var(--shadow-md);
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

/* Brand Logo & Title - YARIŞ ZAMANI */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  user-select: none;
}

.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(198, 40, 40, 0.25));
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 215, 0, 0.2);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.logo-icon:hover {
  transform: translateY(-2px) scale(1.06) rotate(-2deg);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45), 0 0 22px rgba(198, 40, 40, 0.55);
  border-color: #ffd700;
}

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

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-heading {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.1;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
}

.brand-word-yaris {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 65%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.brand-word-zamani {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #ffe066 0%, #ffb703 45%, #fb8500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(251, 133, 0, 0.45));
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(239, 68, 68, 0.25));
  border: 1px solid rgba(255, 215, 0, 0.55);
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffd700;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
  vertical-align: middle;
}

.brand-badge i {
  font-size: 9px;
  color: #f59e0b;
  animation: pulse-bolt 1.8s infinite;
}

@keyframes pulse-bolt {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.brand-subtitle {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.78);
  letter-spacing: 0.4px;
}

/* Header Right Controls */
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.theme-toggle-pill {
  width: 42px;
  height: 22px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.theme-icon-sun {
  font-size: 11px;
  color: #f59e0b;
  z-index: 1;
}

.theme-icon-moon {
  font-size: 11px;
  color: #94a3b8;
  z-index: 1;
}

.theme-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .theme-toggle-slider {
  transform: translateX(20px);
  background: #38bdf8;
}

[data-theme="dark"] .theme-icon-moon {
  color: #ffffff;
}

[data-theme="dark"] .theme-icon-sun {
  color: #64748b;
}

/* 3 Main Nav Tabs Container (Ana Sekmeler) */
.main-tab-navigation-wrapper {
  max-width: 1440px;
  margin: 16px auto 0 auto;
  padding: 0 16px;
}

.main-tab-navigation-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.main-nav-tabs {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 320px;
}

.nav-tab-btn {
  flex: 1;
  padding: 17px 22px;
  font-size: 19.5px;
  font-weight: 800;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-card-inner);
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-tab-btn i {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.tab-label-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.tab-subtitle {
  font-size: 0.6em;
  font-weight: 500;
  opacity: 0.45;
  color: #9ca3af;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: var(--navy-light);
  border-color: var(--border-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nav-tab-btn:hover i {
  transform: scale(1.2);
}

/* Active State per Tab */
.nav-tab-btn[data-tab="tab-payout"].active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-weight: 900;
  border-color: #f59e0b;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35);
}

.nav-tab-btn[data-tab="tab-payout"].active i {
  color: #ffffff !important;
}

.nav-tab-btn[data-tab="tab-ticket-cost"].active {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
  color: #ffffff;
  font-weight: 900;
  border-color: #42a5f5;
  box-shadow: 0 8px 25px rgba(13, 71, 161, 0.35);
}

.nav-tab-btn[data-tab="tab-ticket-cost"].active i {
  color: #ffffff !important;
}

.nav-tab-btn[data-tab="tab-predictions"].active {
  background: linear-gradient(135deg, #7e22ce 0%, #581c87 100%);
  color: #ffffff;
  font-weight: 900;
  border-color: #a855f7;
  box-shadow: 0 8px 25px rgba(126, 34, 206, 0.35);
}

.nav-tab-btn[data-tab="tab-predictions"].active i {
  color: #ffffff !important;
}

/* Global Clear All Selections Button */
.global-clear-btn {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.12), rgba(183, 28, 28, 0.22));
  border: 1px solid rgba(239, 83, 80, 0.4);
  color: #d32f2f;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

[data-theme="dark"] .global-clear-btn {
  color: #ff8a80;
}

.global-clear-btn:hover {
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
  transform: translateY(-2px);
}

.global-clear-btn:active {
  transform: scale(0.96);
}

.text-gold { color: var(--accent-gold); }
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-purple-glow {
  color: #a855f7;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.7));
  animation: purple-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes purple-pulse {
  from { filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.5)); transform: scale(1); }
  to { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.95)); transform: scale(1.08); }
}
.text-red { color: var(--accent-red-bright); }

/* TOP HIPODROM STRIP SECTION */
.top-venue-section-container {
  max-width: 1440px;
  margin: 22px auto 0 auto; /* Üstteki 3 tab ile araya belirgin mesafe koyduk */
  padding: 0 16px;
}

.top-venues-separate-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.top-venue-selection-card,
.multileg-bets-selection-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.venue-bar-label-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.venue-bar-label,
.multileg-bar-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.multileg-bar-label {
  min-width: 140px;
}

.venue-date-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card-inner);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  width: fit-content;
}

.top-venues-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  flex: 1;
}

.top-venue-btn {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-venue-btn .venue-icon {
  font-size: 12px;
  opacity: 0.75;
}

.top-venue-btn:hover {
  color: var(--text-main);
  background: var(--navy-light);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

.top-venue-btn.active {
  background: linear-gradient(135deg, #c62828 0%, #990000 100%);
  color: #ffffff;
  border-color: #ef5350;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
}

.top-venue-btn.active .venue-icon {
  opacity: 1;
  color: #ffffff;
}

/* OYUN SEÇİMİ SUB-NAV (1. Altılı Ganyan, 2. Altılı Ganyan vb.) */
.multileg-buttons-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.multileg-bet-btn {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.multileg-bet-btn .bet-icon {
  font-size: 12px;
  color: var(--accent-gold);
}

.multileg-bet-btn:hover {
  background: var(--navy-light);
  color: var(--text-main);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.multileg-bet-btn.active {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.multileg-bet-btn.active .bet-icon {
  color: #0f172a;
}

/* RACE HEADER META DETAILS BADGES */
.race-meta-details-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.race-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.race-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.race-badge.badge-title {
  background: var(--navy-primary);
  color: #ffffff;
  border: 1px solid var(--border-glass);
}

.race-badge.badge-time {
  background: var(--accent-gold-bg);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
}

.race-badge.badge-distance {
  background: var(--navy-light);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.race-badge.badge-distance.surface-grass {
  background: rgba(22, 101, 52, 0.85);
  color: #d1fae5;
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.race-badge.badge-distance.surface-dirt {
  background: rgba(120, 63, 4, 0.85);
  color: #fde68a;
  border: 1px solid rgba(180, 100, 20, 0.45);
}

.race-badge.badge-condition {
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.race-badge.badge-purse {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green-bright);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Live Auto-Sync Header Bar */
.auto-sync-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green-bright);
}

.sync-indicator .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green-bright);
}

.pulse-green .dot {
  animation: pulse-dot 1.8s infinite;
}

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

.sync-timer-badge {
  font-size: 12px;
  color: #94a3b8;
}

.sync-timer-badge strong {
  color: #ffd700;
  font-family: monospace;
  font-size: 13px;
}

.spin-fast {
  animation: fa-spin 0.8s infinite linear;
}

/* Unit Price Info Container */
.unit-price-container {
  max-width: 1440px;
  margin: 14px auto 0 auto;
  padding: 0 16px;
}

.unit-price-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 10px;
}

.info-bar-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-live-muhtemeller-action {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(153, 27, 27, 0.15));
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #dc2626;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

[data-theme="dark"] .btn-live-muhtemeller-action {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-live-muhtemeller-action:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.btn-live-muhtemeller-action:hover i {
  color: #ffffff !important;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-dot-red 1.5s infinite;
}

@keyframes pulse-dot-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.info-bar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.unit-price-chips {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.price-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-chip.active {
  background: var(--accent-gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-light);
  font-weight: 700;
}

.price-chip.muted {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

/* Minimum Cost Warning Box */
.min-cost-warning-box {
  background: var(--accent-gold-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-refresh-sync {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* Buttons & Base Utilities */
.btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gold { background: linear-gradient(135deg, var(--accent-gold), #b45309); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border-glass); color: var(--text-main); }
.btn-outline-gold { background: transparent; border: 1px solid #f59e0b; color: #ffd700; }
.btn-outline-gold:hover { background: rgba(245, 158, 11, 0.15); }
.btn-outline-white { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: #ffffff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

.main-container {
  max-width: 1440px;
  margin: 16px auto 0 auto;
  padding: 0 16px;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Modal Styling for Contact and Muhtemeller */
.muhtemeller-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.muhtemeller-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  width: 90%;
  max-width: 800px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-fade-in 0.3s ease-out forwards;
}
.muhtemeller-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0,0,0,0.2);
}
.muhtemeller-modal-header .modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.muhtemeller-modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-main);
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-close-modal:hover {
  color: var(--accent-red);
}
.muhtemeller-iframe-wrapper {
  flex: 1;
  width: 100%;
}
.muhtemeller-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Stat Tooltip (Glassmorphism & Neon) */
.stat-info-icon {
  margin-left: 6px;
  color: var(--primary-accent);
  cursor: pointer;
  font-size: 0.9em;
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}
.stat-info-icon:hover {
  opacity: 1;
  color: var(--secondary-accent);
}

.stat-tooltip {
  position: absolute;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 0.85em;
  min-width: 250px;
  pointer-events: none;
  animation: tooltip-fade-in 0.2s ease-out forwards;
}

@keyframes tooltip-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-tooltip h4 {
  margin: 0 0 8px 0;
  color: var(--primary-accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  font-size: 1.1em;
}

.stat-tooltip .stat-year-header {
  font-size: 0.8em;
  color: #aaa;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-tooltip table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.stat-tooltip table:last-child {
  margin-bottom: 0;
}

.stat-tooltip th, .stat-tooltip td {
  padding: 4px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-tooltip th {
  color: var(--secondary-accent);
  font-weight: normal;
  font-size: 0.85em;
}

.stat-tooltip .loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  color: var(--primary-accent);
}

/* ==========================================================================
   INITIAL APP LOADER ANIMATION (İlk Yükleme Ekranı Animasyonu)
   ========================================================================== */
.initial-app-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  text-align: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 40px auto;
  max-width: 650px;
  animation: loader-fade-in 0.3s ease-out;
}

.spinner-horse-ring {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(245, 176, 39, 0.15);
  border-top-color: var(--accent-gold);
  border-right-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loader-logo-pulse {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  animation: logo-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes logo-pulse {
  from { transform: scale(0.92); opacity: 0.8; }
  to { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 12px rgba(245, 176, 39, 0.6)); }
}

.loader-text-group h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loader-text-group p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.loader-progress-bar {
  width: 100%;
  max-width: 320px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loader-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #c62828, #f5b027, #00d4ff);
  border-radius: 10px;
  animation: loader-progress-anim 2.5s ease-in-out infinite;
  transform-origin: left;
}

@keyframes loader-progress-anim {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(0.7); }
  100% { transform: scaleX(1); }
}

@keyframes loader-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES (Mobil & Tablet Uyumluluk)
   ========================================================================== */

/* Touch protection & horizontal overflow prevention */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Tablet & Smaller Devices (max-width: 1024px) */
@media (max-width: 1024px) {
  .app-header {
    padding: 12px 16px;
  }

  .main-container {
    padding: 12px 16px 30px 16px;
  }

  .top-venue-section-container,
  .unit-price-container,
  .main-tab-navigation-wrapper {
    padding: 0 16px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  /* Header adjustments */
  .header-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand-logo {
    justify-content: flex-start;
  }

  .brand-word-yaris,
  .brand-word-zamani {
    font-size: 21px;
  }

  .brand-badge {
    padding: 2px 6px;
    font-size: 9.5px;
  }

  .brand-subtitle {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 290px;
  }

  .header-right-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .auto-sync-status-bar {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
  }

  /* Navigation Tabs */
  .main-nav-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 4px;
    width: 100%;
  }

  .main-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab-btn {
    flex: 1 0 auto;
    min-width: 105px;
    padding: 10px 12px;
    font-size: 14.5px;
    justify-content: center;
    white-space: nowrap;
  }
  .nav-tab-btn i {
    font-size: 17px;
  }

  /* Hipodrom & Oyun Seçim Barları */
  .top-venue-selection-card,
  .multileg-bets-selection-card {
    padding: 8px 12px;
    border-radius: 10px;
  }

  .venue-bar-label-group,
  .multileg-bar-label {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .top-venues-strip,
  .multileg-buttons-group {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
  }

  .top-venues-strip::-webkit-scrollbar,
  .multileg-buttons-group::-webkit-scrollbar {
    display: none;
  }

  .top-venue-btn,
  .multileg-bet-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
  }

  /* Unit Price Bar */
  .unit-price-bar {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 8px 12px;
  }

  .unit-price-bar::-webkit-scrollbar {
    display: none;
  }

  .unit-price-badge {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .brand-word-yaris,
  .brand-word-zamani {
    font-size: 17px;
    letter-spacing: 0.4px;
  }

  .brand-badge {
    padding: 2px 5px;
    font-size: 8.5px;
  }

  .brand-subtitle {
    font-size: 10px;
    max-width: 210px;
  }

  .theme-toggle-btn {
    padding: 4px 8px;
  }

  .btn-sm {
    padding: 5px 10px;
    font-size: 11px;
  }

  .nav-tab-btn {
    font-size: 11px;
    padding: 8px 6px;
  }

  .nav-tab-btn i {
    font-size: 13px;
  }

  .modal-card {
    border-radius: 12px !important;
    max-height: 96vh !important;
  }
}
