/* ═══════════════════════════════════════════════
   MAX API GAMES — Page-Specific Styles
   ═══════════════════════════════════════════════ */

/* ─── LIVE FEED ─── */
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 1px;
}
.live-bet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.live-bet-item.visible { opacity: 1; transform: translateY(0); }
.live-bet-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}
.live-bet-icon.win { background: rgba(34,197,94,0.15); color: #22c55e; }
.live-bet-icon.loss { background: rgba(239,68,68,0.15); color: #ef4444; }
.live-bet-content { flex: 1; min-width: 0; }
.live-bet-title { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bet-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.live-bet-amount { font-size: 12px; font-weight: 600; white-space: nowrap; }
.live-bet-amount.positive { color: #22c55e; }
.live-bet-amount.negative { color: #ef4444; }
.live-bet-time { font-size: 10px; color: var(--text-dim); white-space: nowrap; }
@keyframes kpi-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.kpi-pulse { animation: kpi-pulse 0.4s ease; }

/* ─── LOGIN PAGE ─── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  opacity: 0;
  animation: fadeInUp 600ms var(--ease-out) 100ms forwards;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.login-logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.3));
}

.login-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 28px;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-mode-toggle {
  text-align: center;
  margin-top: 16px;
}

.login-mode-toggle a {
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
  transition: color 200ms var(--ease);
}

.login-mode-toggle a:hover { color: var(--text-1); }

.login-error {
  padding: 10px 14px;
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--red);
  display: none;
}

.login-error.visible { display: block; }

/* ═══════════════════════════════════════════════
   DASHBOARD PAGE
   Exact copy of dashboard-1/css/styles.css
   ═══════════════════════════════════════════════ */

/* ─── HERO TITLE ─── */
.hero-title h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.hero-icon-wrap { display: inline-flex; vertical-align: middle; margin: 0 4px; }
.hero-icon-wrap svg { width: 26px; height: 26px; color: var(--blue); }

/* ─── KPI CARD ─── */
.dashboard-home .kpi-card { padding: 20px 24px 24px; }
.kpi-tabs { display: flex; gap: 4px; margin-bottom: 20px; }

.kpi-tab {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all 200ms var(--ease);
}

.kpi-tab:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.04); }
.kpi-tab.active { color: var(--text-1); background: rgba(255, 255, 255, 0.06); border-color: var(--border); }

.kpi-value-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }

.kpi-prefix {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1;
  align-self: flex-start;
  padding-top: 12px;
}

.kpi-value {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.kpi-delta { display: flex; flex-direction: column; gap: 2px; }

.delta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.delta-value svg { width: 14px; height: 14px; }
.delta-label { font-size: 11px; color: var(--text-3); }

.kpi-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  margin: 8px 0 16px;
}

.kpi-status .status-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}

/* Gradient Bar */
.gradient-bar { position: relative; height: 6px; border-radius: 3px; }

.gradient-track {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #06b6d4);
  opacity: 0.8;
}

.gradient-indicator {
  position: absolute;
  top: 50%;
  left: 82%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ─── SEARCH WRAPPER ─── */
.search-wrapper { padding-top: 8px; }

/* ─── METRICS ROW ─── */
.metrics-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Dashboard metric overrides (dashboard-1 sizes) */
.dashboard-home .metric-big { font-size: 40px; }
.dashboard-home .metric-small { font-size: 18px; }
.dashboard-home .metric-unit { font-size: 24px; }
.dashboard-home .metric-value-row { margin-bottom: 12px; }

/* Provider Dots */
.metric-dots { display: flex; gap: 5px; flex-wrap: wrap; }

.provider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: transform 200ms var(--ease);
}

.provider-dot:hover { transform: scale(1.5); }
.provider-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green-glow); }
.provider-dot.offline { background: var(--red); box-shadow: 0 0 6px var(--red-glow); }
.provider-dot.partial { background: var(--orange); box-shadow: 0 0 6px rgba(249, 115, 22, 0.4); }

/* Success Bar */
.success-bar { width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }

.success-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), #34d399);
  transition: width 1.5s var(--ease-out);
}

