:root {
  --bg: #0a0e17;
  --bg2: #111827;
  --card-bg: rgba(15, 23, 42, 0.9);
  --card-border: rgba(255,255,255,0.08);
  --fg: #f8fafc;
  --muted: #94a3b8;
  --home: #ef4444;
  --away: #3b82f6;
  --draw: #facc15;
  --emerald: #10b981;
  --amber: #f59e0b;
  --crimson: #d1121f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}
h1, h2, h3 { font-family: 'Bebas Neue', system-ui; letter-spacing: 0.02em; }

/* ===== HEADER ===== */
.app-header {
  text-align: center;
  padding: 20px 16px 12px;
  background: linear-gradient(180deg, rgba(15,23,42,0.95) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--card-border);
}
.app-header h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #60a5fa, #f8fafc, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-header .subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* ===== BOTTOM TAB BAR ===== */
.bottom-tabs {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.tab-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 6px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.tab-link i, .tab-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.tab-link:hover { color: var(--fg); }
.tab-link.active { color: #fff; }
.tab-link.active i, .tab-link.active svg { color: var(--away); }
.tab-link.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%; right: 25%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--away);
  box-shadow: 0 0 8px rgba(59,130,246,0.5);
}
/* Space for bottom bar */
#app-shell { padding-bottom: 70px; }
.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease;
  padding: 16px;
}
.tab-panel.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .emoji { font-size: 1.2rem; }

