/* ==========================================================================
   X-STRATEGY SCANNER - MODERN MOBILE FIRST STYLESHEET
   ========================================================================== */

:root {
  --bg-primary: #090D16;
  --bg-card: #111827;
  --bg-card-sub: #1A2234;
  --bg-input: #1F293D;
  --border-color: #2D3748;
  --border-focus: #3B82F6;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #8B9CB3; /* WCAG AA: >=4.5:1 a #111827 és #1A2234 háttéren */

  --accent-emerald: #10B981;
  --accent-emerald-bg: rgba(16, 185, 129, 0.12);
  --accent-blue: #3B82F6;
  --accent-blue-bg: rgba(59, 130, 246, 0.12);
  --accent-amber: #F59E0B;
  --accent-amber-bg: rgba(245, 158, 11, 0.12);
  --accent-red: #EF4444;
  --accent-red-bg: rgba(239, 68, 68, 0.12);
  --accent-indigo: #6366F1;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

.app-container {
  width: 100%;
  max-width: 580px;
  min-height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 40px;
}

/* ==========================================================================
   Header & Status Bar
   ========================================================================== */
/* Unified Top Sticky Dock (Header + Status Card + Navigation Tabs) */
.app-top-sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.app-header {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  min-height: 48px;
  position: relative;
  z-index: 2;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.logo-icon {
  font-size: 20px;
  background: var(--bg-card-sub);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.logo-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #FFFFFF;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--accent-emerald);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-icon {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--bg-input);
  border-color: var(--border-focus);
}

/* Sticky Navigation & Status Bar Wrapper */
.sticky-nav-bar {
  background: transparent;
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  .sticky-nav-bar {
    position: relative;
    top: auto;
    z-index: 1;
    background: transparent;
    padding-bottom: 2px;
  }
}

.status-col.mobile-only-cog {
  display: none !important;
}

.btn-icon-mini {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #E2E8F0;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-icon-mini:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
}

/* Portfolio Status Bar - Slim Single-Line Layout */
.portfolio-status-card {
  margin: 8px 16px 4px 16px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(19, 29, 47, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

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

.status-col-interactive {
  cursor: pointer;
  border-radius: 8px;
  padding: 3px 6px;
  transition: all 0.16s ease;
  user-select: none;
}

.status-col-interactive:hover {
  background: rgba(56, 189, 248, 0.08);
}

.status-col-interactive:active {
  transform: scale(0.96);
  background: rgba(56, 189, 248, 0.14);
}

.status-label {
  font-size: 10px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  white-space: nowrap;
}

.status-value {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.status-value.highlight {
  color: #38BDF8;
}

.status-value.debt {
  color: var(--accent-amber);
}

.status-value.profit {
  color: var(--accent-emerald);
}

.status-value.text-stake {
  color: #94A3B8;
}

@media (max-width: 768px) {
  /* Mobilon a fejléc kompakt, elegáns módban látható: App cím + PRO/FREE badge + Upgrade/Gombok */
  .app-header {
    display: flex !important;
    padding: 7px 12px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    top: auto !important;
    z-index: 2 !important;
    min-height: 44px !important;
    background: transparent !important;
  }

  .app-header .logo-subtitle {
    display: none !important;
  }

  .app-header .logo-icon {
    width: 26px !important;
    height: 26px !important;
  }

  .app-header .logo-title {
    font-size: 13px !important;
    letter-spacing: 0.3px !important;
  }

  .app-header #headerPlanBadge {
    font-size: 9px !important;
    padding: 2px 6px !important;
  }

  .app-header .btn-header-upgrade {
    height: 28px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    min-width: auto !important;
  }

  /* Egyetlen fogaskerék ikon mobilon a fejlécben */
  .app-header #btnSettings {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    color: #E2E8F0 !important;
  }

  /* Mobilon a hasznos sáv: Egyenleg + Tét + Profit (3 tágas egyenlő oszlop, 0 mozgás) */
  .sticky-nav-bar {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }

  .portfolio-status-card {
    margin: 5px 8px 4px 8px !important;
    padding: 6px 8px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .status-col.mobile-only-cog {
    display: none !important;
  }

  .status-label {
    font-size: 10px;
    margin-bottom: 1px;
  }

  .status-value {
    font-size: 13px;
  }

  .nav-tabs {
    position: static !important;
    padding: 3px 8px 4px 8px !important;
    gap: 5px !important;
    background: transparent !important;
  }

  .nav-tab {
    min-height: 38px !important;
    height: 38px !important;
    white-space: nowrap !important;
    padding: 6px 4px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
    border-radius: 8px !important;
  }

  .nav-tab .tab-icon {
    font-size: 13px !important;
  }

  .nav-tab .badge {
    font-size: 10px !important;
    padding: 1px 5px !important;
  }
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */
.nav-tabs {
  display: flex;
  padding: 8px 16px;
  gap: 8px;
  background: var(--bg-primary);
  position: sticky;
  top: 77px;
  z-index: 40;
}

.nav-tab {
  flex: 1;
  min-height: 40px;
  height: 40px;
  white-space: nowrap;
  padding: 8px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-tab.active {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.nav-tab .badge {
  background: rgba(0, 0, 0, 0.25);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

/* Tab Contents */
.tab-content {
  display: none;
  padding: 12px 16px;
}

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

/* ==========================================================================
   Tab 1: Curated Match Feed
   ========================================================================== */
.filter-banner {
  margin-bottom: 14px;
}

.filter-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--accent-emerald-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: #34D399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.6s infinite;
}

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

.match-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Match Card */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}

.match-card:hover {
  border-color: #475569;
}

.match-card.is-active-selected {
  border-color: rgba(16, 185, 129, 0.7);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(17, 24, 39, 1) 100%);
  box-shadow: 0 0 24px -2px rgba(16, 185, 129, 0.3);
}

/* Megjátszott / kizárt kártyák: a korábbi `opacity: .55` a szöveget 2,8:1
   kontrasztra süllyesztette — olvashatatlan volt. A halványítást a háttér és
   a keret végzi, a szöveg marad teljes kontraszton. */
.match-card.is-already-played {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
}

.match-card.is-already-played:hover {
  background: rgba(15, 23, 42, 0.75);
}

.match-card.is-disqualified {
  opacity: 1;
  border: 1.5px dashed rgba(239, 68, 68, 0.45);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.match-card.is-disqualified:hover {
  border-color: rgba(239, 68, 68, 0.7);
}

.badge-no-edge {
  font-size: 11px;
  font-weight: 800;
  color: #F87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.match-card.is-asian-card {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.08) 0%, rgba(17, 24, 39, 1) 100%);
}

.match-card.card-dimmed {
  opacity: 1;
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(15, 23, 42, 0.6) !important;
}

.history-item.is-push {
  border-left: 3px solid #38BDF8;
}

.history-net.push {
  color: #38BDF8;
}

.badge-live-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 10px #EF4444;
  animation: pulseLive 1.4s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75); }
  70% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.push-notification-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(2, 132, 199, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.league-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #CBD5E1;
  background: var(--bg-card-sub);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.match-teams {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  line-height: 1.3;
}

.badge-scaled {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Odds Grid */
.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.odds-cell {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.odds-cell.highlight-x {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-color: rgba(16, 185, 129, 0.4);
}

.odds-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.odds-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.odds-cell.highlight-x .odds-value {
  color: #34D399;
}

/* Stakes Recommendation Box */
.stakes-recommendation {
  background: var(--bg-card-sub);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  border-left: 3px solid var(--accent-emerald);
}

.stakes-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.stakes-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #E2E8F0;
}

.stakes-row span strong {
  color: #38BDF8;
}

.stakes-row span.x-stake strong {
  color: #34D399;
}

/* Action Button */
.btn-select-match {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
}

.btn-select-match:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* ==========================================================================
   Tab 2: Tracker & Results
   ========================================================================== */
.tracker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

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

.tracker-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.badge-step {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-blue-bg);
  color: #60A5FA;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.tracker-selected-match {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.empty-state {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  padding: 12px 6px;
}

.feed-loading-state {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94A3B8;
  font-size: 13px;
}

.feed-loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-top-color: #38BDF8;
  border-radius: 50%;
  animation: bootSpin 0.8s linear infinite;
}

/* ==========================================================================
   v2.0 Synthetic Dutching & Dual-State UI Elements
   ========================================================================== */

.badge-v2 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.6);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.synthetic-hero-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 12px 0 14px 0;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
  position: relative;
  overflow: hidden;
}

.synthetic-hero-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #10B981, #06B6D4);
}

.synthetic-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.synthetic-card-bet {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.synthetic-card-reserve {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-bet-label {
  font-size: 11px;
  font-weight: 700;
  color: #34D399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.card-bet-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.card-reserve-label {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.card-reserve-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #CBD5E1;
}

.synthetic-payout-summary {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.synthetic-payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-triple-filter {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  color: #22D3EE;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.stake-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.stake-chip {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stake-chip.x-chip {
  border-color: rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.3) 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.stake-chip.reserve-chip {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.6);
}

.chip-label {
  font-size: 10.5px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.chip-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}

.stake-chip.x-chip .chip-val {
  color: #34D399;
}

.stake-chip.reserve-chip .chip-val {
  color: #38BDF8;
}

.total-stake-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 16px;
}

.total-stake-note strong {
  font-family: var(--font-mono);
  color: #FFFFFF;
}

/* Result Buttons */
.result-action-box h3 {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-result {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-main);
  transition: all 0.2s;
}

.btn-result strong {
  font-size: 19px;
  font-family: var(--font-mono);
}

.btn-result span {
  font-size: 13px;
  font-weight: 600;
}

.btn-x {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

.btn-x:hover {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  transform: translateY(-1px);
}

.btn-nondraw {
  background: var(--bg-card-sub);
  color: #E2E8F0;
  border: 1px solid var(--border-color);
}

.btn-nondraw:hover {
  background: var(--bg-input);
  border-color: #64748B;
  transform: translateY(-1px);
}

/* History Card */
.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.history-card h3 {
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 700;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.empty-history {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  padding: 14px 0;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-card-sub);
  border-radius: var(--radius-sm);
  font-size: 12px;
  border-left: 3px solid var(--border-color);
}

.history-item.is-x {
  border-left-color: var(--accent-emerald);
}

.history-item.is-loss {
  border-left-color: var(--accent-amber);
}

.history-net.profit {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 700;
}

.history-net.loss {
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-weight: 700;
}

.btn-secondary {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-card-sub);
  color: #FFFFFF;
}

/* ==========================================================================
   Tab 3: Leagues Guide
   ========================================================================== */
.leagues-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.leagues-guide-card h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

.leagues-guide-card .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.league-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.league-stat-card {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  gap: 12px;
}

.league-stat-card.elite {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.league-flag {
  font-size: 22px;
}

.league-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.league-info strong {
  font-size: 13px;
  color: #FFFFFF;
}

.league-info span {
  font-size: 11px;
  color: var(--text-dim);
}

.league-tag {
  font-size: 10px;
  font-weight: 700;
  color: #34D399;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.blocked-leagues-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
}

.blocked-leagues-box h3 {
  font-size: 13px;
  color: #F87171;
  margin-bottom: 8px;
}

.blocked-leagues-box ul {
  list-style: none;
  font-size: 12px;
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   Settings Modal
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.92);
  z-index: 100005 !important;
  padding: 14px 10px;
  overflow-y: auto;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.modal-backdrop.show,
.modal-backdrop.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  margin: auto;
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 100000;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  box-sizing: border-box;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.btn-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.modal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.form-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.form-group input, .form-group select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 10px 14px;
  background: #1A2234;
  border: 1px solid #2B3A55;
  border-radius: 10px;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  background: #1E293B;
}

.form-group select {
  cursor: pointer;
  appearance: auto;
}

.form-group .hint {
  font-size: 11px;
  color: var(--text-dim);
}

/* Odds Grids for Add Match Modal */
.odds-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.sub-odds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.odds-chip-input {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
  overflow: hidden;
}

.odds-chip-input:focus-within {
  border-color: #38BDF8;
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.odds-chip-input.highlight-x {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}

.odds-chip-input.highlight-x:focus-within {
  border-color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.odds-chip-input label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.odds-chip-input input {
  font-family: var(--font-mono) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-align: center;
  padding: 7px 4px !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 30, 0.7);
  color: #FFFFFF;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -moz-appearance: textfield;
}

.odds-chip-input input::-webkit-outer-spin-button,
.odds-chip-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.4);
  box-sizing: border-box;
}

.btn-primary {
  padding: 10px 18px;
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Feed Control Bar */
.feed-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 2px 0;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.feed-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.feed-filter-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.feed-action-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-custom-match {
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-custom-match:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38BDF8;
}

.btn-refresh-feed {
  width: 34px;
  height: 34px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-refresh-feed:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFF;
}

/* Gomb a megtett meccsek gyors elrejtésére/megjelenítésére */
.btn-toggle-played {
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-toggle-played:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.btn-toggle-played.is-hidden-mode {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38BDF8;
}

/* Feed Rendezési Sáv & Összegző */
/* ==========================================================================
   Diszkrét Kvantitatív Minőségi Sávok (Tier 1-3)
   ========================================================================== */
.tier-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  width: 100%;
  padding: 2px 0 6px 0;
  margin-bottom: 4px;
}

.tier-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 3px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tier-pill-btn:hover {
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.7);
}

.tier-pill-btn.active {
  color: #FFFFFF;
  background: rgba(2, 132, 199, 0.25);
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.tier-pill-btn.tier-btn-1.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: #F59E0B;
  color: #FEF08A;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.tier-pill-btn.tier-btn-2.active {
  background: rgba(2, 132, 199, 0.25);
  border-color: #38BDF8;
  color: #BAE6FD;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.tier-pill-btn.tier-btn-3.active {
  background: rgba(147, 51, 234, 0.25);
  border-color: #A855F7;
  color: #E9D5FF;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.tier-count-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  flex-shrink: 0;
}

.tier-pill-btn.active .tier-count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

@media (max-width: 380px) {
  .tier-filter-bar {
    gap: 3px;
  }
  .tier-pill-btn {
    font-size: 10px;
    padding: 5px 2px;
    gap: 2.5px;
  }
  .tier-count-badge {
    font-size: 10px;
    padding: 1px 3px;
  }
}

.feed-filter-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-icon {
  font-size: 13px;
}

.sort-label {
  display: inline-block;
  min-width: 68px;
  font-size: 11px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-sort-select {
  width: 175px;
  min-width: 175px;
  max-width: 175px;
  box-sizing: border-box;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(11, 17, 32, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  font-family: var(--font-main);
  transition: all 0.15s;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-sort-select:hover, .feed-sort-select:focus {
  border-color: #38BDF8;
  background: rgba(15, 23, 42, 1);
}

.feed-count-summary {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
}

/* Value & Asian Badges */
.badge-clv {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.badge-dnb {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.badge-push-safe {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Asian Handicap Market Callout Card inside Match Card */
.asian-market-callout {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asian-market-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asian-market-title {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.asian-market-line {
  font-size: 14.5px;
  font-weight: 800;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.asian-fair-comparison {
  font-size: 10.5px;
  color: #64748B;
  font-family: var(--font-mono);
}

/* Modal Segmented Switch */
.modal-mode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.modal-mode-tab {
  flex: 1;
  min-width: 0;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  box-sizing: border-box;
}

.modal-mode-tab:hover {
  color: #FFF;
}

.modal-mode-tab.active {
  background: #1E293B;
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.modal-mode-tab.active[data-mode="draw"] {
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.4);
}

/* Asian Tracker Layout */
.tracker-asian-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.asian-tri-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.asian-outcome-card {
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asian-outcome-card.is-win {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.asian-outcome-card.is-push {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.asian-outcome-card.is-loss {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.asian-outcome-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.asian-outcome-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
}


/* ==========================================================================
   v3.4 SENIOR STREAMLINED COMPACT LAYOUT (Pinnacle Sharp & X-Ciklus)
   ========================================================================== */
.compact-match-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.compact-match-row:hover {
  border-color: #475569;
  background: rgba(30, 41, 59, 0.45);
}

.compact-match-row.dnb {
  border-left: 4px solid #0284C7;
}

.compact-match-row.is-dimmed {
  opacity: 1;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.compact-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.league-country-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #CBD5E1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-block;
  line-height: 1.25;
}

.compact-league-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
}

.compact-time-badge {
  color: #38BDF8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sor 2: Csapatok neve - TELJES SZÉLESSÉGBEN, SOHA NEM VÁGJUK LE! */
.compact-match-title,
.compact-match-name {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  width: 100% !important;
  padding: 2px 0 0 0;
}

.compact-match-title .vs-text {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  margin: 0 4px;
}

.portfolio-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.portfolio-tag.tag-dnb {
  background: rgba(2, 132, 199, 0.22);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.compact-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 22px;
  box-sizing: border-box;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.4px;
  text-align: center;
  line-height: 1;
}

.compact-tier-badge.tier-tier1 {
  background: rgba(245, 158, 11, 0.22);
  color: #FDE047;
  border: 1px solid rgba(245, 158, 11, 0.55);
}

.compact-tier-badge.tier-tier2 {
  background: rgba(2, 132, 199, 0.25);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.55);
}

.compact-tier-badge.tier-tier3 {
  background: rgba(147, 51, 234, 0.22);
  color: #E9D5FF;
  border: 1px solid rgba(168, 85, 247, 0.55);
}

/* ═══════════════════════════════════════════════════════════════════════════
   v5.0 CLEAN & INTUITIVE QUANT MATCH CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.compact-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.clean-pick-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
}

.clean-pick-target {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.clean-pick-tag {
  font-size: 10px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.5px;
}

.clean-pick-team {
  font-size: 15px;
  font-weight: 800;
  color: #38BDF8;
  white-space: normal;
  word-break: break-word;
}

.clean-pick-market {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.clean-pick-odds-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 3px;
  min-width: 80px;
  text-align: center;
}

.clean-odds-value {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.clean-bookie-pill {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.clean-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 10px;
  box-sizing: border-box;
  width: 100%;
}

.clean-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.clean-stat-item .stat-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.clean-stat-item .stat-value {
  font-size: 12.5px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
}

.badge-plan-pro {
  background: rgba(14, 165, 233, 0.15) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.badge-plan-free {
  background: rgba(148, 163, 184, 0.15) !important;
  color: #94A3B8 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

.text-cyan { color: #38BDF8 !important; }
.text-slate { color: #CBD5E1 !important; }
.text-emerald { color: #34D399 !important; }
.text-amber { color: #FBBF24 !important; }
.text-sky { color: #38BDF8 !important; }
.text-rose { color: #F87171 !important; }

.compact-action-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .clean-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 7px 6px;
  }
}

/* 2. Sor: CSAK a célpiac, az odds és a gomb */
.compact-body-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.65);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
}

.compact-target-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.compact-target-label {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compact-target-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.compact-match-row.dnb .compact-target-value strong {
  color: #38BDF8;
}

.compact-match-row.is-played .compact-target-value strong {
  color: #34D399 !important;
}

.compact-odds-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.compact-odds-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

/* Tőzsdei Odds Trend Jelző (Stock-Ticker Style) */
.odds-trend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  padding: 0;
  border-radius: 4px;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.odds-trend-badge.trend-up {
  color: #34D399;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.odds-trend-badge.trend-down {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.odds-trend-badge.trend-flat {
  color: #64748B;
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 1px 4px;
}

.compact-stake-hint {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.compact-stake-hint strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #F8FAFC;
}

.compact-match-row.dnb .compact-stake-hint strong {
  color: #38BDF8;
}

.compact-match-row.is-played .compact-stake-hint strong {
  color: #34D399 !important;
}

.btn-confirm-placement {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-confirm-placement:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.compact-odds-num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
}

.compact-edge-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  box-sizing: border-box;
  font-size: 10.5px;
  font-weight: 800;
  padding: 0 7px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1;
}

.compact-edge-badge.badge-dnb {
  background: rgba(2, 132, 199, 0.18);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.compact-edge-badge.pos {
  background: rgba(2, 132, 199, 0.18);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.compact-edge-badge.neg {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-compact-action {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-compact-action.btn-dnb {
  background: #1E293B;
  color: #F8FAFC;
  border: 1.5px solid #475569;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-compact-action.btn-dnb:hover {
  background: #334155;
  border-color: #94A3B8;
  color: #FFFFFF;
}

.btn-compact-action.btn-in-tracker {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Already Selected & Played Card Highlighting (RADICAL VISUAL CONTRAST) */
.compact-match-row.is-played {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 2px solid #10B981 !important;
  border-left: 6px solid #10B981 !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35), inset 0 0 15px rgba(16, 185, 129, 0.08) !important;
  position: relative;
}

.compact-match-row.is-in-tracker:not(.is-played) {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(30, 41, 59, 0.6) !important;
}

.compact-match-row.is-in-progress:not(.is-played) {
  border-left: 4px solid #F59E0B !important;
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(15, 23, 42, 0.7) 100%);
  opacity: 0.82;
  cursor: default !important;
  pointer-events: none !important;
}

.tracker-match-card.is-in-progress {
  border-left: 4px solid #F59E0B !important;
}

.badge-played-glow {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #34D399 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
}

.btn-compact-action.btn-played-active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #34D399 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5) !important;
  font-weight: 800;
  cursor: pointer;
}

.btn-compact-action.btn-disabled {
  background: rgba(255, 255, 255, 0.05);
  color: #64748B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

/* Stepper Buttons for Odds Adjustment */
.compact-stepper-btn {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
}

.compact-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #94A3B8;
}

/* Tracker High-Density Styles */
.tracker-single-target-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

/* ==========================================================================
   v5.2 Streamlined Tracker Card & Confirmed Ticket Layout
   ========================================================================== */
.tracker-match-card {
  background: rgba(17, 24, 39, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.tracker-match-card.dnb-card {
  border-color: rgba(56, 189, 248, 0.35);
}

/* Confirmed Ticket Strip (Zero Clutter, Zero Duplication) */
.tracker-ticket-confirmed {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.05);
}

.tracker-ticket-confirmed.m2-confirmed {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.05);
}

.ticket-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-status-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticket-status-tag.tag-confirmed {
  color: #FBBF24;
}

.ticket-status-tag.tag-confirmed-m2 {
  color: #38BDF8;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-ticket-modify {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-ticket-modify:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #94A3B8;
  color: #FFFFFF;
}

.ticket-target-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ticket-pick-badge {
  font-size: 15px;
  font-weight: 800;
  color: #F8FAFC;
}

.ticket-pick-badge.m2-pick {
  color: #38BDF8;
}

.ticket-market-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #94A3B8;
}

.ticket-odds-badge {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.ticket-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.ticket-metric .metric-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ticket-metric .metric-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: #F8FAFC;
}

.ticket-metric .metric-val.text-stake {
  color: #FBBF24;
}

.ticket-metric .metric-val.text-stake-m2 {
  color: #38BDF8;
}

.ticket-metric .metric-val.text-profit {
  color: #34D399;
}

.ticket-metric .metric-val.text-loss {
  color: #F87171;
}

/* Edit / Setup Box */
.tracker-edit-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.edit-target-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.edit-section-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  display: block;
}

.edit-target-team {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.odds-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-lbl {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  display: inline-block;
  width: 50px;
  flex-shrink: 0;
}

.stepper-input {
  width: 72px;
  padding: 5px 6px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  border-radius: 6px;
  box-sizing: border-box;
}

.stepper-input.input-dnb {
  background: rgba(56, 189, 248, 0.15);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  color: #38BDF8;
}

.btn-confirm-action {
  width: 100%;
  padding: 11px;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: all 0.15s ease;
}

.btn-confirm-action.btn-confirm-m2 {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-confirm-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-cancel-link {
  background: none;
  border: none;
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-cancel-link:hover {
  color: #EF4444;
}

.tracker-stake-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tracker-stake-row .stake-col {
  text-align: center;
}

.tracker-stake-row .lbl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.tracker-stake-row .val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
}

.tracker-stake-row .val .unit-tag {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 2px;
}

.tracker-stake-row .val.highlight {
  color: #38BDF8;
}

.tracker-stake-row .val.profit {
  color: #34D399;
}

.tracker-stake-row .val.loss {
  color: #F87171;
}

.tracker-outcome-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.tracker-outcome-actions-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.btn-outcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  line-height: 1.25;
  min-height: 72px;
  box-sizing: border-box;
}

.btn-outcome .outcome-team {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 16px;
  line-height: 16px;
  margin-bottom: 2px;
  color: inherit;
  opacity: 0.95;
}

.btn-outcome .outcome-team.outcome-team-spacer {
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}

.btn-outcome .outcome-action {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  height: 16px;
  line-height: 16px;
  margin-bottom: 3px;
  color: inherit;
}

.btn-outcome .outcome-amount {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  height: 15px;
  line-height: 15px;
  opacity: 0.9;
  white-space: nowrap;
}

.btn-outcome.btn-win {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34D399;
}

.btn-outcome.btn-win:hover {
  background: rgba(16, 185, 129, 0.3);
}

.btn-outcome.btn-push {
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38BDF8;
}

.btn-outcome.btn-push:hover {
  background: rgba(2, 132, 199, 0.3);
}

.btn-outcome.btn-loss {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.btn-outcome.btn-loss:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
  .compact-match-row {
    padding: 10px;
    gap: 8px;
  }
  .compact-meta-bar {
    align-items: flex-start;
  }
  .compact-meta-left {
    gap: 5px;
  }
  .compact-time-badge {
    margin-left: auto;
  }
  .compact-match-title,
  .compact-match-name {
    font-size: 14px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
  }
  .compact-body-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 9px;
  }
  .compact-target-col,
  .compact-odds-col {
    width: 100%;
    flex: 0 0 auto;
    align-items: flex-start;
  }
  .compact-target-value {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .compact-odds-top {
    justify-content: flex-start;
  }
  .compact-stake-hint {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
  .compact-action-col {
    width: 100%;
    margin-top: 4px;
  }
  .btn-compact-action {
    width: 100%;
    justify-content: center;
    padding: 9px;
  }
}

/* ==========================================================================
   Security Shield Overlay & PIN Gate (Bot Protection)
   ========================================================================== */
body.auth-locked {
  overflow: hidden !important;
  height: 100vh !important;
}

.security-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #090D16;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #090D16;
  color: #CBD5E1;
  font: 600 14px/1.4 var(--font-main, system-ui, sans-serif);
  transition: opacity 0.2s ease-out;
}

.boot-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-loader-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(148, 163, 184, 0.25);
  border-top-color: #38BDF8;
  border-radius: 50%;
  animation: bootSpin 0.8s linear infinite;
}

.cf-turnstile-wrap {
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

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

.security-lock-card {
  width: 100%;
  max-width: 460px;
  margin: auto;
  background: linear-gradient(135deg, #131D2F 0%, #0F172A 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 20px 22px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.lock-icon-wrap {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.security-lock-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: #FFF;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.security-lock-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0284C7, #0D9488);
  color: #FFF;
  border: 1px solid rgba(56, 189, 248, 0.5);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.security-lock-sub {
  font-size: 12px;
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 12px;
}

.security-lock-desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.security-pin-input-wrap input {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 8px;
  font-size: 24px;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(56, 189, 248, 0.5);
  border-radius: 10px;
  color: #FFF;
  outline: none;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.security-pin-input-wrap input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.security-pin-error {
  color: #F87171;
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
}

.btn-security-unlock {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: none;
  border-radius: 10px;
  color: #FFF;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-security-unlock:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
}

.security-lock-hint {
  font-size: 11px;
  color: #64748B;
  margin-top: 16px;
}

/* ==========================================================================
   Multi-User Auth Gateway & Biometrics Styling
   ========================================================================== */
.auth-card {
  max-width: 460px;
  width: 100%;
  padding: 22px 24px;
}

.auth-device-badge {
  display: inline-block;
  font-size: 11px;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.4;
  text-align: left;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.btn-google-oauth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #FFFFFF;
  color: #1F2937;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-google-oauth:hover {
  background: #F3F4F6;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.btn-biometric-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284C7, #0D9488);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 800;
  padding: 14px 16px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.btn-biometric-main:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: #64748B;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  padding: 0 10px;
}

.auth-input-group {
  text-align: left;
  margin-bottom: 12px;
}

.auth-label {
  display: block;
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: #FFFFFF;
  font-family: var(--font-main);
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.btn-magic-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  color: #38BDF8;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 16px;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-magic-link:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.auth-card-footer {
  font-size: 11px;
  color: #64748B;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   🌐 SaaS Track Record & Audit Styling (v8.1)
   ========================================================================== */
.saas-audit-teaser {
  background: #0D1527;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0 16px 0;
  text-align: left;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.saas-teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.saas-teaser-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #F1F5F9;
  text-transform: uppercase;
}

.saas-teaser-badge {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
}

.saas-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.saas-teaser-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 3px 7px 3px;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.saas-teaser-stat .stat-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saas-teaser-stat .stat-val {
  font-size: 14.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFFFFF;
  margin: 4px 0;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.saas-teaser-stat .stat-sub {
  font-size: 8.5px;
  color: #64748B;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tier Mini Cards (2 soros elrendezés) */
.saas-tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.saas-tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  min-width: 0;
  box-sizing: border-box;
}

.saas-tier-card .tier-card-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saas-tier-card .tier-card-val {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #34D399;
  white-space: nowrap;
}

.btn-teaser-view-all {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 10px 14px;
  color: #F1F5F9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-teaser-view-all:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Guest Mode Controls */
.btn-guest-mode {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(14, 165, 233, 0.24) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  padding: 11px 12px;
  color: #38BDF8;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-guest-mode:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.26) 0%, rgba(14, 165, 233, 0.36) 100%);
  border-color: #38BDF8;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-header-signin {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-signin:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.btn-header-signin-mini {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  box-sizing: border-box;
}

.btn-header-signin-mini:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.btn-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.btn-auth-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.auth-prompt-banner {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #E0F2FE;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.4;
}

.guest-portfolio-card {
  text-align: center;
  padding: 28px 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 12px;
}

/* Tier Filter Gombok */
.track-tier-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
}

.btn-tier-filter {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 4px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-width: 0;
}

.btn-tier-filter:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #E2E8F0;
}

.btn-tier-filter.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #38BDF8;
}

.tier-count-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 9.5px;
  font-family: var(--font-mono);
  font-weight: 800;
}

.tier-count-badge {
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-family: var(--font-mono);
}

/* Track Record Kártya Elemek */
.track-card-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.track-card-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.track-card-item.is-win {
  border-left: 3.5px solid #34D399;
}
.track-card-item.is-push {
  border-left: 3.5px solid #38BDF8;
}
.track-card-item.is-loss {
  border-left: 3.5px solid #F87171;
}
.track-card-item.is-pending {
  border-left: 3.5px solid #FBBF24;
}

.track-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-tier-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.track-tier-badge.tier-elite {
  background: rgba(251, 191, 36, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.track-tier-badge.tier-premium {
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.track-tier-badge.tier-standard {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.track-match-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFF;
}

.track-card-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.track-pick-pill {
  font-size: 11px;
  color: #94A3B8;
}

.track-pick-pill strong {
  color: #38BDF8;
}

.track-outcome-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.track-outcome-badge.outcome-win {
  background: rgba(52, 211, 153, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.track-outcome-badge.outcome-push {
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.track-outcome-badge.outcome-loss {
  background: rgba(248, 113, 113, 0.2);
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}
.track-outcome-badge.outcome-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.track-outcome-badge.outcome-upcoming {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}


/* ==========================================================================
   Multi-Language (i18n) Switcher Component
   ========================================================================== */
.lang-switch-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2px 4px;
  gap: 2px;
}

.lang-switch-pill .lang-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.lang-switch-pill .lang-btn:hover {
  color: #FFFFFF;
}

.lang-switch-pill .lang-btn.active {
  background: rgba(56, 189, 248, 0.25);
  color: #38BDF8;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.lang-switch-pill .lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  user-select: none;
}

.lang-switch-pill-mini {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1px 3px;
  gap: 1px;
}

.lang-switch-pill-mini .lang-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.lang-switch-pill-mini .lang-btn.active {
  background: rgba(56, 189, 248, 0.25);
  color: #38BDF8;
  font-weight: 800;
}

.lang-switch-pill-mini .lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 9px;
  user-select: none;
}

.auth-lang-bar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 8px;
}

/* Settings Modal Language Selector:
   PC / Desktopon elrejtve, mert a fejlécben közvetlenül kattintható;
   kizárólag mobilon (<= 768px) jelenik meg. */
.settings-lang-section {
  display: none !important;
}

@media (max-width: 768px) {
  .settings-lang-section {
    display: block !important;
  }
  /* Mobilon a fejlécből elrejtjük a zsúfoltság elkerülésére; a Beállításokban érhető el */
  .app-header .header-actions .lang-switch-pill {
    display: none !important;
  }
}

.settings-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.settings-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 12px;
  color: #94A3B8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  min-height: 34px;
}

.settings-lang-chip:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #FFFFFF;
}

.settings-lang-chip.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.28) 100%);
  border: 1px solid #38BDF8;
  color: #38BDF8;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.settings-lang-chip .lang-flag-icon {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

/* ==========================================================================
   v9.5 — Akadálymentesítés és mozgásérzékenység
   ========================================================================== */

/* Billentyűzetes fókusz: mindig látható gyűrű, egérkattintásnál nem zavaró. */
:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
  border-radius: 4px;
}

/* A select-ek korábban outline:none-nal álltak, kompenzáció nélkül. */
.feed-sort-select:focus-visible,
.form-group select:focus-visible,
.form-group input:focus-visible,
.auth-input:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

/* Mozgásérzékeny felhasználók: kapcsoljuk ki a végtelen animációkat. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .live-pulse-dot,
  .badge-live-pulse,
  .pulse-indicator {
    animation: none !important;
  }
}

/* Magas kontraszt / forced colors: a keretek maradjanak láthatók. */
@media (forced-colors: active) {
  .compact-match-row,
  .tracker-match-card,
  .modal-content {
    border: 1px solid CanvasText;
  }
}

.compact-match-row {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.compact-match-row:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 16px -2px rgba(2, 132, 199, 0.25);
  transform: translateY(-1px);
}

.compact-match-row:active {
  transform: translateY(0);
}

/* Statikus (nem kattintható) kártyák a track record és előzmény listákban */
.compact-match-row.track-record-card,
.compact-match-row.is-static,
#saasTrackRecordList .compact-match-row,
#modalTrackRecordList .compact-match-row {
  cursor: default !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.compact-match-row.track-record-card:hover,
.compact-match-row.is-static:hover,
#saasTrackRecordList .compact-match-row:hover,
#modalTrackRecordList .compact-match-row:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  border-color: var(--border-color) !important;
  background: var(--bg-card) !important;
}


/* Compact User Strip & Sign Out Button */
.settings-user-strip {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: rgba(15, 23, 42, 0.7) !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  margin-bottom: 16px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.btn-signout-compact {
  width: auto !important;
  min-width: 84px !important;
  max-width: 110px !important;
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #FCA5A5 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.btn-signout-compact:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #FFFFFF !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
}

/* ==========================================================================
   SaaS Clean 2x2 KPI Showcase (v156)
   ========================================================================== */

.saas-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.saas-kpi-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.saas-kpi-card .kpi-label {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.saas-kpi-card .kpi-val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  margin-top: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.val-cyan {
  color: #38BDF8;
}

.val-emerald {
  color: #34D399;
}

/* W - P - L Uniform Inline Layout */
.wpl-item {
  font-family: var(--font-mono, monospace);
  font-size: 16px;
  font-weight: 800;
  display: inline;
  line-height: 1;
}

.wpl-win {
  color: #34D399;
}

.wpl-push {
  color: #38BDF8;
}

.wpl-loss {
  color: #94A3B8;
}

.wpl-loss-active {
  color: #F87171;
}

.wpl-sep {
  color: #64748B;
  font-size: 13px;
  margin: 0 4px;
  font-weight: 700;
  user-select: none;
}

/* Badge: Új mérkőzés jelölő az első megnyitáskor */
.badge-new-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.22);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
  line-height: 1.2;
  vertical-align: middle;
}

/* Quick Bankroll Popover / Modal */
.modal-content.quick-bankroll-content {
  max-width: 380px;
  background: #0F172A;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 25px rgba(56, 189, 248, 0.15);
}

.quick-bankroll-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 12px 0 16px 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-bankroll-input-wrap:focus-within {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.quick-bankroll-curr {
  font-size: 24px;
  font-weight: 800;
  color: #38BDF8;
  font-family: var(--font-mono);
  margin-right: 8px;
  user-select: none;
}

.quick-bankroll-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  outline: none;
  text-align: center;
}

.quick-bankroll-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.btn-bankroll-preset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 9px 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bankroll-preset:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #38BDF8;
}

.btn-bankroll-preset:active {
  transform: scale(0.95);
}

.quick-bankroll-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.quick-bankroll-actions button {
  flex: 1;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
}

/* Quick Bet Modal */
.modal-content.quick-bet-content {
  max-width: 410px;
  background: #0F172A;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 25px rgba(56, 189, 248, 0.15);
}

.quick-bet-pick-strip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.quick-bet-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
}

.quick-bet-odds-benchmarks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-bet-bench-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.quick-bet-bench-card.highlight-cutoff {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}

.bench-card-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.bench-card-val {
  font-size: 14.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #F8FAFC;
}

.quick-bet-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.btn-quick-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-quick-step:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #38BDF8;
}

.btn-quick-step:active {
  transform: scale(0.95);
}

.quick-bet-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  font-family: var(--font-mono) !important;
  text-align: center !important;
  padding: 8px 12px !important;
}

.quick-bet-input:focus {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18) !important;
}

.quick-bet-stake-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
}

.quick-bet-stake-val {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #38BDF8;
}

.quick-bet-warning {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #F87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.quick-bet-actions {
  display: flex;
  gap: 10px;
}

.quick-bet-actions button {
  flex: 1;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  min-height: 46px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
}


/* Stripe Subscription & Upgrade Button */
.btn-header-upgrade {
  background: linear-gradient(135deg, #0EA5E9, #2563EB);
  color: #FFFFFF;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 6px;
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  height: 28px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.5);
  background: linear-gradient(135deg, #38BDF8, #1D4ED8);
}

.pricing-modal-card {
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(14, 165, 233, 0.25) !important;
}

.pricing-plan-card:hover {
  border-color: #38BDF8 !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Settings Modal Responsive Card Tiles & Premium Polish
   ========================================================================== */
.settings-user-strip,
.settings-card-tile {
  background: linear-gradient(135deg, rgba(20, 30, 48, 0.72) 0%, rgba(13, 20, 36, 0.88) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.settings-card-tile[style*="display: none"] {
  display: none !important;
}

@media (min-width: 769px) {
  #settingsBioContainer {
    display: none !important;
  }
}

.settings-user-strip {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.btn-signout-compact {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #FCA5A5 !important;
  padding: 6px 14px !important;
  border-radius: 7px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  width: auto !important;
}

.btn-signout-compact:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
}

.settings-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
}

.settings-tile-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #94A3B8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  line-height: 1.3 !important;
}

.settings-card-tile button,
.settings-tile-header button,
#btnSettingsSubAction,
#btnToggleBiometrics,
#btnToggleTestPro,
.settings-tile-action {
  width: auto !important;
  max-width: fit-content !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  padding: 6px 13px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-align: center;
  border-radius: 7px !important;
}

.settings-tile-body {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.settings-tile-subtext {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
  line-height: 1.4;
}

.settings-tile-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.btn-sync-link {
  background: none;
  border: none;
  padding: 2px 4px;
  color: #38BDF8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.btn-sync-link:hover {
  color: #7DD3FC;
  text-decoration: underline;
}

.btn-bio-remove {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #FCA5A5 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.btn-bio-remove:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
}

.badge-bio-off {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