/* ─── ALERTS CARD ─── */
.alerts-card { padding: 0; }
.alerts-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.alerts-header h3 { font-size: 14px; font-weight: 600; }

.alert-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--red-glow);
}

.card-chevron { width: 16px; height: 16px; color: var(--text-3); transition: transform 200ms var(--ease); }
.glass-card:hover .card-chevron { transform: translateY(2px); }

/* ─── CHART CARD ─── */
.dashboard-home .chart-card { padding: 20px 20px 8px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chart-header h3 { font-size: 14px; font-weight: 600; }
.chart-body { position: relative; }

.chart-badge {
  position: absolute;
  bottom: 12px;
  left: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.chart-badge-value { font-size: 18px; font-weight: 700; }
.chart-badge-label { font-size: 11px; color: var(--green); font-weight: 500; }

/* ─── TOP GLOBAL GAMES ─── */

@keyframes amber-breathe {
  0%, 100% {
    border-color: rgba(217,119,6,0.2);
    box-shadow:
      0 0 0 1px rgba(217,119,6,0.06),
      0 0 20px -4px rgba(234,179,8,0.07),
      0 0 40px -8px rgba(249,115,22,0.04);
  }
  50% {
    border-color: rgba(234,179,8,0.32);
    box-shadow:
      0 0 0 1px rgba(234,179,8,0.1),
      0 0 25px -4px rgba(234,179,8,0.12),
      0 0 50px -8px rgba(249,115,22,0.07);
  }
}

@keyframes corner-bloom-tl {
  0%, 100% { opacity: 0.4; }
  40% { opacity: 0.9; }
  70% { opacity: 0.3; }
}

@keyframes corner-bloom-br {
  0%, 100% { opacity: 0.3; }
  30% { opacity: 0.2; }
  60% { opacity: 0.85; }
}

.top-global-section {
  padding: 20px;
  position: relative;
  overflow: hidden;
  border-color: rgba(217,119,6,0.2) !important;
  animation: amber-breathe 6s ease-in-out infinite;
}

/* Warm inner wash — top-left corner hotspot */
.top-global-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(234,179,8,0.06) 0%, rgba(249,115,22,0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: corner-bloom-tl 8s ease-in-out infinite;
}

/* Bottom-right corner warmth */
.top-global-section::after {
  content: '';
  position: absolute;
  bottom: -25%;
  right: -15%;
  width: 55%;
  height: 65%;
  background: radial-gradient(ellipse, rgba(249,115,22,0.05) 0%, rgba(153,27,27,0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: corner-bloom-br 8s ease-in-out infinite;
}

/* Repurpose glow div as subtle edge highlight on top border */
.top-global-section .tg-fire-glow {
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234,179,8,0.25), rgba(249,115,22,0.15), transparent);
  pointer-events: none;
  z-index: 2;
}

.tg-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; position: relative; z-index: 1; }
.tg-title-row { display: flex; align-items: center; gap: 8px; }
.tg-icon {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(234,179,8,0.18), rgba(249,115,22,0.12));
  color: #eab308;
  box-shadow: 0 0 12px -2px rgba(234,179,8,0.15);
}
.tg-header h3 { font-size: 15px; font-weight: 700; background: linear-gradient(90deg, #eab308, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tg-period-tabs { display: flex; gap: 2px; background: rgba(255,255,255,0.04); border-radius: 8px; padding: 3px; }
.tg-tab { padding: 4px 10px; border: none; border-radius: 6px; background: transparent; color: var(--text-3); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.tg-tab:hover { color: var(--text-1); }
.tg-tab.active { background: rgba(234,179,8,0.15); color: #eab308; }
.tg-legend { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.5; }
.tg-list { display: flex; flex-direction: column; gap: 1px; }

.tg-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; transition: background .15s; }
.tg-item:hover { background: rgba(255,255,255,0.03); }
.tg-pos { width: 22px; font-size: 11px; font-weight: 800; text-align: center; flex-shrink: 0; }
.tg-pos.gold { color: #eab308; }
.tg-pos.silver { color: #94a3b8; }
.tg-pos.bronze { color: #cd7f32; }
.tg-pos.normal { color: var(--text-3); }
.tg-info { flex: 1; min-width: 0; }
.tg-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-provider { display: inline-block; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-top: 2px; letter-spacing: 0.3px; }
.tg-bar-wrap { width: 60px; flex-shrink: 0; }
.tg-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
.tg-bar-fill { height: 100%; border-radius: 2px; transition: width .4s ease; }
.tg-pct { width: 42px; text-align: right; font-size: 12px; font-weight: 700; flex-shrink: 0; color: var(--text-2); }

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(3px); opacity: 1; }
}
.tg-hint { color: #eab308; animation: hint-bounce 2s ease-in-out infinite; display: flex; align-items: center; }

.tg-expand-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 12px; padding: 10px; border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px; background: transparent; color: var(--text-3); font-size: 12px;
  font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit;
}
.tg-expand-btn:hover { background: rgba(255,255,255,0.03); color: var(--text-2); border-color: rgba(255,255,255,0.15); }
.tg-expand-btn.expanded i { transform: rotate(180deg); }

/* ─── PROVIDER GAMES LIST ─── */
.provider-games-list { max-height: 400px; overflow-y: auto; padding: 4px 0; }

/* ─── GAMES ONLINE BAR ─── */
.games-online-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; gap: 12px; }
.gob-left { display: flex; align-items: center; gap: 10px; }
.gob-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--blue-dim); flex-shrink: 0; }
.gob-label { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.gob-value { font-size: 20px; font-weight: 800; color: var(--text-1); line-height: 1; }
.gob-total { font-size: 13px; font-weight: 500; color: var(--text-3); }
.gob-dots { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ─── RANKED LIST (Jogos Mais Jogados) ─── */
.ranked-section { padding: 20px; }
.ranked-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ranked-header h3 { font-size: 16px; font-weight: 700; }
.ranked-period { font-size: 11px; color: var(--text-3); font-weight: 500; }
.games-toggle { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border-radius: 8px; padding: 3px; }
.games-toggle-btn { display: flex; align-items: center; gap: 5px; padding: 5px 12px; border: none; border-radius: 6px; background: transparent; color: var(--text-3); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.games-toggle-btn:hover { color: var(--text-1); }
.games-toggle-btn.active { background: rgba(34,197,94,0.15); color: var(--green); }

.ranked-list { display: flex; flex-direction: column; gap: 2px; }

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 200ms var(--ease);
  cursor: default;
}

.rank-item:hover { background: rgba(255, 255, 255, 0.03); }

.rank-pos {
  width: 24px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
}

.rank-pos.gold { color: var(--yellow); }
.rank-pos.silver { color: #94a3b8; }
.rank-pos.bronze { color: #d97706; }
.rank-pos.default { color: var(--text-3); }

.rank-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.rank-icon svg { width: 16px; height: 16px; }

.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rank-provider-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 1px;
}

.rank-bar-wrap { width: 56px; flex-shrink: 0; }

.rank-bar {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rank-bar-fill { height: 100%; border-radius: 2px; }

.rank-value {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}

.rank-value-label {
  font-size: 9px;
  color: var(--text-3);
  text-align: right;
  display: block;
}

/* ─── TRENDING / JOGOS EM ALTA ─── */
.trending-section { padding: 20px; }
.trending-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.trending-header h3 { font-size: 16px; font-weight: 700; }

.trending-list { display: flex; flex-direction: column; gap: 6px; }

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 200ms var(--ease);
}

.trending-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-hover);
}

.trending-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trending-icon svg { width: 18px; height: 18px; }

.trending-info { flex: 1; min-width: 0; }
.trending-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }

.trending-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-3);
}

