:root {
  --bg: #071733;
  --panel: #12233e;
  --panel-dark: #081426;
  --border: rgba(146, 177, 230, 0.22);
  --text: #f8fafc;
  --muted: #9fb0c9;
  --primary: #4f8dfd;
  --accent: #77a7ff;
  --accent-strong: #7b86ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(79, 141, 253, 0.12), transparent 32%),
    linear-gradient(180deg, #08162c, #041127);
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px;
}

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

header {
  text-align: center;
  margin-bottom: 0;
  padding: 0;
  border-bottom: 0;
}

.header-shell {
  position: relative;
  max-width: 860px;
  margin: 0 auto 26px auto;
  border-radius: 30px;
  overflow: hidden;
  padding: 3px;
  display: flex;
}

.header-glow-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  height: 250%;
  background: conic-gradient(
    from 0deg,
    transparent 60%,
    #00f0ff 80%,
    #9d00ff 100%
  );
  transform: translate(-50%, -50%);
  animation: spinLed 4s linear infinite;
  z-index: 0;
}

.brand-header {
  width: 100%;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 18px;
  border-radius: 28px;
  border: 1px solid rgba(146, 177, 230, 0.2);
  background: linear-gradient(180deg, #0c1c38, #061123);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 12px;
}

.brand-title-text {
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(59, 130, 246, 0.12);
}

.logo-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow:
    inset 0 0 10px rgba(59, 130, 246, 0.1),
    0 0 10px rgba(59, 130, 246, 0.18);
}

.brand-header p {
  margin: 0;
  color: #d6e4ff;
  font-size: 20px;
  font-weight: 600;
  opacity: 0.95;
}

@keyframes spinLed {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulseLive {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
}

/* ===== HIDE OLD PANEL ===== */

.panel:not(.ticket-panel) {
  display: none !important;
}

/* ===== GENERIC ===== */

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

button:hover {
  opacity: 0.92;
}

#status {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: linear-gradient(180deg, rgba(18, 35, 62, 1), rgba(10, 22, 42, 1));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* ===== TOP STATS ===== */

.top-stat-card {
  margin-bottom: 18px;
}

.top-stat-collapsible {
  padding: 0;
  overflow: hidden;
}

.top-stat-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 24px;
  cursor: pointer;
}

.top-stat-toggle:hover {
  opacity: 1;
}

.top-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.top-stat-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #46b8ff;
  margin-bottom: 8px;
  font-weight: 800;
}

.top-stat-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.top-stat-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-stat-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(70, 184, 255, 0.12);
  border: 1px solid rgba(70, 184, 255, 0.3);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.top-stat-body {
  display: none;
  padding: 0 24px 24px;
}

.top-stat-body.open {
  display: block;
}

.top-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.top-mini-box {
  background: linear-gradient(145deg, #071733, #0a1f44);
  border: 1px solid rgba(146, 177, 230, 0.2);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.top-mini-box:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.15);
}

.top-mini-box .label {
  display: block;
  font-size: 12px;
  color: #9fb0c9;
  margin-bottom: 8px;
}

.top-mini-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 42px;
  font-weight: 900;
  color: white;
}

.top-mini-box small {
  font-size: 14px;
  color: #7dd3fc;
}

.top-mini-box.highlight {
  border: 1px solid #4f8dfd;
  background: linear-gradient(145deg, #0b2a5c, #0a1f44);
  box-shadow: 0 0 10px rgba(79, 141, 253, 0.3);
}

/* ===== TICKET ===== */

.ticket-panel {
  display: block !important;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(18, 35, 62, 0.96), rgba(7, 18, 38, 0.96));
  border: 1px solid rgba(146, 177, 230, 0.22);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.ticket-toggle {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.ticket-title-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#ticketArrow {
  margin-left: auto;
  color: #8ec5ff;
  font-size: 18px;
  line-height: 1;
}

#ai-ticket {
  margin-top: 16px;
}

.ticket-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(8, 20, 40, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow:
    0 0 10px rgba(59, 130, 246, 0.12),
    inset 0 0 8px rgba(59, 130, 246, 0.08);
}

.ticket-pick-text {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
  flex: 1;
}

.ticket-pick-strength {
  flex-shrink: 0;
  min-width: 58px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 14px;
  font-weight: 900;
}

.ticket-empty {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
}

