/* =============================================================
   Rifa Online — Design System (dark premium)
   Paleta: roxo/violeta (primário), azul, verde neon, âmbar, vinho
   Tipografia: Sora (display/números) + Inter (corpo)
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* superfícies */
  --bg: #0a0817;
  --bg2: #100c22;
  --surface: #17132e;
  --surface-2: #1e1940;
  --surface-3: #262050;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* texto */
  --text: #ece9fb;
  --muted: #9d97c4;
  --faint: #6f699a;

  /* marca */
  --primary: #8b5cf6;
  --primary-2: #7c3aed;
  --primary-ink: #c4b5fd;
  --blue: #3b82f6;
  --green: #1fdd7a;
  --green-ink: #6ef2ab;
  --amber: #fbbf24;
  --amber-ink: #fcd34d;
  --wine: #e11d55;
  --wine-ink: #fb7199;

  --grad-primary: linear-gradient(135deg, #8b5cf6, #6d28d9);
  --grad-hero: radial-gradient(
      1200px 500px at 15% -10%,
      rgba(139, 92, 246, 0.28),
      transparent 60%
    ),
    radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, 0.18), transparent 55%);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px var(--border), 0 22px 60px -28px rgba(124, 58, 237, 0.6);
  --ring: 0 0 0 3px rgba(139, 92, 246, 0.35);

  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Sora", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  background-image: var(--grad-hero);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}
::selection {
  background: rgba(139, 92, 246, 0.4);
}
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.hidden {
  display: none !important;
}
.mono-nums {
  font-variant-numeric: tabular-nums;
}

/* =================== Botões =================== */
.btn {
  --b: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--b);
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn--primary {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(124, 58, 237, 0.9);
}
.btn--green {
  background: linear-gradient(135deg, #1fdd7a, #10b981);
  color: #06231a;
  border-color: transparent;
}
.btn--ghost {
  background: transparent;
}
.btn--danger {
  background: linear-gradient(135deg, #e11d55, #9f1239);
  border-color: transparent;
  color: #fff;
}
.btn--amber {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #241703;
  border-color: transparent;
}
.btn--sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 10px;
}
.btn--block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =================== Chips / badges =================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.badge.st-disp { color: var(--green-ink); background: rgba(31, 221, 122, 0.12); border-color: rgba(31,221,122,.3);}
.badge.st-res { color: var(--amber-ink); background: rgba(251, 191, 36, 0.12); border-color: rgba(251,191,36,.3);}
.badge.st-pend { color: var(--amber-ink); background: rgba(245, 158, 11, 0.14); border-color: rgba(245,158,11,.35);}
.badge.st-conf { color: var(--wine-ink); background: rgba(225, 29, 85, 0.14); border-color: rgba(225,29,85,.35);}
.badge.st-exp, .badge.st-canc { color: var(--faint); }

/* =================== Cards =================== */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card--pad { padding: 1.35rem; }

/* =================== Topbar =================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 8, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}
.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 22px -8px rgba(124, 58, 237, 0.9);
}
.topbar__spacer { flex: 1; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
}
.user-chip img,
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-3);
}
.user-chip__name { font-size: 0.86rem; font-weight: 600; }
.user-chip__code { font-size: 0.7rem; color: var(--primary-ink); }

/* =================== Hero público =================== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2.4rem 0 1rem;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-ink);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
}
.hero__sub { color: var(--muted); margin-top: 0.6rem; font-size: 1.05rem; }
.hero__banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
}
.hero__banner img { width: 100%; height: 100%; object-fit: cover; }

.hero__meta {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}
.hero__meta .kv { display: flex; flex-direction: column; }
.hero__meta .kv b { font-size: 1.35rem; font-family: var(--font-display); }
.hero__meta .kv span { color: var(--muted); font-size: 0.82rem; }

/* =================== Sorteios (cards grid) =================== */
.sorteios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.sorteio-card { overflow: hidden; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s; }
.sorteio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.sorteio-card__img { aspect-ratio: 16/10; background: var(--surface-3); }
.sorteio-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sorteio-card__body { padding: 1rem 1.1rem 1.2rem; }
.sorteio-card__title { font-size: 1.05rem; font-weight: 700; }
.sorteio-card__price { color: var(--green-ink); font-weight: 700; margin-top: 0.3rem; }
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 0.8rem;
}
.progress__bar { height: 100%; background: var(--grad-primary); border-radius: 999px; transition: width .4s;}