/* ===== SIGNAL CARDS ===== */
.signal-card {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.signal-card.streak { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.signal-card.empate { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.signal-card.vies { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.signal-card.xadrez { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3); color: #d8b4fe; }
.signal-card.no-signal { background: rgba(255,255,255,0.03); border: 1px solid var(--card-border); color: var(--muted); }
.signal-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.signal-body { font-size: 0.82rem; opacity: 0.85; }
.signal-entrada {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-left: auto;
}
.signal-entrada.home { background: rgba(239,68,68,0.2); color: #fca5a5; }
.signal-entrada.away { background: rgba(59,130,246,0.2); color: #93c5fd; }
.signal-entrada.draw { background: rgba(250,204,21,0.2); color: #fde68a; }

/* Entrada sugerida */
.entrada-sugerida { overflow: hidden; }
.entrada-sugerida.hidden { display: none; }
.entrada-big {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  margin-top: 8px;
}
.entrada-big.home {
  background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.05));
  border: 2px solid rgba(239,68,68,0.4);
}
.entrada-big.away {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.05));
  border: 2px solid rgba(59,130,246,0.4);
}
.entrada-big.draw {
  background: linear-gradient(135deg, rgba(250,204,21,0.2), rgba(250,204,21,0.05));
  border: 2px solid rgba(250,204,21,0.4);
}
.entrada-cor {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}
.entrada-big.home .entrada-cor { color: var(--home); }
.entrada-big.away .entrada-cor { color: var(--away); }
.entrada-big.draw .entrada-cor { color: var(--draw); }
.entrada-padrao {
  font-size: 0.85rem;
  color: var(--fg);
  margin-top: 4px;
  font-weight: 600;
}
.entrada-confianca {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== DOTS (timeline) ===== */
.dots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-h { background: var(--home); }
.dot-a { background: var(--away); }
.dot-d { background: var(--draw); }

.pct-row {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 600;
}
.pct-row .pct-item { display: flex; align-items: center; gap: 6px; }
.pct-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ===== DRAW ALERT ===== */
.draw-alert {
  padding: 16px;
  border-radius: 14px;
  text-align: center;
}
.draw-alert.recent { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); }
.draw-alert.normal { background: var(--card-bg); border: 1px solid var(--card-border); }
.draw-alert.delayed { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); }
.draw-alert h3 { font-size: 1.3rem; margin-bottom: 8px; }
.draw-alert p { font-size: 0.85rem; color: var(--muted); margin: 4px 0; }
.draw-alert strong { color: var(--fg); }
.intervals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.interval-chip {
  background: rgba(0,0,0,0.3);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}
.post-draw-stats {
  margin-top: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}
.post-draw-stats h4 { font-size: 0.95rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.post-draw-pcts {
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

/* ===== SHOE CARDS ===== */
.shoes-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.shoe-card {
  background: var(--bg2);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}
.shoe-card .shoe-id { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.shoe-card .shoe-time { font-size: 0.7rem; color: var(--muted); margin-bottom: 6px; }
.shoe-card .shoe-dots { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 6px; }
.shoe-card .shoe-dots .dot { width: 6px; height: 6px; }
.shoe-card .shoe-pcts { display: flex; gap: 10px; font-size: 0.7rem; font-weight: 600; }
.shoe-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  margin-left: 6px;
}
.shoe-badge.hot { background: rgba(239,68,68,0.2); color: #fca5a5; }
.shoe-badge.cold { background: rgba(59,130,246,0.2); color: #93c5fd; }

/* ===== CHART ===== */
.chart-container { position: relative; height: 220px; }
.chart-container canvas { max-height: 100%; }

/* ===== SHOE STATS SUMMARY ===== */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-box {
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
}
.stat-box .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Bebas Neue', sans-serif;
}
.stat-box .stat-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.stat-box.home .stat-value { color: var(--home); }
.stat-box.away .stat-value { color: var(--away); }
.stat-box.draw .stat-value { color: var(--draw); }

/* ===== SINAIS ABA JOGAR ===== */
.jogar-sinais { margin-bottom: 10px; }
.jogar-entrada {
  text-align: center;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  animation: pulse-entrada 2s ease-in-out infinite;
}
@keyframes pulse-entrada {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 20px rgba(255,255,255,0.06); }
}
.jogar-entrada.home {
  background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.06));
  border: 2px solid rgba(239,68,68,0.4);
}
.jogar-entrada.away {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.06));
  border: 2px solid rgba(59,130,246,0.4);
}
.jogar-entrada.draw {
  background: linear-gradient(135deg, rgba(250,204,21,0.2), rgba(250,204,21,0.06));
  border: 2px solid rgba(250,204,21,0.4);
}
.jogar-entrada-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.jogar-entrada-cor {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: 'Bebas Neue', sans-serif;
}
.jogar-entrada.home .jogar-entrada-cor { color: var(--home); }
.jogar-entrada.away .jogar-entrada-cor { color: var(--away); }
.jogar-entrada.draw .jogar-entrada-cor { color: var(--draw); }
.jogar-entrada-info {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}
.jogar-sinais-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.jogar-chip {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.jogar-chip.ok { background: rgba(16,185,129,0.15); color: var(--emerald); border: 1px solid rgba(16,185,129,0.25); }
.jogar-chip.warn { background: rgba(245,158,11,0.15); color: var(--amber); border: 1px solid rgba(245,158,11,0.25); }
.jogar-chip.home { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.jogar-chip.away { background: rgba(59,130,246,0.12); color: #93c5fd; border: 1px solid rgba(59,130,246,0.2); }
.jogar-chip.draw { background: rgba(250,204,21,0.12); color: #fde68a; border: 1px solid rgba(250,204,21,0.2); }
.jogar-no-signal {
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== GAME IFRAME ===== */
.game-frame-wrap {
  width: 100%;
  height: 70vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.game-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  flex-direction: column;
  gap: 12px;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--away);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HISTORY TABLE ===== */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.history-table thead {
  background: rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
}
.history-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.history-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.history-table tr:hover td { background: rgba(255,255,255,0.02); }
.history-table .shoe-change {
  background: rgba(250,204,21,0.08);
  text-align: center;
  font-weight: 600;
  color: var(--draw);
  font-size: 0.75rem;
}
.result-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}
.result-badge.home { background: rgba(239,68,68,0.2); color: #fca5a5; }
.result-badge.away { background: rgba(59,130,246,0.2); color: #93c5fd; }
.result-badge.draw { background: rgba(250,204,21,0.2); color: #fde68a; }

/* ===== LOGIN MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.modal-card {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(15,20,35,0.97);
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.modal-card h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
  text-align: center;
}
.modal-card .modal-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.input-group {
  margin-bottom: 12px;
}
.input-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.input-group input:focus {
  border-color: var(--away);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.input-group input::placeholder { color: rgba(255,255,255,0.3); }
.btn-primary {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--away), #2563eb);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,0.35); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.login-error {
  color: #fca5a5;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 10px;
}
.login-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.login-footer a {
  color: var(--away);
  text-decoration: none;
  font-weight: 600;
}
.login-footer a:hover { text-decoration: underline; }

/* Auth states */
body.auth-locked #app-shell { filter: blur(4px); pointer-events: none; user-select: none; }
body.auth-unlocked .modal-backdrop { display: none !important; }

/* ===== PROFILE TAB ===== */
.profile-card {
  text-align: center;
  padding: 24px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--away), var(--draw));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px;
}
.profile-email {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.profile-since {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.btn-logout {
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .app-header h1 { font-size: 1.6rem; }
  .tab-link { font-size: 0.65rem; padding: 10px 2px 8px; }
  .tab-panel { padding: 12px; }
  .shoes-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-summary { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat-box .stat-value { font-size: 1.2rem; }
}

/* ===== TREND PANEL ===== */
.trend-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.trend-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
}
.trend-chip.high-home { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.25); color: #fca5a5; }
.trend-chip.high-away { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.25); color: #93c5fd; }
.trend-chip.high-draw { background: rgba(250,204,21,0.12); border-color: rgba(250,204,21,0.25); color: #fde68a; }

/* ===== SCROLLABLE TABLE WRAP ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

/* ===== CURSO (Module/Lesson Player) ===== */
.curso-layout {
  display: flex;
  height: calc(100vh - 140px);
  overflow: hidden;
  position: relative;
}
.curso-sidebar {
  width: 280px;
  background: rgba(10,14,23,0.98);
  border-right: 1px solid var(--card-border);
  overflow-y: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  z-index: 50;
}
.curso-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
}
.curso-sidebar-header h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.curso-sidebar-close {
  background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer;
  display: none;
}
.curso-progress-mini { padding: 12px 16px; border-bottom: 1px solid var(--card-border); }
.curso-module-list { list-style: none; padding: 0; margin: 0; }
.curso-module-item { border-bottom: 1px solid rgba(255,255,255,0.04); }
.curso-module-item.completed .curso-module-header { color: var(--emerald); }
.curso-module-header {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.curso-lesson-list { list-style: none; padding: 0; margin: 0; }
.curso-lesson-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 24px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.82rem;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.curso-lesson-link:hover { background: rgba(255,255,255,0.04); }
.curso-lesson-link.active {
  background: rgba(59,130,246,0.1);
  border-left-color: var(--away);
  color: #fff;
  font-weight: 600;
}
.curso-lesson-link.done .lesson-check { color: var(--emerald); }
.lesson-check { font-size: 0.8rem; flex-shrink: 0; width: 20px; text-align: center; }
.lesson-name { flex: 1; }
.lesson-time { font-size: 0.65rem; color: var(--muted); flex-shrink: 0; }

.curso-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  min-width: 0;
}
.curso-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.curso-menu-btn {
  display: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--fg);
  font-size: 0.8rem;
  cursor: pointer;
}
.curso-read-time { font-size: 0.75rem; color: var(--muted); }
.curso-lesson-title {
  font-size: 1.6rem;
  font-family: 'Bebas Neue', sans-serif;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #60a5fa, #f8fafc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.curso-lesson-body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #cbd5e1;
}
.curso-lesson-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin: 20px 0 10px;
}
.curso-lesson-body ul, .curso-lesson-body ol { padding-left: 20px; margin: 8px 0; }
.curso-lesson-body li { margin-bottom: 4px; }
.curso-lesson-body p { margin: 8px 0; }
.curso-lesson-body .text-home { color: var(--home); font-weight: 600; }
.curso-lesson-body .text-away { color: var(--away); font-weight: 600; }
.curso-lesson-body .text-draw { color: var(--draw); font-weight: 600; }
.curso-lesson-body .text-emerald { color: var(--emerald); }
.curso-lesson-body .text-amber { color: var(--amber); }
.curso-lesson-body .text-muted { color: var(--muted); }
.curso-lesson-body .small { font-size: 0.8rem; }

/* Callouts */
.curso-lesson-body .callout {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin: 12px 0;
}
.curso-lesson-body .callout.warning {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  color: #fcd34d;
}
.curso-lesson-body .callout.tip {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: #93c5fd;
}
.curso-lesson-body .callout.example {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  color: #6ee7b7;
}
.curso-lesson-body .callout.important {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
}

/* Info grid */
.curso-lesson-body .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.curso-lesson-body .info-grid.three { grid-template-columns: repeat(3, 1fr); }
.curso-lesson-body .info-box {
  padding: 14px; border-radius: 10px; text-align: center;
  background: rgba(255,255,255,0.03); border: 1px solid var(--card-border);
}
.curso-lesson-body .info-box .info-icon { font-size: 1.5rem; margin-bottom: 4px; }
.curso-lesson-body .info-box .info-value { font-size: 1.3rem; font-weight: 800; margin-top: 4px; }
.curso-lesson-body .border-home { border-color: rgba(239,68,68,0.3); }
.curso-lesson-body .border-draw { border-color: rgba(250,204,21,0.3); }

/* Pattern visuals */
.curso-lesson-body .pattern-visual {
  padding: 14px; border-radius: 10px; margin: 12px 0;
  background: rgba(255,255,255,0.03); border: 1px solid var(--card-border);
}
.curso-lesson-body .pattern-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.curso-lesson-body .pattern-row:last-child { margin-bottom: 0; }
.curso-lesson-body .arrow { color: var(--muted); font-size: 0.9rem; margin: 0 4px; }
.curso-lesson-body .dot.big { width: 14px; height: 14px; }
.curso-lesson-body .pattern-label { font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.curso-lesson-body .card-icon { font-size: 1.2rem; font-weight: 800; }

/* Reference table */
.curso-lesson-body .ref-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin: 10px 0; }
.curso-lesson-body .ref-table th { padding: 8px 10px; text-align: left; background: rgba(255,255,255,0.05); font-size: 0.7rem; text-transform: uppercase; color: var(--muted); }
.curso-lesson-body .ref-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }

/* Nav buttons */
.curso-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}
.curso-nav-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.curso-nav-btn:hover { background: rgba(255,255,255,0.1); }
.curso-nav-btn.complete {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: var(--emerald);
}
.curso-nav-btn.complete:hover {
  background: rgba(16,185,129,0.25);
}

/* Mobile: sidebar as overlay */
@media (max-width: 960px) {
  .curso-layout { display: block; height: auto; }
  .curso-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 300px;
    transform: translateX(-100%);
    box-shadow: 4px 0 30px rgba(0,0,0,0.7);
    z-index: 200;
  }
  .curso-sidebar.open { transform: translateX(0); }
  .curso-sidebar-close { display: block; }
  .curso-menu-btn { display: block; }
  .curso-content { padding: 16px; overflow-y: visible; }
  .curso-lesson-title { font-size: 1.3rem; }
  .curso-nav-buttons { flex-wrap: wrap; }
  .curso-nav-btn { flex: 1; min-width: 0; text-align: center; font-size: 0.75rem; padding: 8px 10px; }
}

.curso-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
}
.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--away), var(--emerald));
  transition: width 0.4s ease;
}
.curso-modulo {
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  background: var(--card-bg);
}
.curso-modulo.completed { border-color: rgba(16,185,129,0.25); }
.modulo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.modulo-header:hover { background: rgba(255,255,255,0.03); }
.modulo-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59,130,246,0.15);
  color: var(--away);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.curso-modulo.completed .modulo-num {
  background: rgba(16,185,129,0.15);
  color: var(--emerald);
}
.modulo-info { flex: 1; }
.modulo-title { font-weight: 700; font-size: 0.9rem; }
.modulo-meta { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.modulo-check { font-size: 1.1rem; color: var(--muted); flex-shrink: 0; }
.curso-modulo.completed .modulo-check { color: var(--emerald); }
.modulo-content {
  display: none;
  padding: 0 16px 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.modulo-content.open { display: block; animation: fadeIn 0.3s ease; }
.modulo-content h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
  margin: 14px 0 8px;
}
.modulo-content ul, .modulo-content ol {
  padding-left: 20px;
  margin: 6px 0;
}
.modulo-content li { margin-bottom: 4px; }
.modulo-content p { margin: 6px 0; }
.curso-alert {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  font-size: 0.85rem;
  margin: 10px 0;
  color: #fcd34d;
}
.curso-example {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  font-size: 0.85rem;
  margin: 10px 0;
}
.curso-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.curso-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.curso-box {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  text-align: center;
}
.curso-pattern {
  padding: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  margin: 10px 0;
}
.pattern-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pattern-arrow {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 4px;
}
.btn-concluir {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  border-radius: 10px;
  border: 1px solid rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.1);
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-concluir:hover {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.5);
}