/* ===== LEAGUES ===== */

.league-block {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(34, 54, 86, 0.92), rgba(4, 17, 39, 0.96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.league-header {
  width: 100%;
  background: transparent;
  color: white;
  border: none;
  padding: 24px 26px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.league-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 900;
}

.league-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.league-live-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 800;
}

.league-toggle-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.league-content {
  display: none;
  padding: 0 18px 18px;
}

.league-content.open {
  display: block;
}

/* ===== MATCH CARD ===== */

.match-card {
  margin: 18px;
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(16, 33, 60, 1), rgba(4, 18, 43, 1));
  border: 1px solid rgba(146, 177, 230, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.match-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 240, 255, 0.2),
    inset 0 0 15px rgba(157, 0, 255, 0.1);
}

.match-header {
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 22px 24px 18px;
  cursor: pointer;
}

.match-header:hover {
  opacity: 1;
}

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

.finished-badge,
.live-badge,
.scheduled-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  width: fit-content;
}

.half-badge {
  background: rgba(255, 165, 0, 0.15);
  color: orange;
  border: 1px solid rgba(255, 165, 0, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.finished-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.live-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid #ef4444;
}

.scheduled-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  animation: pulseLive 1s infinite;
}

.teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
}

.team-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.away-side {
  justify-content: flex-end;
  text-align: right;
}

.team-name-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.away-name-wrap {
  align-items: flex-end;
}

.team-name {
  word-break: break-word;
  line-height: 1.15;
}

.team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-score {
  font-weight: 900;
  font-size: 28px;
  color: #6bc5ff;
  margin-left: 8px;
  margin-right: 8px;
  min-width: 22px;
  text-align: center;
}

/* ===== TEAM FORM BADGES ===== */

.inline-team-form {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  flex-wrap: wrap;
}

.inline-team-form.empty {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
}

.form-badge {
  min-width: 25px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.form-badge-win {
  background: #16a34a;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.28);
}

.form-badge-draw {
  background: #6b7280;
  box-shadow: 0 0 10px rgba(107, 114, 128, 0.22);
}

.form-badge-loss {
  background: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.25);
}

.vs-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
}

.vs {
  opacity: 0.8;
  font-size: 16px;
  font-weight: 900;
}

.time {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.match-body {
  display: none;
  padding: 0 24px 24px;
}

.match-body.open {
  display: block;
}

/* ===== 1X2 ===== */

.market-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.market-pill {
  min-height: 88px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: #050a12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.market-pill:hover {
  background: rgba(123, 134, 255, 0.15);
  border-color: rgba(123, 134, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(123, 134, 255, 0.2);
}

.market-pill.active {
  background: rgba(123, 134, 255, 0.18);
  border-color: rgba(123, 134, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(123, 134, 255, 0.2) inset;
}

.market-pill.draw {
  justify-content: center;
  gap: 20px;
}

.market-left {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  font-size: 26px;
  font-weight: 900;
  color: white;
}

.market-right {
  font-size: 28px;
  font-weight: 900;
  color: white;
}

.market-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.market-short {
  font-size: 24px;
  font-weight: 900;
}

/* ===== COMPACT BOXES ===== */

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.compact-box {
  background: #051127;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  transition: all 0.2s ease;
}

.compact-box:hover {
  border-color: rgba(79, 141, 253, 0.5);
  background: rgba(79, 141, 253, 0.05);
}

.compact-box .label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.compact-box strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
}

/* ===== TOGGLE SECTIONS ===== */

.toggle-area {
  margin-top: 14px;
}

.toggle-btn {
  width: 100%;
  background: #07162d;
  border: 1px solid var(--border);
  color: #dbeafe;
  text-align: left;
  border-radius: 20px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  cursor: pointer;
}

.toggle-btn:hover {
  background: #0a2040;
  border-color: rgba(146, 177, 230, 0.4);
}

.toggle-content {
  display: none;
  margin-top: 12px;
}

.toggle-content.open {
  display: block;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-box {
  background: #051127;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
}

.detail-box .label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.detail-box strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: white;
}

.explanation {
  margin-top: 14px;
  line-height: 1.6;
  color: #dbeafe;
  font-size: 14px;
  background: rgba(6, 20, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 14px 16px;
}

/* ===== GOAL MATRIX ===== */

.matrix-wrap {
  margin-top: 18px;
}

.matrix-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #cbd5e1;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: #051127;
}

.matrix-table th,
.matrix-table td {
  border: 1px solid var(--border);
  text-align: center;
  padding: 8px;
  font-size: 12px;
}

.matrix-table th {
  background: #081424;
  color: #cbd5e1;
}

.matrix-table td {
  color: #f8fafc;
}

.top-prob {
  background: #ef4444;
  color: white;
  font-weight: 800;
}

.matrix-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

/* ===== ARROWS ===== */

.arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #9ecbff;
  transition: transform 0.25s ease;
  margin-left: 8px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(77, 163, 255, 0.35));
}