/* =================== Stat strip =================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
}
.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
.stat__label { color: var(--muted); font-size: 0.78rem; display: flex; align-items: center; gap: .4rem;}
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin-top: 0.2rem; }
.stat--green .stat__value { color: var(--green-ink); }
.stat--amber .stat__value { color: var(--amber-ink); }
.stat--wine .stat__value { color: var(--wine-ink); }
.stat--blue .stat__value { color: #93c5fd; }
.stat--primary .stat__value { color: var(--primary-ink); }

/* =================== Filtros / busca =================== */
.toolbar {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}
.input, .select, textarea.input {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 12px;
  padding: 0.68rem 0.9rem;
  font-size: 0.92rem;
  font-family: inherit;
  width: 100%;
}
.input::placeholder { color: var(--faint); }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-pill {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}
.filter-pill.is-active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}

/* =================== Legenda =================== */
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.dot-disp { background: rgba(31,221,122,.25); box-shadow: inset 0 0 0 1px var(--green);}
.dot-res  { background: rgba(251,191,36,.25); box-shadow: inset 0 0 0 1px var(--amber);}
.dot-pend { background: rgba(245,158,11,.3); box-shadow: inset 0 0 0 1px #f59e0b;}
.dot-conf { background: rgba(225,29,85,.25); box-shadow: inset 0 0 0 1px var(--wine);}
.dot-mine { background: rgba(139,92,246,.3); box-shadow: inset 0 0 0 1px var(--primary);}

/* =================== GRID DE NÚMEROS (signature) =================== */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
}
.num {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  position: relative;
}
.num:hover { transform: translateY(-2px); }
.num--disp { background: rgba(31,221,122,.08); border-color: rgba(31,221,122,.35); color: var(--green-ink); }
.num--disp:hover { box-shadow: 0 0 0 2px rgba(31,221,122,.5), 0 10px 20px -8px rgba(31,221,122,.4); }
.num--res { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.45); color: var(--amber-ink); cursor: not-allowed;}
.num--pend { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.5); color: var(--amber-ink); cursor: not-allowed;}
.num--conf { background: rgba(225,29,85,.16); border-color: rgba(225,29,85,.5); color: var(--wine-ink); cursor: not-allowed;}
.num--mine { background: rgba(139,92,246,.22); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 2px rgba(139,92,246,.5);}
.num--selected {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px -10px rgba(124,58,237,.9);
  animation: pop 0.25s ease;
}
@keyframes pop { 0%{transform:scale(.9)} 60%{transform:scale(1.1)} 100%{transform:translateY(-3px) scale(1.04)} }

