/* ==========================================================================
   Template de área de membros — shell + componentes
   Reproduz a estrutura: sidebar fixa, topbar, cards, progresso com marcos,
   chips de dado, grids de ação, módulos travados, tabelas e estatísticas.
   Conteúdo neutro: troque textos, ícones e cores à vontade.
   ========================================================================== */

:root {
  --primary: #e8342a;
  --primary-dark: #c8231a;
  --primary-soft: #fff1f0;
  --grad-primary: linear-gradient(#ff3931 0%, #f63c34 100%);
  --grad-blue: linear-gradient(#1a3ee0 0%, #1532b3 100%);

  --ink: #16181d;
  --ink-2: #3f444e;
  --muted: #7b8291;
  --line: #e9ebf0;
  --line-soft: #f2f4f7;

  --bg: #f6f7fa;
  --card: #ffffff;

  --amber-bg: #fffdf9;
  --amber-line: #f5ebdb;
  --amber-ink: #a86518;
  --amber-badge-bg: #fef7e7;
  --amber-badge-line: #f5dca2;
  --amber-badge-ink: #c27a23;

  --ok: #2eb872;
  --ok-bg: #f2fbf6;
  --ok-line: #cdeddd;

  --sidebar-w: 236px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(16, 20, 40, .06);
  --shadow-soft: 0 4px 16px rgba(16, 20, 40, .04);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Archivo Narrow', 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================ SHELL ============================ */

.app { display: flex; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 0 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px 20px;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background-image: var(--grad-primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 17px;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.2px;
}
.plan-badge {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: #101218;
  color: #fff;
  padding: 3px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
.nav-item:hover { background: var(--line-soft); }
.nav-item.is-active {
  background-image: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 52, 42, .25);
}
.nav-item.is-active svg { opacity: 1; }

.sidebar-foot { margin-top: auto; padding: 10px 10px 0; border-top: 1px solid var(--line-soft); }

/* ---- Main ---- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 60px;
  flex: 0 0 60px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-weight: 700; font-size: 14px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--line-soft); }
.icon-btn svg { width: 16px; height: 16px; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--line-soft);
  border: 2px solid #f0c04a;
  display: grid; place-items: center;
  color: var(--ink-2);
  font-weight: 800; font-size: 12px;
}

/* Fundo com marca d'água discreta (troque ou remova) */
.content {
  flex: 1;
  padding: 22px 20px 40px;
  background:
    radial-gradient(1100px 380px at 50% -140px, rgba(232, 52, 42, .07), transparent 70%),
    var(--bg);
}
.wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* Botão de menu mobile */
.menu-btn { display: none; }

/* ============================ CARDS ============================ */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.card-pad-0 { padding: 0; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.2px;
  margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.card-title svg { width: 18px; height: 18px; color: var(--primary); }
.card-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.section-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Header de página */
.page-head { display: flex; flex-direction: column; gap: 6px; }
.crumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--primary);
  width: fit-content;
}
.crumb:hover { text-decoration: underline; }
.crumb svg { width: 14px; height: 14px; }
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 27px;
  letter-spacing: -.4px;
  margin: 0;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.page-title svg { width: 24px; height: 24px; color: var(--primary); }

/* ============================ BADGES ============================ */

.badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.badge-amber { background: var(--amber-badge-bg); border: 1px solid var(--amber-badge-line); color: var(--amber-badge-ink); }
.badge-dark  { background: #101218; color: #fff; }
.badge-red   { background: var(--primary-soft); border: 1px solid #ffd5d2; color: var(--primary-dark); }
.badge-ok    { background: var(--ok-bg); border: 1px solid var(--ok-line); color: #2f6b4f; }
.badge-muted { background: var(--line-soft); border: 1px solid var(--line); color: var(--muted); }

/* ============================ PROGRESSO ============================ */

.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.progress-pct { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--primary); }

.track {
  position: relative;
  height: 9px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 99px;
  margin: 14px 0 10px;
}
.track-fill {
  position: absolute; inset: 0 auto 0 0;
  background-image: linear-gradient(90deg, #2f6bff, #1a3ee0);
  border-radius: 99px;
}
.milestone {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.milestone-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--amber-badge-line);
  display: grid; place-items: center;
  color: var(--amber-badge-ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.milestone-dot svg { width: 11px; height: 11px; }
.milestone-label {
  position: absolute; top: 22px;
  font-size: 9px; font-weight: 800; color: var(--muted);
  white-space: nowrap;
}

.progress-notes { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin: 6px 0 0; }
.progress-notes strong { color: var(--ink); }

/* Checklist colapsável */
.steps-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  background: none; border: 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 14px; padding: 14px 0 0;
  cursor: pointer;
  font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}
.steps-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.steps-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.step {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfcfd;
}
.step-num {
  width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  background: var(--line-soft); color: var(--muted);
  border: 1px solid var(--line);
}
.step.is-done { background: var(--ok-bg); border-color: var(--ok-line); }
.step.is-done .step-num { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-locked { background: var(--amber-bg); border-color: var(--amber-line); }
.step.is-locked .step-num { background: var(--amber-badge-bg); border-color: var(--amber-badge-line); color: var(--amber-badge-ink); }
.step-body { flex: 1; min-width: 0; }
.step-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-desc { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.55; }

/* ============================ GRIDS ============================ */

.grid-2, .grid-3, .grid-4, .grid-hero { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-hero { grid-template-columns: 1.35fr 1fr 1fr; }

/* Banner destaque */
.banner {
  border-radius: var(--radius);
  background-image: var(--grad-primary);
  color: #fff;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  min-height: 150px;
}
.banner h3 { font-family: var(--font-display); font-weight: 900; font-size: 23px; margin: 0; line-height: 1.1; }
.banner p { margin: 0; font-size: 13px; opacity: .92; line-height: 1.5; }
.banner .btn { align-self: flex-start; margin-top: 6px; }

/* Card de métrica */
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  min-height: 150px; justify-content: center;
}
.metric-when { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.metric-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.metric-value { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 1; color: var(--ink); }
.metric-value span { color: var(--primary); }
.metric-foot { font-size: 11.5px; color: var(--muted); }

/* Card de item do catálogo */
.tile {
  display: flex; align-items: center; gap: 11px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  box-shadow: var(--shadow-soft);
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--primary); transform: translateY(-1px); }
.tile:hover .tile-name { color: var(--primary); }
.tile-badge {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 50%;
  background-image: var(--grad-primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 900; letter-spacing: .02em;
}
.tile-name { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.tile-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ============================ REGISTROS ============================ */

.record { display: flex; flex-direction: column; gap: 14px; }
.record-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.record-thumb {
  height: 26px; padding: 0 10px;
  border-radius: 7px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.record-when { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.record-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.record-value { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--primary); margin: 0; }

/* Chips de dado (grupos rotulados) */
.chip-groups { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.chip-group { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.chip-group-label { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  width: 31px; height: 31px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800;
  background: #f0f2f6; border: 1px solid var(--line); color: var(--ink-2);
}
.chip-accent { background-image: var(--grad-primary); border-color: transparent; color: #fff; }
.chip-alt { background: #f7c948; border-color: #e8b62c; color: #4a3708; }
.chip-note { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Grid de botões de ação */
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.action {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfbfc;
  color: var(--ink-2);
  font-size: 12.5px; font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.action:hover { background: var(--line-soft); border-color: #dcdfe6; }
.action.is-active { background-image: var(--grad-primary); border-color: transparent; color: #fff; }
.action-wide { grid-column: 1 / -1; }

/* ============================ MÓDULO TRAVADO ============================ */

.locked {
  position: relative;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 9px;
  overflow: hidden;
}
.locked::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background-image: linear-gradient(#f0c04a, #d79b1d);
}
.locked-lock {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--amber-badge-bg); border: 1px solid var(--amber-badge-line);
  display: grid; place-items: center; color: var(--amber-badge-ink);
}
.locked-lock svg { width: 14px; height: 14px; }
.locked-title {
  font-family: var(--font-display); font-weight: 900; font-size: 15.5px;
  margin: 0; padding-right: 40px; text-transform: uppercase; letter-spacing: .01em;
}
.locked-desc { font-size: 12.5px; color: #5c564c; line-height: 1.6; margin: 0; }
.locked-desc strong { color: var(--amber-ink); }

/* ============================ TABELA ============================ */

.table-scroll { overflow-x: auto; }
.table-cap { max-height: 320px; overflow-y: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
table.tbl thead th {
  position: sticky; top: 0; z-index: 1;
  background: #fbfbfc;
  text-align: left;
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fcfcfd; }
.rank { font-family: var(--font-display); font-weight: 900; color: var(--primary); }
.mono { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; }

/* ============================ ESTATÍSTICAS ============================ */

.stat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfc;
  min-width: 54px;
}
.stat-key { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat-count { font-size: 10.5px; color: var(--muted); font-weight: 700; }

.note {
  font-size: 11.5px; color: var(--muted); line-height: 1.6;
  border-top: 1px solid var(--line-soft); padding-top: 12px; margin: 14px 0 0;
}

/* Painel informativo */
.panel {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.6;
}
.panel-amber { background: var(--amber-bg); border: 1px solid var(--amber-line); color: #5c564c; }
.panel-red { background: var(--primary-soft); border: 1px solid #ffd5d2; color: #6d2a26; }
.panel-ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: #2f6b4f; }
.panel-title { font-weight: 800; margin: 0 0 3px; display: flex; align-items: center; gap: 7px; }
.panel-title svg { width: 15px; height: 15px; }
.panel p { margin: 0; }

/* ============================ FILTROS ============================ */

.filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.search { position: relative; flex: 1 1 220px; min-width: 180px; }
.search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.input, .select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfc;
  padding: 0 13px;
  font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink);
}
.input:focus, .select:focus { outline: none; border-color: var(--primary); background: #fff; }
.search .input { padding-left: 38px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.select { flex: 0 1 168px; cursor: pointer; }

.chips-filter { display: flex; gap: 7px; flex-wrap: wrap; }
.chip-filter {
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fbfbfc;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  cursor: pointer;
}
.chip-filter:hover { background: var(--line-soft); }
.chip-filter.is-active { background-image: var(--grad-primary); border-color: transparent; color: #fff; }

.view-toggle { display: flex; gap: 4px; padding: 4px; background: var(--line-soft); border-radius: 11px; border: 1px solid var(--line); }
.view-btn {
  width: 34px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.view-btn svg { width: 15px; height: 15px; }
.view-btn.is-active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-soft); }

.result-count { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Lista (visualização alternativa do catálogo) */
.list-view .tile { border-radius: 12px; }
.list-view { display: flex; flex-direction: column; gap: 8px; }

/* ============================ FORM ============================ */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.input-wrap { position: relative; }
.input-wrap > svg.lead {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted); pointer-events: none;
}
.input-lg { height: 50px; border-radius: 14px; font-size: 13.5px; font-weight: 500; }
.input-lg.has-lead { padding-left: 42px; }
.reveal {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px;
  display: grid; place-items: center;
}
.reveal svg { width: 17px; height: 17px; }
.reveal:hover { color: var(--ink-2); }

/* ============================ BOTÕES ============================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 13px; font-weight: 800; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .12s, filter .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background-image: var(--grad-primary); color: #fff; box-shadow: 0 4px 14px rgba(232, 52, 42, .22); }
.btn-blue { background-image: var(--grad-blue); color: #fff; box-shadow: 0 4px 14px rgba(26, 62, 224, .2); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-white { background: #fff; color: var(--primary); }
.btn-sm { padding: 9px 14px; font-size: 12px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-locked { background: var(--amber-badge-bg); border-color: var(--amber-badge-line); color: var(--amber-badge-ink); }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 auto; }

/* FAB de suporte */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border: 0; border-radius: 99px;
  background-image: var(--grad-primary);
  color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(232, 52, 42, .3);
  cursor: pointer;
}
.fab svg { width: 16px; height: 16px; }

/* ============================ UTIL ============================ */

.hidden { display: none; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 4px 0; }
.center { text-align: center; }
.spacer { flex: 1; }

/* ============================ RESPONSIVO ============================ */

@media (max-width: 1000px) {
  .grid-hero { grid-template-columns: 1fr 1fr; }
  .banner { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .sidebar {
    position: fixed; z-index: 50; left: 0; top: 0;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.12);
  }
  .sidebar.is-open { transform: translateX(0); }
  .menu-btn { display: grid; }
  .scrim {
    position: fixed; inset: 0; z-index: 40;
    background: rgba(16, 20, 40, .38);
  }
  .grid-4, .grid-3, .grid-2, .grid-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 23px; }
  .record-main { flex-direction: column; align-items: flex-start; }
  .chip-groups { align-items: flex-start; }
  .chip-group { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .content { padding: 16px 13px 34px; }
  .card { padding: 16px; border-radius: var(--radius); }
  .grid-4, .grid-3, .grid-2, .grid-hero { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
  .metric-value { font-size: 27px; }
  .fab span { display: none; }
  .fab { padding: 14px; }
}

/* ==========================================================================
   COMPONENTES DO APP HONESTO
   Streak, conquistas, frequência, conferidor e probabilidade.
   ========================================================================== */

/* ---- Streak ---- */
.streak {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.streak-flame {
  width: 62px; height: 62px; flex: 0 0 auto;
  border-radius: 20px;
  background-image: linear-gradient(#ff9a3c, #f2620f);
  display: grid; place-items: center;
  font-size: 27px;
  box-shadow: 0 6px 20px rgba(242, 98, 15, .28);
}
.streak-num {
  font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1;
}
.streak-label { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }

.week { display: flex; gap: 6px; margin-left: auto; }
.week-day {
  width: 34px; text-align: center;
}
.week-dot {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--line-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px; font-weight: 800;
}
.week-dot.is-on {
  background-image: linear-gradient(#ff9a3c, #f2620f);
  border-color: transparent; color: #fff;
}
.week-name { font-size: 9.5px; color: var(--muted); font-weight: 700; margin-top: 4px; text-transform: uppercase; }

/* ---- Conquistas ---- */
.ach {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfbfc;
}
.ach.is-done { background: var(--ok-bg); border-color: var(--ok-line); }
.ach-icon {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 20px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  filter: grayscale(1); opacity: .5;
}
.ach.is-done .ach-icon { filter: none; opacity: 1; background: #fff; border-color: var(--ok-line); }
.ach-body { flex: 1; min-width: 0; }
.ach-name { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ach-desc { font-size: 12px; color: var(--muted); margin: 3px 0 0; line-height: 1.5; }
.ach-track {
  height: 6px; border-radius: 99px; background: var(--line-soft);
  border: 1px solid var(--line); margin-top: 9px; overflow: hidden;
}
.ach-fill { height: 100%; background-image: var(--grad-primary); border-radius: 99px; }
.ach.is-done .ach-fill { background-image: linear-gradient(90deg, #3ec98a, #2eb872); }
.ach-count { font-size: 10.5px; color: var(--muted); font-weight: 700; margin-top: 5px; }

/* ---- Bolas de sorteio ---- */
.ball {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14.5px; font-weight: 800;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ball-sm { width: 32px; height: 32px; font-size: 12.5px; border-width: 1.5px; }
.ball-hit {
  background-image: linear-gradient(#3ec98a, #2eb872);
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px rgba(46, 184, 114, .3);
}
.ball-miss { opacity: .45; }
.balls { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---- Barra de frequência ---- */
.freq-row {
  display: grid;
  grid-template-columns: 46px 42px 1fr 52px;
  align-items: center; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.freq-row:last-child { border-bottom: 0; }
.freq-bar { height: 9px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.freq-fill { height: 100%; background-image: var(--grad-primary); border-radius: 99px; }
.freq-hits { text-align: right; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.freq-rank { font-size: 11px; color: var(--muted); font-weight: 800; }

/* ---- Entrada de bilhete ---- */
.ticket {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfbfc;
}
.ticket-num { font-size: 11px; font-weight: 800; color: var(--muted); width: 22px; flex: 0 0 auto; }
.ticket input {
  width: 46px; height: 46px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ticket input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,52,42,.1); }
.ticket input.is-filled { background: #fff8f8; border-color: #ffc9c5; }

/* ---- Painel de probabilidade ---- */
.odds-hero {
  text-align: center;
  padding: 26px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #1b1e27, #2b3040);
  color: #fff;
}
.odds-hero .big {
  font-family: var(--font-display); font-weight: 900;
  font-size: 40px; line-height: 1; margin: 6px 0;
}
.odds-hero .cap { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.odds-hero .sub { font-size: 13px; opacity: .8; margin: 8px 0 0; }

.odds-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.odds-row:last-child { border-bottom: 0; }
.odds-tier { font-size: 13.5px; font-weight: 700; }
.odds-val { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary); }

/* ---- Aviso honesto (destaque) ---- */
.truth {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 15px 17px;
  border-radius: 16px;
  background: #f4f7ff;
  border: 1px solid #d9e3ff;
  color: #26355c;
}
.truth svg { width: 19px; height: 19px; flex: 0 0 auto; color: #3358d4; margin-top: 1px; }
.truth strong { display: block; font-size: 13px; margin-bottom: 3px; }
.truth p { margin: 0; font-size: 12.5px; line-height: 1.6; }

/* ---- Segmented control ---- */
.seg { display: inline-flex; gap: 3px; padding: 4px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 12px; }
.seg button {
  padding: 7px 14px; border: 0; border-radius: 9px; background: transparent;
  font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.seg button.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-soft); }

@media (max-width: 560px) {
  .week { margin-left: 0; width: 100%; justify-content: space-between; }
  .week-day, .week-dot { width: 100%; }
  .ticket input { width: 40px; height: 40px; font-size: 13px; }
  .freq-row { grid-template-columns: 40px 36px 1fr 44px; }
}

/* ==========================================================================
   MATCHING THE ORIGINAL LAYOUT
   ========================================================================== */

/* Flag-style watermark behind the content, like the original */
.content {
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(232,52,42,.08), transparent 62%),
    radial-gradient(900px 320px at 88% 0%, rgba(38,72,196,.07), transparent 62%),
    linear-gradient(#fafbfd, var(--bg) 380px);
}

/* Journey milestone marks sitting on the bar */
.track { height: 10px; margin: 18px 0 26px; }
.track-fill { background-image: linear-gradient(90deg, #2f6bff, #14b8d4); }
.milestone-tag {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--amber-badge-bg); border: 1px solid var(--amber-badge-line);
  color: var(--amber-badge-ink); padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}
.milestone-dot.is-open {
  background-image: linear-gradient(#3ec98a, #2eb872);
  border-color: transparent; color: #fff;
}

/* Big hero banner (mascot slot) */
.hero {
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 10% 10%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(135deg, #1f4bd8, #e8342a);
  color: #fff; padding: 26px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
}
.hero h3 {
  font-family: var(--font-display); font-weight: 900; font-size: 30px;
  line-height: 1.02; margin: 0; text-transform: uppercase; letter-spacing: -.5px;
}
.hero h3 em { font-style: normal; color: #ffd84d; display: block; }
.hero p { margin: 0; font-size: 13px; opacity: .92; }
.hero .stars { font-size: 15px; letter-spacing: 3px; color: #ffd84d; }

/* Draw card (replaces the jackpot card) */
.draw-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px;
  min-height: 200px; justify-content: center;
}
.draw-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 19px;
  letter-spacing: .04em; padding: 5px 14px; border-radius: 99px;
  background: var(--line-soft); border: 1px solid var(--line);
}
.draw-when {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--line-soft); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 7px; color: var(--ink-2);
}
.draw-cap { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.draw-big { font-family: var(--font-display); font-weight: 900; font-size: 27px; line-height: 1; }
.draw-big span { color: var(--primary); }
.draw-sub { font-size: 11.5px; color: var(--muted); }


/* Top-10 list rows */
.top-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.top-row:last-child { border-bottom: 0; }
.top-rank { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: #d99a1a; width: 34px; }
.top-main { flex: 1 1 240px; min-width: 0; }
.top-score { font-family: var(--font-display); font-weight: 900; font-size: 17px; }
.top-meta { text-align: right; font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }

/* Hot-numbers ball rows */
.hot-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.hot-ball { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hot-ball .n {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(#f7f8fa, #e9ecf1); border: 1px solid #dfe3ea;
  font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.hot-ball.red .n { background-image: var(--grad-primary); border-color: transparent; color: #fff; }
.hot-ball.gold .n { background-image: linear-gradient(#ffd75e, #f0b418); border-color: transparent; color: #4a3708; }
.hot-ball .c { font-size: 10px; color: var(--muted); font-weight: 700; }
.hot-row { display: flex; gap: 9px; flex-wrap: wrap; }

/* Wizard (blue module) */
.wiz-brand {
  font-family: var(--font-display); font-weight: 900; font-size: 22px;
  letter-spacing: -.3px; color: #1a3ee0;
}
.wiz-brand span { color: var(--primary); }
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; text-align: center; }
.vs-side .cap { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vs-side .nm { font-family: var(--font-display); font-weight: 900; font-size: 19px; margin: 3px 0; }
.vs-side .pc { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: #1a3ee0; }
.vs-mid { font-size: 11px; font-weight: 800; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; margin-top: 7px; }
.bar > i { display: block; height: 100%; background-image: linear-gradient(90deg, #2f6bff, #1a3ee0); }

.sim { border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; background: #fbfbfc; }
.sim-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sim-teams { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 4px; font-size: 13px; font-weight: 700; }
.sim-pcts { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; color: var(--muted); }

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

/* ==========================================================================
   GEOGRAPHIC MAP
   ========================================================================== */

.map-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }

.map-legend { display: flex; align-items: center; justify-content: center; gap: 64px;
              font-size: 15px; font-weight: 600; color: var(--muted); }
.map-legend > span { display: flex; align-items: center; gap: 12px; }
.map-legend i { width: 16px; height: 16px; border-radius: 50%; display: inline-block;
                box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.map-viewport {
  width: 100%; max-width: 800px;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; overflow: hidden; touch-action: none;
}
.map-viewport.is-grabbing { cursor: grabbing; }
.map-container {
  width: 100%; height: auto;
  display: flex; align-items: center; justify-content: center;
  transform: translate(0px, 0px) scale(1);
  transition: transform .12s ease-out;
  transform-origin: center center;
}
.us-map { width: 100%; height: auto; max-width: 100%; display: block; }

.us-map .state-active {
  fill: #99c0e6; stroke: #fff; stroke-width: 1.5;
  cursor: pointer; transition: fill .15s;
}
.us-map a:hover .state-active,
.us-map .state-active:hover { fill: var(--primary); }

.us-map .state-inactive { fill: #e8eaee; stroke: #fff; stroke-width: 1; }

.us-map .dc-circle { fill: #99c0e6; stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.us-map a:hover .dc-circle { fill: var(--primary); }
.us-map .dc-path { fill: #99c0e6; stroke: #fff; stroke-width: 1; }

.us-map .state-label {
  fill: #4a5568; font-size: 10px; font-weight: 700;
  font-family: Inter, sans-serif; text-anchor: middle;
  pointer-events: none; user-select: none;
}

.map-connector { fill: none; stroke: #cbd2dc; stroke-width: 2; }

.map-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.map-controls .icon-btn { width: 40px; height: 40px; border-radius: 12px; background: #fbfbfc; }
.map-controls .btn { height: 40px; border-radius: 12px; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }

@media (max-width: 560px) {
  .map-legend { gap: 24px; font-size: 13px; }
  .map-legend i { width: 13px; height: 13px; }
}

/* ==========================================================================
   GAME CARD — two columns, buttons 3/2/2 on the right (matches the reference)
   ========================================================================== */

.game-card { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }

.game-left  { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.game-right { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.game-logo {
  display: inline-flex; align-items: center; align-self: flex-start;
  height: 30px; padding: 0 12px; border-radius: 8px;
  background: var(--line-soft); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: .04em; color: var(--ink-2);
}
.game-headline {
  font-family: var(--font-display); font-weight: 900;
  font-size: 25px; line-height: 1.1; color: var(--primary); margin: 0;
}

.game-when { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: right; }

.draw-rows { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.draw-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.draw-row-label {
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.game-mult { font-size: 11.5px; color: var(--muted); font-weight: 700; text-align: right; }

.ball-red  { background-image: var(--grad-primary); border-color: transparent; color: #fff; }
.ball-gold { background-image: linear-gradient(#ffd75e, #f0b418); border-color: transparent; color: #4a3708; }

.game-actions {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px; margin-top: 6px;
}
.game-actions .act-3 { grid-column: span 2; }
.game-actions .act-2 { grid-column: span 3; }

@media (max-width: 820px) {
  .game-card { gap: 16px; }
  .game-right { flex: 1 1 100%; }
  .game-when, .game-mult { text-align: left; }
  .draw-rows { align-items: flex-start; }
  .draw-row { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .game-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-actions .act-3, .game-actions .act-2 { grid-column: span 1; }
  .game-headline { font-size: 21px; }
}

/* ==========================================================================
   SMART PICK — matches the reference exactly
   ========================================================================== */

.sp-intro { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 18px; }

.sp-lists { display: flex; flex-direction: column; gap: 16px; }
.sp-group { display: flex; flex-direction: column; gap: 5px; }
.sp-label { font-size: 16px; color: var(--muted); font-weight: 600; margin: 0; }
.sp-value {
  font-size: 20px; font-weight: 700; color: var(--ink); margin: 0;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.sp-value.is-bonus { color: var(--primary); }

td.sp-n { color: var(--muted); font-weight: 600; font-size: 13px; }
td.sp-combo {
  font-size: 16px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.sp-bonus { color: var(--primary); font-weight: 800; }

/* ==========================================================================
   TOOL PAGES — matched to the reference screen by screen
   ========================================================================== */

/* ---- shared header ---- */
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tool-title { display: flex; align-items: center; gap: 10px; }
.tool-title .ico { width: 22px; height: 22px; color: var(--primary); flex: 0 0 auto; }

/* ---- Past Results: plain bold numbers, no balls ---- */
.res-date { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.res-nums { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.res-lbl  { color: var(--muted); font-weight: 700; margin-left: 6px; }
.res-pb   { color: var(--primary); font-weight: 800; }

/* ---- Payout ---- */
.pay-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; }
.pay-title .ico { width: 17px; height: 17px; color: var(--primary); }
table.tbl td.pay-match { font-size: 14px; font-weight: 700; color: var(--ink); }
table.tbl td.pay-win   { font-size: 15px; font-weight: 700; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
table.tbl.is-zebra tbody tr:nth-child(even) { background: #fbfbfc; }

/* ---- Frequency: single filter bar with per-group accents ---- */
.freq-filters {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft);
}
.freq-set { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.freq-set > .cap {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.freq-set > .cap svg { width: 14px; height: 14px; }
.chip-f {
  padding: 5px 12px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.chip-f:hover { background: var(--line-soft); }
.chip-f.on-red  { background: #fff1f0; color: var(--primary); }
.chip-f.on-blue { background: #eff6ff; color: #2563eb; }

.freq-row2 {
  display: grid; grid-template-columns: 58px 54px 54px 1fr 54px;
  align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.freq-row2:last-child { border-bottom: 0; }
.freq-head { border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.ball-blue {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 32% 28%, #6aa8ff, #1f66e0 70%);
  box-shadow: inset -3px -3px 8px rgba(0,0,0,.35), 0 3px 6px rgba(0,85,255,.25);
}
.ball-blue::after {
  content:''; position:absolute; top:3px; left:6px; width:8px; height:4px;
  border-radius:50%; background:#fff; opacity:.4; transform:rotate(-45deg);
}
.freq-bar2 { height: 10px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.freq-bar2 > i { display:block; height:100%; border-radius:99px;
  background: linear-gradient(90deg,#4b8df5,#1f66e0); }
.freq-pct { font-size: 11.5px; color: var(--muted); font-weight: 700; text-align: right; }

/* ---- Matcher ---- */
.mt-step { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px; }
.mt-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.mt-n { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: #cfd4dd; width: 22px; flex: 0 0 auto; }
.mt-balls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mt-in {
  width: 36px; height: 36px; border-radius: 50%; text-align: center;
  background: rgba(239,246,255,.5); border: 1.25px solid #e3e7ee; color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
}
.mt-in::placeholder { color: #c9cfd9; }
.mt-in:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.mt-in.is-pb { border-color: #ffc9c5; color: var(--primary); }

/* ---- Analysis banner ---- */
.an-banner {
  border-radius: var(--radius); padding: 22px 26px; color: #fff;
  background: linear-gradient(105deg, #e02a20, #b81a12);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.an-cap { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.an-big { font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1.05; margin: 4px 0; }
.an-sub { font-size: 11.5px; opacity: .85; }
.an-right { text-align: right; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.28); }
.an-right .an-big { font-size: 26px; }
.an-link { font-size: 12px; font-weight: 700; color: var(--primary); }

/* ---- Odds matrix, styled like the reference sheet ---- */
.om-viewer { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.om-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: #fbfbfc; border-bottom: 1px solid var(--line);
}
.om-bar .cap { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.om-bar .cap svg { width: 15px; height: 15px; }
.om-zoom { display: flex; align-items: center; gap: 8px; }
.om-stage { padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 22px; overflow: auto; }
.om-sheet { transform-origin: top center; transition: transform .12s; }
.om-cap {
  font-family: var(--font-display); font-weight: 900; font-size: 17px;
  text-align: center; margin: 0 0 8px; letter-spacing: .01em;
}
table.om { border-collapse: collapse; font-size: 12px; min-width: 340px; }
table.om th {
  background: #2a0b0b; color: #fff; font-weight: 800; padding: 6px 14px;
  border: 1px solid #7d1d1d; font-size: 11px; letter-spacing: .04em;
}
table.om td {
  background: #c2241c; color: #fff; padding: 6px 14px; text-align: center;
  border: 1px solid #7d1d1d; font-variant-numeric: tabular-nums; font-weight: 600;
}
table.om td.om-match { text-align: left; letter-spacing: .12em; }
.om-dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:#fff; margin-right:3px; }
.om-dot.pb { background:#ffd75e; }

@media (max-width: 700px) {
  .freq-row2 { grid-template-columns: 46px 44px 44px 1fr 44px; gap: 8px; }
  .an-right { border-left: 0; padding-left: 0; text-align: left; }
}

/* Tool panels stack with the same rhythm as the rest of the page */
#panel { display: flex; flex-direction: column; gap: 16px; }

/* ==========================================================================
   HOME — matched to the reference block by block
   ========================================================================== */

/* Journey card */
.jn-card { position: relative; overflow: hidden; }
.jn-card::after {
  content:''; position:absolute; right:-32px; bottom:-32px; width:96px; height:96px;
  border-radius:50%; background:#ef4444; opacity:.06; pointer-events:none;
}
.jn-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.jn-label { font-size:12px; font-weight:700; color:var(--muted); }
.jn-pct { font-size:14px; font-weight:900; color:#e0221a; }
.jn-lock {
  width:44px; height:44px; border-radius:12px; flex:0 0 auto;
  background:#fff1f0; border:1px solid #ffd5d2; color:#e0221a;
  display:grid; place-items:center;
}
.jn-lock svg { width:16px; height:16px; }
.jn-lock.is-open { background:var(--ok-bg); border-color:var(--ok-line); color:#2f6b4f; }

.jn-track-wrap { display:flex; align-items:center; gap:18px; margin:26px 0 22px; }
.jn-track { position:relative; flex:1; height:11px; border-radius:99px; background:#eef1f6; }
.jn-fill { position:absolute; inset:0 auto 0 0; border-radius:99px;
  background:linear-gradient(90deg,#1a3ee0,#14b8d4); }
.jn-ms { position:absolute; top:50%; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; }
.jn-tag {
  position:absolute; bottom:18px; white-space:nowrap;
  font-size:9px; font-weight:900; color:var(--muted); background:#fff;
  border:1px solid var(--line); border-radius:4px; padding:2px 6px;
}
.jn-dot {
  width:18px; height:18px; border-radius:50%; background:#fff; border:1px solid var(--line);
  display:grid; place-items:center; color:#2f6b4f; box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.jn-dot svg { width:10px; height:10px; }
.jn-dot.is-open { color:#16a34a; border-color:var(--ok-line); }
.jn-pctlbl {
  position:absolute; top:18px; font-size:9px; font-weight:900; color:var(--muted);
  background:#fff; border:1px solid var(--line); border-radius:4px; padding:2px 6px;
}
.jn-tip {
  position:absolute; bottom:38px; left:50%; transform:translateX(-50%);
  font-size:10px; font-weight:700; color:#fff; background:#1e2939; border-radius:8px;
  padding:5px 9px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .15s;
}
.jn-ms:hover .jn-tip { opacity:1; }

.jn-notes { font-size:12px; color:var(--ink-2); line-height:1.7; margin:0; }
.jn-notes strong { color:var(--ink); }

.jn-toggle {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:none; border:0; border-top:1px solid #f3f4f6; margin-top:14px; padding:12px 0 0;
  cursor:pointer; font-size:12px; font-weight:700; text-transform:uppercase; color:var(--muted);
}
.jn-toggle svg { width:16px; height:16px; transition:transform .2s; }
.jn-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }

.jn-steps { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.jn-step { font-size:13px; font-weight:600; color:var(--ink-2); }
.jn-done { color:#16a34a; font-weight:700; font-size:12px; }
.jn-step h5 { font-size:14px; font-weight:700; margin:0 0 4px; color:#1e3a8a; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.jn-req {
  font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.04em;
  color:#15803d; background:#dcfce7; border-radius:99px; padding:2px 8px;
}
.jn-step p { margin:0; font-size:12px; color:var(--muted); line-height:1.5; }

/* Hero row: banner + two jackpot cards */
.home-row1 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.home-jp { display:grid; grid-template-columns:1fr 1fr; gap:.4rem; }
.hero-link { display:block; border-radius:var(--radius); overflow:hidden; }

.jp-card {
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:6px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-soft); padding:20px 14px; min-height:190px; transition:transform .15s, border-color .15s;
}
.jp-card:hover { transform:translateY(-2px); border-color:#ffc9c5; }
.jp-logo {
  font-family:var(--font-display); font-weight:900; font-size:18px; letter-spacing:.04em;
  padding:6px 14px; border-radius:99px; background:var(--line-soft); border:1px solid var(--line);
}
.jp-when {
  font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; color:var(--muted);
  background:#f4f5f8; border-radius:99px; padding:4px 10px; margin-top:4px;
}
.jp-cap { font-size:14px; font-weight:400; text-transform:uppercase; color:#9ca3af; margin:0; letter-spacing:.02em; }
.jp-big { font-size:28px; font-weight:700; line-height:1; color:#111; margin:0; }
.jp-big em { font-style:normal; color:#e0221a; text-transform:uppercase; margin-left:4px; }
.jp-sub { font-size:13px; color:var(--ink-2); margin:0; }
.jp-sub strong { color:var(--ink); }

/* Locked cards */
.lk-card {
  position:relative; overflow:hidden;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-soft); padding:20px 22px; display:flex; flex-direction:column; gap:8px;
}
.lk-badge {
  align-self:flex-start; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.06em;
  color:#9ca3af; background:#f4f5f8; border-radius:99px; padding:3px 9px;
}
.lk-badge.is-open { color:#15803d; background:#dcfce7; }
.lk-title { font-size:16px; font-weight:700; text-transform:uppercase; margin:0; color:var(--ink); padding-right:70px; }
.lk-desc { font-size:12px; color:var(--muted); margin:0; line-height:1.55; padding-right:70px; }
.lk-desc strong { color:var(--ink-2); }
.lk-btn {
  align-self:flex-start; margin-top:6px; display:inline-flex; align-items:center; gap:7px;
  font-size:12px; font-weight:700; color:#4b5563; background:none; border:0; cursor:pointer;
  text-transform:uppercase; letter-spacing:.02em; padding:0;
}
.lk-btn svg { width:13px; height:13px; }
.lk-deco {
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  width:56px; height:56px; border-radius:50%;
  display:grid; place-items:center; font-size:22px;
}
.lk-deco.green { background:#ecfdf5; }
.lk-deco.amber { background:#fffbeb; }
.lk-deco .mini {
  position:absolute; right:-4px; bottom:-4px; width:20px; height:20px; border-radius:50%;
  background:#fff; border:1px solid var(--line); display:grid; place-items:center; color:#9ca3af;
}
.lk-deco .mini svg { width:10px; height:10px; }

/* State banners */
.st-banner {
  display:flex; align-items:center; justify-content:center; min-height:150px;
  border-radius:var(--radius); color:#fff; text-decoration:none; overflow:hidden; position:relative;
}
.st-banner h3 { font-family:var(--font-display); font-weight:900; font-size:30px; margin:0; text-align:center; text-shadow:0 2px 8px rgba(0,0,0,.35); }
.st-banner h3 em { font-style:normal; display:block; font-size:18px; letter-spacing:.08em; text-transform:uppercase; opacity:.9; }
.st-banner.az { background:linear-gradient(160deg,#f97316 0%,#c2410c 50%,#431407 100%); }
.st-banner.tx { background:linear-gradient(160deg,#1d4ed8 0%,#1e3a8a 55%,#0f172a 100%); }

/* Top 10 */
.t10-title { font-size:24px; font-weight:700; margin:0; padding:16px 22px; border-bottom:1px solid var(--line); }
.t10-row {
  display:flex; align-items:center; gap:14px; padding:14px 22px; border-bottom:1px solid var(--line-soft);
}
.t10-row:nth-child(even) { background:#fbfbfc; }
.t10-row:last-child { border-bottom:0; }
.t10-rank { font-family:var(--font-display); font-size:20px; font-weight:900; color:#f4c025; width:34px; flex:0 0 auto; }
.t10-main { flex:1; min-width:0; }
.t10-main h4 { font-size:18px; font-weight:700; margin:0 0 4px; }
.t10-game {
  display:inline-block; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.06em;
  color:#fff; padding:3px 10px; border-radius:99px;
}
.t10-game.red { background:#e0221a; }
.t10-game.gold { background:#c99a1c; }
.t10-meta { text-align:right; flex:0 0 auto; }
.t10-date { font-size:15px; font-weight:400; color:var(--muted); }
.t10-win { font-size:13px; color:var(--ink-2); margin-top:2px; }

/* Hot numbers */
.hn-title { font-size:24px; font-weight:700; margin:0; display:flex; align-items:center; gap:8px; }
.hn-title svg { width:20px; height:20px; color:#e0221a; }
.hn-sub { font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin:4px 0 0; }
.hn-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:20px; }
.hn-col-head { display:flex; align-items:center; gap:9px; padding-bottom:12px; border-bottom:1px solid var(--line-soft); margin-bottom:14px; }
.hn-col-head .jp-logo { font-size:13px; padding:4px 10px; }
.hn-col-head span.t { font-size:15px; font-weight:700; color:var(--ink); }
.hn-cap { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin:0 0 10px; }
.hn-row { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.hn-ball { display:flex; flex-direction:column; align-items:center; gap:4px; }
.hn-ball .n {
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  font-size:14px; font-weight:700; color:#000;
  background:radial-gradient(circle at 35% 30%, #fff, #e5e7eb 70%); border:1px solid #d1d5db;
  box-shadow:inset -2px -2px 5px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.08);
}
.hn-ball.red .n { color:#fff; background:radial-gradient(circle at 35% 30%, #ff6b63, #c2241c 70%); border-color:#a11a13; }
.hn-ball.gold .n { color:#4a3708; background:radial-gradient(circle at 35% 30%, #ffe27a, #e0b420 70%); border-color:#b8901a; }
.hn-ball .c { font-size:10px; font-weight:700; color:var(--muted); }
.hn-ball.red .c, .hn-ball.gold .c { color:#c2241c; }
.hn-ball.gold .c { color:#b8901a; }
.hn-foot { font-size:11px; font-style:italic; color:var(--muted); border-top:1px solid var(--line-soft); padding-top:12px; margin:8px 0 0; }

/* Modals (present but hidden, like the reference) */
.modal { position:fixed; inset:0; z-index:50; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.45); padding:20px; }
.modal.is-open { display:flex; }
.modal-box { background:#fff; border-radius:24px; padding:28px; max-width:420px; width:100%; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.modal-box .ico { width:64px; height:64px; border-radius:50%; margin:0 auto 14px; display:grid; place-items:center; font-size:28px; }
.modal-box h3 { font-family:var(--font-display); font-weight:900; font-size:22px; margin:0 0 4px; }
.modal-box .cap { font-size:10px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin:0 0 12px; }
.modal-box p { font-size:13px; color:var(--ink-2); line-height:1.6; margin:0 0 16px; }

@media (max-width: 900px) {
  .home-row1 { grid-template-columns:1fr; }
  .hn-grid { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .home-jp { grid-template-columns:1fr; }
  .t10-row { flex-wrap:wrap; }
  .t10-meta { text-align:left; width:100%; padding-left:48px; }
}

/* ==========================================================================
   LOTTERIES — matched to the reference
   ========================================================================== */
.lt-title { font-size: 24px; font-weight: 700; margin: 0; color: var(--ink); }
.lt-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.lt-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 10px; padding: 10px;
  border: 1px solid #e6e6e6; box-shadow: 0 0 5px rgba(0,0,0,.05);
  transition: transform .15s, border-color .15s;
}
.lt-card:hover { transform: translateY(-1px); border-color: #ffc9c5; }
.lt-badge {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background-image: var(--grad-primary); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 900;
}
.lt-text { display: flex; flex-direction: column; min-width: 0; }
.lt-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.lt-sub  { font-size: 12px; font-weight: 400; color: #9ca3af; margin-top: 2px; }
@media (max-width: 1000px) { .lt-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 700px)  { .lt-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Smart Pick page title + section heading sizes (measured on the reference) */
.sp-h1 { font-size: 36px !important; font-weight: 700 !important; }
.sp-h3 { font-size: 20px; font-weight: 700; margin: 0; }

/* ==========================================================================
   SUPPORT — matched to the reference
   ========================================================================== */
.su-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.su-ico { width:32px; height:32px; display:grid; place-items:center; color:#e0221a; flex:0 0 auto; }
.su-ico svg { width:26px; height:26px; }
.su-ico-box { width:40px; height:40px; border-radius:12px; background:#fff1f0; }
.su-ico-box svg { width:20px; height:20px; }
.su-title { font-size:30px; font-weight:700; color:var(--ink); font-family:var(--font-display); }
.su-badge {
  display:inline-flex; align-items:center; gap:6px;
  font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase;
  color:#b45309; background:#fef3c7; border:1px solid #fcd34d; border-radius:99px; padding:4px 10px;
}
.su-badge svg { width:11px; height:11px; }
.su-sub { font-size:16px; font-weight:500; color:#4b5563; margin:8px 0 0; }
.su-row { display:flex; align-items:center; gap:14px; }
.su-h3 { font-size:20px; font-weight:700; margin:0; color:var(--ink); }
.su-p14 { font-size:14px; font-weight:400; color:var(--muted); margin:2px 0 0; }
.su-p15 { font-size:15px; font-weight:500; color:#4b5563; line-height:1.65; margin:18px 0 0; }
.su-panel {
  margin:20px auto 0; max-width:420px; padding:22px 24px;
  border:1px solid var(--line); border-radius:16px; background:#fbfbfc;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:9px;
}
.su-email-t { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:700; color:var(--ink); margin-top:4px; }
.su-email-t svg { width:16px; height:16px; color:#e0221a; }
.su-panel .btn { margin-top:6px; width:100%; }
.su-shield {
  margin-top:16px; display:flex; gap:12px; align-items:flex-start;
  padding:14px 16px; border-radius:14px; background:#fff1f0; border:1px solid #ffd5d2;
}
.su-shield-ico { color:#e0221a; flex:0 0 auto; margin-top:1px; }
.su-shield-ico svg { width:20px; height:20px; }
.su-shield h4 { font-size:14px; font-weight:700; margin:0 0 3px; color:var(--ink); }
.su-shield p { font-size:12.5px; color:#6d2a26; margin:0; line-height:1.55; }

/* ==========================================================================
   WIZARD — matched to the reference
   ========================================================================== */
.wz-wordmark { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; padding: 4px 6px; white-space: nowrap; }
.wz-wordmark .a { color: #1a3ee0; }
.wz-wordmark .b { color: #ff3931; }

.wz-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #1a3ee0;
  background: #eef2ff; border-radius: 99px; padding: 6px 12px; }
.wz-back svg { width: 14px; height: 14px; }
.wz-arena { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9ca3af; }

.wz-head { display: flex; align-items: center; gap: 14px; }
.wz-head-ico { width: 44px; height: 44px; border-radius: 13px; background: #eef2ff; color: #1a3ee0; display: grid; place-items: center; flex: 0 0 auto; }
.wz-head-ico svg { width: 20px; height: 20px; }
.wz-h2 { font-size: 30px; font-weight: 700; text-transform: uppercase; margin: 0; line-height: 1.05; color: var(--ink); }
.wz-kicker { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #1a3ee0; }
.wz-lead { font-size: 16px; color: #4b5563; margin: 14px 0 0; }

.wz-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.wz-left { display: flex; flex-direction: column; gap: 16px; }

.wz-h3 { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 700; margin: 0; color: var(--ink); }
.wz-h3 svg { width: 18px; height: 18px; color: #1a3ee0; }
.wz-label { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin: 18px 0 8px; }
.wz-select {
  width: 100%; height: 52px; border-radius: 16px; border: 1px solid #e5e7eb; background: #fff;
  padding: 0 16px; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.wz-select:focus { outline: none; border-color: #1a3ee0; box-shadow: 0 0 0 3px rgba(26,62,224,.12); }
.wz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wz-cta {
  width: 100%; height: 52px; margin-top: 22px; border: 0; border-radius: 10px; cursor: pointer;
  background-image: linear-gradient(#1a3ee0 0%, #1ac8e0 100%); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(26,62,224,.2); transition: transform .12s;
}
.wz-cta:hover { transform: translateY(-1px); }

.wz-decoded { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #1a3ee0; margin: 0 0 14px; }
.wz-decoded svg { width: 14px; height: 14px; }
.wz-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 20px; border-radius: 16px; background: #f5f7fb; border: 1px solid #e9edf5; text-align: center; }
.wz-vs > div { display: flex; flex-direction: column; gap: 4px; }
.wz-vs .cap { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9ca3af; }
.wz-vs .nm { font-size: 17px; font-weight: 800; color: var(--ink); }
.wz-vs .pc { font-size: 26px; font-weight: 800; color: #1a3ee0; }
.wz-vs .pc.alt { color: #1ac8e0; }
.wz-vs-mid { font-size: 11px; font-weight: 800; color: #c0c6d1; }
.wz-problabels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #4b5563; margin: 16px 0 6px; }
.wz-bar { height: 8px; border-radius: 99px; background: #e9edf5; overflow: hidden; }
.wz-bar.big { height: 10px; }
.wz-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1a3ee0, #1ac8e0); }
.wz-reco { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px; border-radius: 14px; background: #f5f7fb; border: 1px solid #e9edf5; }
.wz-reco-ico { width: 36px; height: 36px; border-radius: 10px; background: #eef2ff; color: #1a3ee0; display: grid; place-items: center; flex: 0 0 auto; }
.wz-reco-ico svg { width: 18px; height: 18px; }
.wz-reco h4 { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 5px; color: var(--ink); }
.wz-reco p { font-size: 12.5px; color: #4b5563; margin: 0; line-height: 1.6; }
.wz-limit { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.wz-limit-p { font-size: 13px; color: #4b5563; margin: 0; line-height: 1.6; }

.wz-right { position: sticky; top: 76px; }
.wz-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wz-saved { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #1a3ee0; background: #eef2ff; border-radius: 99px; padding: 3px 9px; }
.wz-hist { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.wz-hist::-webkit-scrollbar { width: 6px; }
.wz-hist::-webkit-scrollbar-thumb { background: #1a3ee0; border-radius: 99px; }
.wz-item { border: 1px solid #e9edf5; border-radius: 14px; padding: 12px 14px; background: #fff; }
.wz-item-top { display: flex; justify-content: space-between; align-items: center; }
.wz-sport { font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #1a3ee0; background: #eef2ff; border-radius: 99px; padding: 3px 8px; }
.wz-when { font-size: 10px; color: #9ca3af; font-weight: 600; }
.wz-item-names { display: flex; justify-content: space-between; align-items: center; margin: 9px 0 4px; font-size: 13px; font-weight: 700; }
.wz-item-names .vs { font-size: 9px; color: #c0c6d1; }
.wz-item-pcts { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; color: #6b7280; margin-bottom: 6px; }
.wz-empty { text-align: center; padding: 36px 12px; color: #9ca3af; }
.wz-empty svg { width: 28px; height: 28px; color: #c7d2fe; margin-bottom: 10px; }
.wz-empty p { font-size: 12.5px; margin: 0; line-height: 1.5; }

@media (max-width: 900px) { .wz-cols { grid-template-columns: 1fr; } .wz-right { position: static; } .wz-two { grid-template-columns: 1fr; } }

/* ==========================================================================
   STATE PAGE — measured on the reference
   ========================================================================== */
.st-h1 { font-size: 36px !important; font-weight: 700 !important; }
.game-card .crumb { font-size: 14px; font-weight: 600; }
.game-logo { height: 40px; font-size: 16px; }
.game-headline { font-family: var(--font); font-weight: 700; font-size: 30px; color: #ff0000; }
.game-when { font-size: 14px; font-weight: 700; }
.draw-row-label { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #9ca3af; }
.game-mult { font-size: 14px; font-weight: 700; color: #4b5563; }
.ball-st {
  width: 40px; height: 40px; font-size: 18px; font-weight: 700; color: #000; border: 0;
  background: #e0e0e0; background-image: radial-gradient(circle at 30% 30%, #fff 0%, #e0e0e0 70%);
}
.ball-st.ball-red  { background-image: radial-gradient(circle at 30% 30%, #ff6b63 0%, #e0221a 70%); color: #fff; }
.ball-st.ball-gold { background-image: radial-gradient(circle at 30% 30%, #ffe27a 0%, #e0b420 70%); color: #4a3708; }
.game-actions { gap: 8px 6px; }
.game-actions .action { font-size: 14px; font-weight: 700; padding: 8px 0; border: 1.25px solid #e5e7eb; background: #fff; color: #1f2937; }
.game-actions .action:hover { background: #f9fafb; }
.game-actions .action.is-active { background-image: var(--grad-primary); border-color: transparent; color: #fff; }
.draw-row-stack { flex-direction: column; align-items: flex-end; gap: 6px; }
.draw-row-stack .draw-row-label { width: 100%; text-align: right; }
.draw-rows { gap: 8px; }
@media (max-width: 820px) { .draw-row-stack { align-items: flex-start; } .draw-row-stack .draw-row-label { text-align: left; } }

/* ==========================================================================
   TOOL PAGES — measured on the reference
   ========================================================================== */
.tool-h1 { font-size: 36px !important; font-weight: 700 !important; }
.tool-head .btn-ghost { height: 42px; border-radius: 12px; font-size: 14px; border: 1.25px solid #e5e7eb; background: #fff; }

/* tables: th 12px/700, generous padding */
table.tbl thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 16px 24px; background: transparent; }
table.tbl td { padding: 14px 24px; }

/* Past Results */
.res-date { font-size: 15px; font-weight: 700; }
.res-nums { font-size: 21px; font-weight: 800; letter-spacing: .02em; }
.res-lbl  { font-size: 21px; font-weight: 600; color: #71717a; margin-left: 8px; }
.res-pb   { font-size: 21px; font-weight: 800; color: #e0221a; }
table.tbl td.res-cell { padding: 18px 24px; }

/* Payout */
.pay-title { font-size: 16px; font-weight: 700; }
table.tbl td.pay-win { color: var(--ink-2); }

/* Matcher */
.mt-step { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #4b5563; }
.mt-select {
  display: block; width: 100%; max-width: 448px; height: 52px; border-radius: 16px;
  border: 1.25px solid #e5e7eb; background: #fff; padding: 0 16px;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.mt-row { border: 1.25px solid #111; border-radius: 20px; padding: 16px; }
.mt-n { font-family: var(--font); font-size: 16px; font-weight: 900; color: #dde1e7; }
.mt-in { background: #fff; }
.mt-in.is-pb { border-color: #e0221a; color: #e0221a; }
.mt-cmp { height: 48px; border-radius: 16px; padding: 14px 32px; font-size: 14px; font-weight: 700; }

/* Frequency */
.freq-row2 { padding: 14px 24px; }
.freq-head { padding: 16px 24px 12px; }
.freq-rank { font-size: 14px; font-weight: 700; color: #4b5563; }
.freq-hits { font-size: 14px; font-weight: 800; }
.freq-pct { font-size: 12px; font-weight: 600; }
.ball-blue { font-size: 14px; font-weight: 700; }

/* ==========================================================================
   IMAGES FROM THE REFERENCE (img/)
   ========================================================================== */
.brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-logo { display: block; width: 92px; height: auto; }
.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.jp-img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
.st-banner { padding: 0; background: #f4f5f8; }
.st-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hn-logo { height: 26px; width: auto; max-width: 110px; object-fit: contain; }
.game-logo-img { display: block; width: 140px; height: 40px; object-fit: contain; object-position: left center; }
.ball-blue-st { background-image: radial-gradient(circle at 30% 30%, #66a3ff 0%, #0055ff 70%) !important; color: #fff !important; }
.ball-green   { background-image: radial-gradient(circle at 30% 30%, #6ee7a0 0%, #15803d 70%) !important; color: #fff !important; }

/* Data Updating (reference copy) */
.upd-card { max-width: 420px; margin: 0 auto; text-align: center; padding: 34px 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.upd-ico { width: 40px; height: 40px; border-radius: 50%; background: #fff1f0; color: #e0221a; display: grid; place-items: center; }
.upd-ico svg { width: 20px; height: 20px; }
.upd-card h3 { font-size: 16px; font-weight: 700; margin: 4px 0 0; }
.upd-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.55; }

/* Prize matrix: image for the nationals, official tiers table for the rest */
.om-img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.om-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.om-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0; }
.om-title svg { width: 16px; height: 16px; color: #e0221a; }
.om-official { font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #e0221a; border-radius: 99px; padding: 4px 9px; }
.om-tbl .om-match { text-align: center; }
.om-tbl .om-odds { text-align: right; font-size: 13px; font-weight: 700; }
.om-tbl .om-dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:#2563eb; margin:0 2px; }
.om-tbl .om-dot.pb { background:#f59e0b; }

.lk-deco > svg { width: 22px; height: 22px; }
.lk-deco.green > svg { color: #15803d; }
.lk-deco.amber > svg { color: #b45309; }

/* Jackpot Analysis (reference layout) */
.an-tag { display:inline-block; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#fff; background:rgba(0,0,0,.2); border-radius:99px; padding:3px 9px; margin-bottom:8px; }
.an-banner .an-big { font-size:38px; font-weight:900; }
.an-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line); }
.an-pill { font-size:12px; font-weight:700; color:#16a34a; background:#f0fdf4; border-radius:99px; padding:3px 10px; }
.an-pill.blue { color:#1a3ee0; background:#eef2ff; }
.an-tbl td { font-size:13px; font-weight:700; white-space:nowrap; }
.an-gross { color:var(--ink); }
.an-neg { color:#e0221a; }
.an-net { color:#15803d; text-align:right; }
.om-prize { text-align:center; font-size:12px; font-weight:800; color:#e0221a; }