.arrow.open {
  transform: rotate(180deg);
}

.arrow.small {
  border-left-width: 6px;
  border-right-width: 6px;
  border-top-width: 8px;
  margin-left: 12px;
}
/* ===== MONTH ACCORDION STATS ===== */

.month-accordion {
  margin-bottom: 18px;
  overflow: hidden;
}

.month-accordion-header {
  width: 100%;
  background: transparent;
  color: inherit;
  border: 0;
  text-align: left;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.month-accordion-header:hover {
  opacity: 1;
}

.month-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  text-transform: capitalize;
}

.month-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.month-accordion-body {
  display: none;
  padding: 0 24px 24px;
}

.month-accordion-body.open {
  display: block;
}

.stats-inner-section {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(5, 17, 39, 0.42);
  border: 1px solid rgba(146, 177, 230, 0.14);
}

.stats-filter-card {
  margin-bottom: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stats-status {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
  font-weight: 700;
}

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

.monthly-ticket {
  border: 1px solid rgba(146, 177, 230, 0.18);
  border-radius: 20px;
  background: rgba(5, 17, 39, 0.58);
  padding: 16px;
  margin-top: 14px;
}

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

.monthly-ticket-header strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.monthly-ticket-header small {
  display: block;
  color: #9fb0c9;
  margin-top: 4px;
  font-weight: 700;
}

.monthly-picks {
  display: grid;
  gap: 10px;
}

.monthly-pick-row,
.monthly-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 8px;
}

.monthly-pick-main,
.monthly-match-main {
  min-width: 0;
}

.monthly-pick-main strong,
.monthly-match-main strong {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.3;
}

.monthly-pick-main small,
.monthly-match-main small {
  display: block;
  color: #9fb0c9;
  font-size: 12px;
  margin-top: 4px;
}

.monthly-hit-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-hit-label {
  color: #9fb0c9;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hit-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: white;
}

.hit-pill.hit {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #86efac;
}

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

.hit-pill.pending {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #cbd5e1;
}
/* ===== TOP NAV FIX ===== */

.brand-header .top-nav {
  margin-top: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(5, 17, 39, 0.72);
  border: 1px solid rgba(146, 177, 230, 0.18);
}

.brand-header .top-nav-link,
.brand-header .top-nav-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #dbeafe !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.brand-header .top-nav-link:hover {
  background: rgba(79, 141, 253, 0.16);
  color: #ffffff !important;
  text-decoration: none !important;
}

.brand-header .top-nav-link.active {
  background: linear-gradient(135deg, rgba(79, 141, 253, 0.95), rgba(123, 134, 255, 0.9));
  color: white !important;
  box-shadow: 0 0 14px rgba(79, 141, 253, 0.28);
}

/* Főoldali összesített AI stat elrejtése */
.home-ai-stats-hidden {
  display: none !important;
}

@media (max-width: 800px) {
  .brand-header .top-nav {
    width: 100%;
    display: flex;
  }

  .brand-header .top-nav-link {
    flex: 1;
    padding: 0 10px;
    font-size: 13px;
  }
}
/* ===== DAY ACCORDION INSIDE MONTHLY STATS ===== */

.day-accordion {
  padding: 0;
  overflow: hidden;
}