/* =================== Barra de seleção (combo) =================== */
.selection-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin-top: 1.2rem;
}
.selection-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-glow);
  flex-wrap: wrap;
}
.selection-bar__chips { display: flex; gap: 0.4rem; flex-wrap: wrap; flex: 1; }
.chip-num {
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}
.chip-num button { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 1rem; line-height: 1; }
.selection-bar__total { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.selection-bar__total small { color: var(--muted); font-weight: 500; font-size: .75rem; display:block;}

/* =================== Reservas em andamento =================== */
.resume-banner {
  border: 1px solid rgba(251,191,36,.4);
  background: linear-gradient(180deg, rgba(251,191,36,.09), transparent);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.resume-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.timer-pill {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  background: rgba(251,191,36,.15);
  color: var(--amber-ink);
  border: 1px solid rgba(251,191,36,.4);
}
.timer-pill.is-danger { background: rgba(225,29,85,.18); color: var(--wine-ink); border-color: rgba(225,29,85,.5); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* =================== Modais =================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open { display: flex; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 12, 0.72);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  width: min(560px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: 1.6rem;
  animation: rise .22s ease;
}
.modal__panel--wide { width: min(920px, 96vw); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
}
.modal h3 { font-size: 1.35rem; }
.modal__sub { color: var(--muted); margin: 0.3rem 0 1.2rem; }

/* Pix */
.pix-box { text-align: center; }
.pix-qr {
  width: 220px;
  height: 220px;
  margin: 0.8rem auto;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--border-strong);
}
.pix-qr img { width: 100%; height: 100%; }
.copy-field {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
}
.copy-field code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.timer-ring {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  font-variant-numeric: tabular-nums;
  color: var(--amber-ink);
}
.timer-ring.is-danger { color: var(--wine-ink); }

/* =================== Estado vazio / skeleton =================== */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty__icon { font-size: 2.4rem; margin-bottom: 0.6rem; }
.empty__title { font-weight: 700; color: var(--text); }
.empty__sub { font-size: 0.9rem; }
.skeleton {
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shine 1.3s infinite;
  border-radius: 12px;
}
@keyframes shine { to { background-position: -200% 0; } }
.sk-num { aspect-ratio: 1; }

/* =================== Toasts =================== */
.toast-host {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 340px;
  font-size: 0.9rem;
}
.toast.is-in { transform: translateX(0); }
.toast__icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; flex: none;
}
.toast--success .toast__icon { background: var(--green); }
.toast--error .toast__icon { background: var(--wine); }
.toast--warn .toast__icon { background: var(--amber); color: #241703; }
.toast--info .toast__icon { background: var(--blue); }

/* =================== ADMIN =================== */
.admin-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 2px;
}
.admin-nav button {
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.admin-nav button.is-active {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.section-title { font-size: 1.4rem; margin-bottom: 0.3rem; }
.section-sub { color: var(--muted); margin-bottom: 1.2rem; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; }
table.data th, table.data td {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
table.data th { color: var(--muted); font-weight: 600; background: var(--surface); position: sticky; top: 0; }
table.data tr:hover td { background: rgba(255,255,255,0.02); }
.row-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.dash-progress {
  height: 14px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.dash-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #10b981);
  transition: width .5s;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.rank-pos {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 800;
  background: var(--surface-3); font-family: var(--font-display);
}
.rank-row:nth-child(1) .rank-pos { background: linear-gradient(135deg,#fbbf24,#f59e0b); color:#241703;}
.rank-row:nth-child(2) .rank-pos { background: linear-gradient(135deg,#cbd5e1,#94a3b8); color:#0f172a;}
.rank-row:nth-child(3) .rank-pos { background: linear-gradient(135deg,#d97706,#92400e); color:#fff;}

.divider { height: 1px; background: var(--border); margin: 1.2rem 0; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.mt1{margin-top:.6rem}.mt2{margin-top:1.2rem}.mt3{margin-top:1.8rem}
.mb1{margin-bottom:.6rem}.mb2{margin-bottom:1.2rem}
.text-green{color:var(--green-ink)} .text-amber{color:var(--amber-ink)} .text-wine{color:var(--wine-ink)}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-card {
  width: min(420px, 96vw);
  text-align: center;
  padding: 2.4rem 2rem;
}
.google-btn {
  width: 100%;
  background: #fff;
  color: #1f2937;
  font-weight: 700;
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
}

/* Aviso DEMO */
.demo-banner {
  background: linear-gradient(90deg, rgba(139,92,246,.2), rgba(59,130,246,.15));
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.82rem;
  color: var(--primary-ink);
}
.demo-banner b { color: var(--text); }
.demo-banner button {
  background: none; border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 8px; padding: .15rem .5rem; cursor: pointer; margin-left: .5rem; font-size: .78rem;
}

/* =================== Responsivo =================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__banner { order: -1; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: 94vw; }
  .numbers-grid { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }
  .num { border-radius: 10px; font-size: 0.82rem; }
  .topbar__inner { height: 58px; }
  .user-chip__name, .user-chip__code { display: none; }
  .btn { padding: 0.65rem 0.9rem; }
  .selection-bar__inner { flex-direction: column; align-items: stretch; }
  .modal__panel { padding: 1.2rem; }
  .hero { padding-top: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