/* ===== WALLET BUTTONS (Depositar / Sacar) ===== */
.wallet-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}
.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.wallet-btn svg { width: 14px; height: 14px; }
.wallet-btn--deposit {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.35);
  color: #10b981;
}
.wallet-btn--deposit:hover {
  background: rgba(16,185,129,0.3);
  border-color: #10b981;
}
.wallet-btn--withdraw {
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.3);
  color: #fbbf24;
}
.wallet-btn--withdraw:hover {
  background: rgba(251,191,36,0.25);
  border-color: #fbbf24;
}

/* ===== KYC GATE ===== */
.kyc-gate {
  padding: 32px 20px;
  text-align: center;
}

/* ===== KYC BANNER (header) ===== */
.kyc-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 8px 14px;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 10px;
  font-size: 13px;
  color: #fbbf24;
  text-align: center;
}
.kyc-banner-btn {
  display: inline-block;
  padding: 4px 12px;
  background: #fbbf24;
  color: #000;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.kyc-banner-btn:hover { background: #f59e0b; }

/* Compact wallet button (Dep | Saque) */
.wallet-btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(16,185,129,0.35);
  background: rgba(16,185,129,0.12);
  color: #10b981;
}
.wallet-btn-compact:hover {
  background: rgba(16,185,129,0.25);
  border-color: #10b981;
}
.wallet-btn-compact svg { width: 14px; height: 14px; }
.wallet-sep {
  color: rgba(255,255,255,0.25);
  margin: 0 1px;
}