.trending-new-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--green-dim);
  color: var(--green);
}

.trending-right { text-align: right; flex-shrink: 0; }

.trending-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}

.trending-percent svg { width: 13px; height: 13px; }

.trending-amount {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

/* ─── PROVIDERS SECTION ─── */
.providers-section { padding: 20px; }
.providers-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.providers-header h3 { font-size: 16px; font-weight: 700; }
.providers-count { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.providers-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-3); }

.providers-list { display: flex; flex-direction: column; gap: 4px; }

.provider-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 200ms var(--ease);
}

.provider-item:hover { background: rgba(255, 255, 255, 0.04); }
.provider-item.active { background: rgba(255, 255, 255, 0.05); }

.provider-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.provider-badge svg { width: 16px; height: 16px; }
.provider-info { flex: 1; min-width: 0; }
.provider-item-name { font-size: 13px; font-weight: 600; margin-bottom: 1px; }
.provider-item-meta { font-size: 11px; color: var(--text-3); }
.provider-amount { text-align: right; }
.provider-amount-value { font-size: 14px; font-weight: 700; letter-spacing: -0.3px; }
.provider-amount-label { font-size: 9px; color: var(--text-3); text-align: right; }
.provider-arrow { color: var(--text-3); flex-shrink: 0; }
.provider-arrow svg { width: 14px; height: 14px; }