.day-accordion-header {
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.day-accordion-header:hover {
  opacity: 1;
  background: rgba(79, 141, 253, 0.06);
}

.day-accordion-header strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.day-accordion-header small {
  display: block;
  color: #9fb0c9;
  margin-top: 4px;
  font-weight: 700;
}

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

.day-accordion-body {
  display: none;
  padding: 0 16px 16px;
}

.day-accordion-body.open {
  display: block;
}

@media (max-width: 800px) {
  .day-accordion-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .day-header-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 800px) {
  .month-accordion-header,
  .stats-filter-card,
  .stats-section-header,
  .monthly-ticket-header,
  .monthly-pick-row,
  .monthly-match-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .month-header-right {
    justify-content: flex-start;
  }

  .monthly-hit-group {
    justify-content: flex-start;
  }

  .month-title {
    font-size: 22px;
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 800px) {
  .container {
    padding: 14px;
  }

  .top-stat-toggle {
    padding: 18px;
  }

  .top-stat-body {
    padding: 0 18px 18px;
  }

  .top-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .top-mini-box {
    min-width: 0;
    padding: 16px 12px;
    border-radius: 18px;
  }

  .top-mini-box strong {
    font-size: 34px;
  }

  .top-mini-box .label {
    font-size: 11px;
    line-height: 1.3;
  }

  .league-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
  }

  .league-title-wrap {
    font-size: 18px;
  }

  .league-logo {
    width: 22px;
    height: 22px;
  }

  .league-meta {
    justify-content: flex-start;
  }

  .match-card {
    margin: 14px;
    border-radius: 26px;
  }

  .match-header {
    padding: 18px;
  }

  .match-body {
    padding: 0 18px 18px;
  }

  .teams-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    font-size: 18px;
  }

  .team-side {
    min-width: 0;
    gap: 8px;
  }

  .away-side {
    min-width: 0;
  }

  .team-name-wrap {
    gap: 5px;
  }

  .team-name {
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .inline-team-form {
    gap: 3px;
    min-height: 19px;
  }

  .form-badge {
    min-width: 21px;
    height: 19px;
    padding: 0 5px;
    font-size: 9px;
  }

  .team-logo {
    width: 22px;
    height: 22px;
  }

  .team-score {
    font-size: 24px;
    min-width: 18px;
    margin-left: 4px;
    margin-right: 4px;
  }

  .vs-block {
    min-width: 28px;
  }

  .vs {
    font-size: 14px;
  }

  .market-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .market-pill {
    min-width: 0;
    min-height: 74px;
    padding: 10px 8px;
    border-radius: 18px;
  }

  .market-left,
  .market-right {
    font-size: 16px;
  }

  .market-logo {
    width: 24px;
    height: 24px;
  }

  .compact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .ticket-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .ticket-toggle {
    font-size: 18px;
  }

  .ticket-pick {
    padding: 12px 14px;
    border-radius: 14px;
    gap: 10px;
  }

  .ticket-pick-text {
    font-size: 14px;
  }

  .ticket-pick-strength {
    min-width: 52px;
    padding: 7px 8px;
    font-size: 13px;
  }

  .header-shell {
    max-width: 100%;
    border-radius: 22px;
  }

  .brand-header {
    padding: 22px 14px;
    border-radius: 20px;
  }

  .logo-title {
    gap: 12px;
    margin-bottom: 10px;
  }

  .brand-title-text {
    font-size: 44px;
  }

  .logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    padding: 5px;
  }

  .brand-header p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .top-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .top-mini-box {
    padding: 14px 10px;
  }

  .top-mini-box strong {
    font-size: 30px;
  }

  .team-name {
    font-size: 13px;
  }

  .inline-team-form {
    gap: 2px;
  }

  .form-badge {
    min-width: 19px;
    height: 18px;
    padding: 0 4px;
    font-size: 8px;
  }

  .team-score {
    font-size: 22px;
    min-width: 18px;
  }

  .market-pill {
    min-height: 68px;
    padding: 8px 6px;
  }

  .market-left,
  .market-right {
    font-size: 15px;
  }

  .market-logo {
    width: 22px;
    height: 22px;
  }

  .compact-box,
  .detail-box {
    padding: 16px;
  }

  .compact-box strong,
  .detail-box strong {
    font-size: 22px;
  }

  .toggle-btn {
    padding: 14px 16px;
    font-size: 14px;
  }

  .ticket-toggle {
    font-size: 16px;
  }

  .ticket-pick {
    flex-direction: column;
    align-items: flex-start;
  }

  .ticket-pick-strength {
    min-width: 0;
    align-self: flex-end;
  }

  .ticket-pick-text {
    width: 100%;
    font-size: 13px;
  }

  .brand-title-text {
    font-size: 34px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .brand-header p {
    font-size: 14px;
  }
}