/* ─── DETAIL PANEL EXTRAS ─── */
.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--green-dim);
  color: var(--green);
}

.detail-badge svg { width: 14px; height: 14px; }

.detail-name { font-size: 16px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }

.detail-amount-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.detail-amount { font-size: 44px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.detail-meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-top: 8px; }
.detail-meta-label { font-size: 11px; color: var(--text-3); }
.detail-meta-value { font-size: 13px; font-weight: 500; color: var(--text-2); }
.detail-amount-label { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }

/* Detail Progress */
.detail-progress { margin-bottom: 24px; }

.detail-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
  overflow: hidden;
}

.detail-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 800ms var(--ease-out);
}

.detail-progress-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }

/* Detail Tabs */
.detail-tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }

.detail-tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  padding-bottom: 12px;
  position: relative;
  transition: color 200ms var(--ease);
}

.detail-tab:hover { color: var(--text-2); }
.detail-tab.active { color: var(--text-1); }

.detail-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-1);
  border-radius: 1px;
}

/* ─── CHANGELOG (vertical timeline) ─── */
.timeline { flex: 1; overflow-y: auto; margin-bottom: 20px; padding-right: 4px; }
.changelog-item { display: flex; gap: 12px; }
.changelog-line { display: flex; flex-direction: column; align-items: center; width: 12px; flex-shrink: 0; }
.changelog-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.changelog-connector { width: 1px; flex: 1; min-height: 16px; background: rgba(255,255,255,0.08); }
.changelog-content { flex: 1; min-width: 0; padding-bottom: 16px; }
.changelog-date { font-size: 10px; font-weight: 500; color: var(--text-3); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.changelog-title { font-size: 13px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.changelog-desc { font-size: 11px; color: var(--text-3); line-height: 1.4; }

/* ─── DETAIL ACTIONS ─── */
.detail-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 200ms var(--ease);
  white-space: nowrap;
}

.action-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-1); border-color: var(--border-hover); }
.action-btn svg { width: 14px; height: 14px; }

/* ─── GAME CAROUSEL ─── */
.col-carousel {
  position: sticky;
  top: 0;
  height: calc(100vh - 112px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carousel-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0;
  flex-shrink: 0;
  text-align: center;
}

.carousel-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}

.carousel-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform;
}

.game-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.game-cover:hover {
  transform: scale(1.04);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.game-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.game-cover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}

.game-cover-play svg { width: 16px; height: 16px; color: #fff; }

.game-cover:hover .game-cover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
}

.game-cover-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.game-cover-provider {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-3);
}

.game-cover-new {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px var(--green-glow);
}

/* ─── DASHBOARD STAGGER ANIMATION ─── */
.dashboard-home .col-left > *,
.dashboard-home .col-right > *,
.dashboard-home .metrics-row > *,
.dashboard-home .col-carousel {
  opacity: 0;
  animation: fadeInUp 500ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 100ms);
}

/* ─── DASHBOARD RESPONSIVE ─── */
@media (max-width: 1200px) {
  .detail-panel { transform: translateX(100%); opacity: 0; pointer-events: none; }
  .detail-panel.visible { transform: translateX(0); opacity: 1; pointer-events: auto; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); }
}

@media (max-width: 1400px) {
  .dashboard-grid { grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.3fr); }
  .col-carousel { display: none; }
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   OTHER PAGES
   ═══════════════════════════════════════════════ */

/* ─── AGENTS PAGE ─── */
.agent-cards { display: flex; flex-direction: column; gap: 16px; }

.agent-card { padding: 0; overflow: hidden; }
.agent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.agent-card-name { font-size: 16px; font-weight: 700; }
.agent-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }

.agent-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.agent-stats { display: flex; gap: 24px; }
.agent-stat-label { font-size: 11px; color: var(--text-3); }
.agent-stat-value { font-size: 14px; font-weight: 600; }

/* ─── GAMES PAGE ─── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.game-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.game-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-thumbnail-gradient {
  position: absolute;
  inset: 0;
}

.game-thumbnail-label {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 800;
  opacity: 0.3;
  letter-spacing: 2px;
}

.game-card-body { padding: 12px 16px; }
.game-card-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-card-provider { font-size: 11px; color: var(--text-3); }
.game-card-rtp { font-size: 11px; font-weight: 600; color: var(--green); }

/* ─── HISTORY PAGE ─── */
.history-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }

.summary-card {
  padding: 16px;
  text-align: center;
}

.summary-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.summary-value { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }

/* ─── DOCS PAGE ─── */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.docs-nav {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
  transition: all 200ms var(--ease);
  cursor: pointer;
}

.docs-nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-1); }
.docs-nav-item.active { background: var(--blue-dim); color: var(--blue); }

.docs-content { display: flex; flex-direction: column; gap: 24px; }

.docs-section { padding: 20px; }
.docs-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.docs-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.docs-section p { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }

.endpoint-card { padding: 0; overflow: hidden; }

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 200ms var(--ease);
}

.endpoint-header:hover { background: rgba(255, 255, 255, 0.02); }

.endpoint-method {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--blue-dim);
  color: var(--blue);
}

.endpoint-name { font-size: 14px; font-weight: 600; flex: 1; }
.endpoint-chevron { color: var(--text-3); transition: transform 200ms var(--ease); }
.endpoint-card.expanded .endpoint-chevron { transform: rotate(180deg); }

.endpoint-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.endpoint-card.expanded .endpoint-body { display: block; padding-top: 16px; }

.endpoint-desc { font-size: 13px; color: var(--text-2); margin-bottom: 16px; line-height: 1.6; }

.endpoint-example-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  margin-top: 12px;
}

/* ─── SETTINGS PAGE ─── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.settings-card { padding: 0; }
.settings-card .card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.settings-card .card-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.settings-card .card-header h3 .settings-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-card .card-header h3 .settings-icon svg { width: 16px; height: 16px; }
.settings-card .card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.settings-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.settings-info-row:last-child { border-bottom: none; }
.settings-info-label { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.settings-info-label svg { width: 14px; height: 14px; opacity: 0.5; }
.settings-info-value { font-size: 13px; font-weight: 500; }

@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; }
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-group input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: 0 0 8px var(--blue-glow);
}

.slider-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  min-width: 48px;
  text-align: right;
}

/* ─── RESPONSIVE OVERRIDES ─── */
@media (max-width: 1200px) {
  .history-summary { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  /* History summary */
  .history-summary { grid-template-columns: repeat(2, 1fr); }

  /* Summary cards */
  .summary-card { padding: 12px; }
  .summary-value { font-size: 18px; }
  .summary-label { font-size: 10px; }

  /* KPI card */
  .dashboard-home .kpi-card { padding: 16px; }
  .kpi-value { font-size: 36px; }
  .kpi-prefix { font-size: 20px; padding-top: 8px; }
  .kpi-value-row { flex-wrap: wrap; gap: 8px; }

  /* Metrics row */
  .metrics-row { grid-template-columns: 1fr; }

  /* Docs layout */
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }

  /* Settings */
  .form-row { grid-template-columns: 1fr; }

  /* Agent cards */
  .agent-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .agent-stats { flex-wrap: wrap; gap: 12px; }

  /* Games grid */
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

  /* Dashboard grid */
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .col-carousel { display: none !important; }

  /* Live feed */
  .live-feed-list { max-height: 200px !important; }

  /* Ranked section */
  .rank-bar-wrap { display: none; }
}

@media (max-width: 600px) {
  .history-summary { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .kpi-value { font-size: 28px; }
  .kpi-prefix { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
}
