/* =====================================================================
   Rifa Da Galera - Design system
   ===================================================================== */
:root {
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-200: #c7d2fe; --brand-400: #818cf8;
  --brand-500: #6366f1; --brand-600: #4f46e5; --brand-700: #4338ca; --brand-900: #312e81;
  --ink-900: #0f172a; --ink-800: #1e293b; --ink-700: #334155; --ink-600: #475569; --ink-500: #64748b;
  --ink-400: #94a3b8; --ink-300: #cbd5e1; --ink-200: #e2e8f0; --ink-100: #f1f5f9; --ink-50: #f8fafc;
  --green-50: #ecfdf5; --green-100: #d1fae5; --green-500: #10b981; --green-600: #059669; --green-700: #047857;
  --amber-50: #fffbeb; --amber-100: #fef3c7; --amber-500: #f59e0b; --amber-700: #b45309;
  --red-50: #fef2f2; --red-100: #fee2e2; --red-500: #ef4444; --red-600: #dc2626; --red-700: #b91c1c;
  --blue-50: #eff6ff; --blue-600: #2563eb;
  --bg: #f4f6fb; --surface: #ffffff; --border: #e5e8ef;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 16px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, .25);
  --sidebar-w: 264px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--ink-800);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink-900); letter-spacing: -.015em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15.5px; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hidden { display: none !important; }
.muted { color: var(--ink-500); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-green { color: var(--green-600); }
.text-red { color: var(--red-600); }
.text-amber { color: var(--amber-700); }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap; user-select: none; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: .65; cursor: not-allowed; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, .3); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-success { background: var(--green-600); color: #fff; }
.btn-success:hover { background: var(--green-700); color: #fff; }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: var(--red-700); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink-800); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--ink-50); color: var(--ink-900); border-color: var(--ink-300); }
.btn-ghost { background: transparent; color: var(--ink-600); }
.btn-ghost:hover { background: var(--ink-100); color: var(--ink-900); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.is-loading::before {
  content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 16px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.label .req { color: var(--red-500); }
.hint { font-size: 12.5px; color: var(--ink-500); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--ink-300); border-radius: 10px;
  background: #fff; font: inherit; color: var(--ink-900); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .14); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--ink-50); color: var(--ink-500); cursor: not-allowed; }
.input.is-invalid, .select.is-invalid { border-color: var(--red-500); }
.input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.field-error { font-size: 12.5px; color: var(--red-600); }
.input-group { position: relative; display: flex; }
.input-group .input { flex: 1; }
.input-group .input-addon { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.input-prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-500); pointer-events: none; }
.input-group .input.has-prefix { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field + .field { margin-top: 0; }
.form-grid .span-2 { grid-column: span 2; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink-700); }
.check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--brand-600); flex: none; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--ink-300); border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff;
  border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--brand-600); }
.switch input:checked + span::before { transform: translateX(18px); }

.phone-input { display: flex; gap: 8px; }
.phone-input .select { width: 118px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: #fff;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-700); cursor: pointer; }
.chip:hover { border-color: var(--brand-400); color: var(--brand-700); }
.chip.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.strength { display: flex; gap: 4px; margin-top: 4px; }
.strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--ink-200); transition: background .2s; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--red-500); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--amber-500); }
.strength[data-score="3"] i:nth-child(-n+3) { background: #84cc16; }
.strength[data-score="4"] i:nth-child(-n+4) { background: var(--green-500); }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.checklist li { font-size: 12.5px; color: var(--ink-500); display: flex; align-items: center; gap: 6px; }
.checklist li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-300); flex: none; }
.checklist li.ok { color: var(--green-700); }
.checklist li.ok::before { background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/9px no-repeat; border-color: var(--green-500); }

.otp { display: flex; gap: 10px; justify-content: center; }
.otp input { width: 50px; height: 58px; text-align: center; font-size: 24px; font-weight: 700; border: 1.5px solid var(--ink-300);
  border-radius: 12px; font-family: inherit; color: var(--ink-900); }
.otp input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }

/* ---------- Cards / superfícies ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 22px; }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header p { margin-top: 2px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--ink-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.section-title .num { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; }

.alert { display: flex; gap: 12px; padding: 13px 15px; border-radius: 12px; font-size: 13.5px; border: 1px solid; align-items: flex-start; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--blue-50); border-color: #bfdbfe; color: #1e3a8a; }
.alert-warning { background: var(--amber-50); border-color: #fde68a; color: #78350f; }
.alert-danger { background: var(--red-50); border-color: #fecaca; color: #7f1d1d; }
.alert-success { background: var(--green-50); border-color: #a7f3d0; color: #064e3b; }
.alert .alert-title { font-weight: 650; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-green { background: var(--green-50); color: var(--green-700); }
.badge-amber { background: var(--amber-50); color: var(--amber-700); }
.badge-red { background: var(--red-50); color: var(--red-700); }
.badge-gray { background: var(--ink-100); color: var(--ink-600); }
.badge-blue { background: var(--blue-50); color: var(--blue-600); }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }

.progress { height: 8px; background: var(--ink-100); border-radius: 99px; overflow: hidden; display: flex; }
.progress > .bar { height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); transition: width .6s ease; }
.progress > .bar.green { background: linear-gradient(90deg, #34d399, var(--green-600)); }
.progress > .bar.amber { background: #fbbf24; }
.progress.lg { height: 12px; }

/* ---------- Layout do app ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: #0f1229; color: #c7cbe6; position: fixed; inset: 0 auto 0 0; display: flex;
  flex-direction: column; z-index: 40; transition: transform .25s ease;
  background-image: radial-gradient(circle at 0 0, rgba(99, 102, 241, .25), transparent 55%);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 22px 22px 18px; color: #fff; font-weight: 750; font-size: 18px; letter-spacing: -.02em; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); box-shadow: 0 6px 16px -4px rgba(99, 102, 241, .6); }
.brand-logo .icon { color: #fff; width: 20px; height: 20px; }
.nav { padding: 8px 14px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6b7097; padding: 16px 10px 8px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #c7cbe6;
  font-weight: 500; font-size: 14px; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: rgba(129, 140, 248, .18); color: #fff; }
.nav a.active .icon { color: var(--brand-400); }
.nav .icon { width: 19px; height: 19px; color: #8a8fb8; }
.sidebar-cta { margin: 12px 16px 18px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.sidebar-cta p { font-size: 12.5px; color: #a3a8cc; margin: 4px 0 12px; }
.sidebar-cta strong { color: #fff; font-size: 13.5px; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 66px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 30; }
.topbar .menu-btn { display: none; }
.topbar-title { font-size: 15px; font-weight: 600; color: var(--ink-700); }
.user-menu { margin-left: auto; position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 5px 8px 5px 5px;
  border-radius: 12px; font: inherit; }
.user-btn:hover { background: var(--ink-100); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: var(--brand-700); background: var(--brand-100); flex: none; }
.user-btn .who { text-align: left; line-height: 1.2; }
.user-btn .who strong { display: block; font-size: 13.5px; color: var(--ink-900); }
.user-btn .who span { font-size: 12px; color: var(--ink-500); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 50; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px;
  color: var(--ink-700); font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--ink-100); color: var(--ink-900); }
.dropdown .danger { color: var(--red-600); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.content { padding: 28px; max-width: 1360px; width: 100%; margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header p { color: var(--ink-500); margin-top: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: 13.5px; font-weight: 500; margin-bottom: 10px; }
.back-link:hover { color: var(--ink-900); }
.backdrop { display: none; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.kpi-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi-icon .icon { width: 21px; height: 21px; }
.kpi-icon.brand { background: var(--brand-50); color: var(--brand-600); }
.kpi-icon.green { background: var(--green-50); color: var(--green-600); }
.kpi-icon.amber { background: var(--amber-50); color: var(--amber-700); }
.kpi-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.kpi-label { font-size: 12.5px; color: var(--ink-500); font-weight: 500; }
.kpi-value { font-size: 22px; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; margin-top: 2px; }
.kpi-sub { font-size: 12px; color: var(--ink-400); margin-top: 2px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 11px 14px; font-weight: 600; font-size: 14px; color: var(--ink-500); border: 0; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-family: inherit; }
.tab:hover { color: var(--ink-800); }
.tab.active { color: var(--brand-700); border-bottom-color: var(--brand-600); }
.tab .count { background: var(--ink-100); color: var(--ink-600); font-size: 11.5px; padding: 1px 8px; border-radius: 99px; }
.tab.active .count { background: var(--brand-100); color: var(--brand-700); }
.segmented { display: inline-flex; background: var(--ink-100); padding: 4px; border-radius: 11px; gap: 2px; }
.segmented button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink-600); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.segmented button.active { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }

/* ---------- Toolbar / filtros ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .search { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.toolbar .search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-400); }
.toolbar .search .input { padding-left: 38px; }
.toolbar .select { width: auto; min-width: 160px; }

/* ---------- Grid de rifas ---------- */
.raffle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.raffle-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .2s; cursor: pointer; color: inherit; }
.raffle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.raffle-cover { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e0e7ff, #f5f3ff); position: relative; overflow: hidden; }
.raffle-cover img { width: 100%; height: 100%; object-fit: cover; }
.raffle-cover .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-400); }
.raffle-cover .placeholder .icon { width: 44px; height: 44px; stroke-width: 1.5; }
.raffle-cover .badge { position: absolute; top: 12px; left: 12px; box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .95); }
.raffle-cover .price-tag { position: absolute; bottom: 12px; right: 12px; background: rgba(15, 23, 42, .78); color: #fff;
  padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(4px); }
.raffle-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.raffle-info h3 { font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.raffle-progress-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.raffle-progress-head strong { color: var(--ink-900); }
.raffle-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.raffle-stats .label-sm { font-size: 11.5px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.raffle-stats .val { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.raffle-card .card-cta { padding: 0 18px 18px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); font-weight: 600;
  padding: 11px 16px; background: var(--ink-50); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
.table tbody tr:hover td { background: #fafbff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 4px; justify-content: flex-end; }
.cell-title { font-weight: 600; color: var(--ink-900); }
.cell-sub { font-size: 12.5px; color: var(--ink-500); }
.num-pills { display: flex; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.num-pill { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--ink-100); color: var(--ink-700);
  padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.num-pill.more { background: var(--brand-50); color: var(--brand-700); }

/* ---------- Paginação ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination button { min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.pagination button.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Estados ---------- */
.empty { text-align: center; padding: 56px 24px; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-50); color: var(--brand-500); display: grid; place-items: center; margin: 0 auto 16px; }
.empty-icon .icon { width: 30px; height: 30px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-500); max-width: 420px; margin: 0 auto 18px; }
.skeleton { background: linear-gradient(90deg, var(--ink-100) 25%, #e9edf3 37%, var(--ink-100) 63%); background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.page-loading { display: grid; place-items: center; padding: 80px 0; color: var(--ink-400); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--brand-100); border-top-color: var(--brand-600); animation: spin .8s linear infinite; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; padding: 12px 0; position: relative; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 48px; bottom: -4px; width: 2px; background: var(--ink-100); }
.tl-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ink-100); color: var(--ink-500); }
.tl-icon .icon { width: 17px; height: 17px; }
.tl-icon.green { background: var(--green-50); color: var(--green-600); }
.tl-icon.amber { background: var(--amber-50); color: var(--amber-700); }
.tl-icon.red { background: var(--red-50); color: var(--red-600); }
.tl-icon.brand { background: var(--brand-50); color: var(--brand-600); }
.tl-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.tl-body { flex: 1; min-width: 0; padding-top: 2px; }
.tl-title { font-weight: 600; color: var(--ink-900); font-size: 13.5px; }
.tl-msg { color: var(--ink-600); font-size: 13.5px; margin-top: 1px; word-break: break-word; }
.tl-meta { color: var(--ink-400); font-size: 12px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.tl-day { font-size: 12px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; padding: 18px 0 4px; }

/* ---------- Mapa de números ---------- */
.numbers-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-600); }
.numbers-legend span { display: inline-flex; align-items: center; gap: 6px; }
.numbers-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.num { height: 38px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 600; color: var(--ink-700); cursor: default; display: grid; place-items: center; transition: all .1s; padding: 0; }
.num.available { cursor: pointer; }
.num.available:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.num.selected { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.num.reserved { background: var(--amber-100); border-color: #fcd34d; color: var(--amber-700); }
.num.paid { background: var(--green-100); border-color: #6ee7b7; color: var(--green-700); }
.num.winner { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; border-color: #f59e0b; }
.legend-available { background: #fff; border: 1px solid var(--ink-300); }
.legend-reserved { background: var(--amber-100); border: 1px solid #fcd34d; }
.legend-paid { background: var(--green-100); border: 1px solid #6ee7b7; }
.legend-selected { background: var(--brand-600); }

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); animation: fadeIn .15s; }
.modal { position: relative; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px;
  max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .18s ease; }
.modal.lg { max-width: 760px; }
.modal-header { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-header p { margin-top: 4px; color: var(--ink-500); font-size: 13.5px; }
.modal-body { padding: 18px 24px; overflow-y: auto; }
.modal-footer { padding: 16px 24px 20px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--ink-100); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--brand-500);
  border-radius: 12px; padding: 13px 14px; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: slideIn .22s ease; color: var(--ink-800); }
.toast.success { border-left-color: var(--green-500); } .toast.success .icon { color: var(--green-600); }
.toast.error { border-left-color: var(--red-500); } .toast.error .icon { color: var(--red-600); }
.toast.warning { border-left-color: var(--amber-500); } .toast.warning .icon { color: var(--amber-700); }
.toast .icon { color: var(--brand-600); margin-top: 1px; }
.toast.leaving { opacity: 0; transform: translateX(20px); transition: all .2s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside { background: #0f1229; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 15% 10%, rgba(129, 140, 248, .45), transparent 45%), radial-gradient(circle at 90% 90%, rgba(16, 185, 129, .25), transparent 40%); }
.auth-aside .brand { padding: 0; }
.auth-hero { margin: auto 0; max-width: 470px; }
.auth-hero h2 { color: #fff; font-size: 36px; line-height: 1.15; font-weight: 750; letter-spacing: -.03em; }
.auth-hero p { color: #b8bce0; font-size: 16px; margin-top: 16px; }
.auth-features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.auth-features li { display: flex; gap: 12px; align-items: center; color: #dfe2f7; font-size: 14.5px; }
.auth-features .fi { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex: none; }
.auth-features .fi .icon { color: var(--brand-400); }
.auth-foot { color: #6b7097; font-size: 12.5px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h1 { font-size: 26px; }
.auth-card .sub { color: var(--ink-500); margin: 6px 0 28px; }
.auth-card .foot { text-align: center; margin-top: 24px; color: var(--ink-500); font-size: 14px; }
.auth-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.auth-icon .icon { width: 28px; height: 28px; }
.auth-icon.brand { background: var(--brand-50); color: var(--brand-600); }
.auth-icon.green { background: var(--green-50); color: var(--green-600); }
.auth-icon.red { background: var(--red-50); color: var(--red-600); }

/* ---------- Criação de rifa ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.form-layout .aside { position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--ink-200); font-size: 14px; }
.summary-row:last-child { border-bottom: 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; }
.summary-total .v { font-size: 26px; font-weight: 750; color: var(--ink-900); letter-spacing: -.02em; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fee-table td { padding: 7px 10px; border-bottom: 1px solid var(--ink-100); }
.fee-table td:last-child { text-align: right; font-weight: 600; }
.fee-table tr.current td { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.fee-table tr.current td:first-child { border-radius: 8px 0 0 8px; }
.fee-table tr.current td:last-child { border-radius: 0 8px 8px 0; }
.dropzone { border: 2px dashed var(--ink-300); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; transition: all .15s; background: var(--ink-50); position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand-500); background: var(--brand-50); }
.dropzone .icon { width: 30px; height: 30px; color: var(--brand-500); margin: 0 auto 8px; display: block; }
.dropzone.has-image { padding: 0; border-style: solid; overflow: hidden; aspect-ratio: 16/9; }
.dropzone.has-image img { width: 100%; height: 100%; object-fit: cover; }
.dropzone .remove-img { position: absolute; top: 10px; right: 10px; }
.dropzone.has-image > img { position: absolute; inset: 0; }
.dropzone .upload-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: rgba(15, 23, 42, .45); color: #fff; font-weight: 600; font-size: 13.5px; backdrop-filter: blur(1px); }
.dropzone .upload-overlay .spinner { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; width: 30px; height: 30px; }
.dropzone.is-uploading { cursor: progress; }
.dropzone .img-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px; color: var(--red-700); background: var(--red-50); font-size: 13px; text-align: center; }
.dropzone .img-error .icon { width: 26px; height: 26px; margin: 0; color: var(--red-600); }
.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-400); }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-100); color: var(--ink-500); font-size: 13px; }
.step.done .dot { background: var(--green-500); color: #fff; }
.step.done { color: var(--green-700); }
.step.current .dot { background: var(--brand-600); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.step.current { color: var(--ink-900); }
.step-line { width: 40px; height: 2px; background: var(--ink-200); border-radius: 2px; }

/* ---------- PIX ---------- */
.pix-box { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.qr-frame { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); position: relative; }
.qr-frame img { width: 100%; height: auto; image-rendering: pixelated; }
.pix-amount { font-size: 34px; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; }
.pix-code { display: flex; gap: 8px; margin-top: 12px; }
.pix-code input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--ink-50); }
.pix-steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.pix-steps li { counter-increment: s; display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-600); }
.pix-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.waiting { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 99px; background: var(--amber-50); color: var(--amber-700); font-weight: 600; font-size: 13.5px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--amber-500); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); } 70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.success-hero { text-align: center; padding: 36px 20px; }
.success-check { width: 84px; height: 84px; border-radius: 50%; background: var(--green-500); color: #fff; display: grid; place-items: center; margin: 0 auto 20px;
  box-shadow: 0 0 0 10px var(--green-100); animation: pop .35s ease; }
.success-check .icon { width: 42px; height: 42px; stroke-width: 3; }

/* ---------- Detalhe ---------- */
.detail-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.detail-thumb { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; background: var(--brand-50); flex: none; display: grid; place-items: center; color: var(--brand-400); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.link-box { display: flex; align-items: center; gap: 8px; background: var(--ink-50); border: 1px solid var(--border); border-radius: 10px; padding: 6px 6px 6px 12px; max-width: 520px; }
.link-box span { font-size: 13px; color: var(--ink-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.winner-card { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: var(--radius-lg); padding: 22px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.winner-number { font-size: 40px; font-weight: 800; color: var(--amber-700); font-family: ui-monospace, Menlo, Consolas, monospace; background: #fff;
  border-radius: 16px; padding: 10px 22px; box-shadow: var(--shadow); letter-spacing: .04em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.chart .colbar { width: 100%; max-width: 22px; background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; transition: height .5s; }
.chart .colbar.zero { background: var(--ink-100); }
.chart .col:hover .colbar { filter: brightness(1.1); }
.chart .col .tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink-900); color: #fff;
  font-size: 11.5px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.chart .col:hover .tip { display: block; }
.chart .lbl { font-size: 10.5px; color: var(--ink-400); }
.top-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ink-100); }
.top-item:last-child { border-bottom: 0; }
.top-thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-50); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--brand-400); }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; }
.session-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ink-100); }
.session-item:last-child { border-bottom: 0; }
.device-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--ink-100); display: grid; place-items: center; color: var(--ink-600); flex: none; }

/* ---------- Página pública ---------- */
.public { min-height: 100vh; background: var(--bg); }
.public-top { background: #fff; border-bottom: 1px solid var(--border); }
.public-top .inner { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.public-top .brand { padding: 0; color: var(--ink-900); font-size: 17px; }
.public-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 120px; }
.public-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.public-cover { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e0e7ff, #ede9fe); position: relative; box-shadow: var(--shadow); }
.public-cover img { width: 100%; height: 100%; object-fit: cover; }
.public-cover .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-400); }
.public-cover .placeholder .icon { width: 72px; height: 72px; stroke-width: 1.3; }
.public-title { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.price-big { font-size: 30px; font-weight: 800; color: var(--brand-700); letter-spacing: -.02em; }
.buy-box { position: sticky; top: 20px; }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--ink-300); border-radius: 12px; overflow: hidden; height: 52px; }
.qty button { width: 52px; height: 100%; border: 0; background: var(--ink-50); font-size: 22px; font-weight: 600; cursor: pointer; color: var(--ink-700); }
.qty button:hover { background: var(--ink-100); }
.qty input { flex: 1; border: 0; text-align: center; font-size: 20px; font-weight: 700; height: 100%; font-family: inherit; color: var(--ink-900); min-width: 0; }
.qty input:focus { outline: none; }
.quick-add { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-add button { height: 44px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font: inherit; font-weight: 700; color: var(--brand-700); cursor: pointer; font-size: 14px; }
.quick-add button:hover { border-color: var(--brand-400); background: var(--brand-50); }
.quick-add button.popular { position: relative; border-color: var(--brand-400); }
.quick-add button.popular::after { content: 'Popular'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--brand-600); color: #fff;
  font-size: 10px; padding: 1px 7px; border-radius: 99px; font-weight: 600; }
.total-line { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--border); margin-top: 18px; }
.total-line .v { font-size: 26px; font-weight: 800; color: var(--ink-900); }
.mobile-buy { display: none; }
.meta-list { display: grid; gap: 10px; margin-top: 18px; }
.meta-list .row { font-size: 14px; color: var(--ink-600); }
.meta-list .icon { color: var(--brand-500); }
.description { white-space: pre-wrap; color: var(--ink-700); font-size: 14.5px; line-height: 1.7; }

/* ---------- Lista de rifas ---------- */
.raffle-card { cursor: default; }
.raffle-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.raffle-link:hover { color: inherit; }
.raffle-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; color: var(--ink-800); font-weight: 600; }
.raffle-dates > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.raffle-dates .label-sm { font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.raffle-dates .label-sm .icon { width: 13px; height: 13px; }
.raffle-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--ink-100); }
.date-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-500); font-weight: 600; }
.date-filter .input { width: auto; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-root { min-height: 100vh; }

/* ---------- Prêmios (cadastro / detalhe) ---------- */
.prize-block { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: var(--ink-50); }
.prize-block h3 { display: flex; align-items: center; gap: 8px; }
.prize-list { display: grid; gap: 8px; }
.prize-row { display: flex; align-items: center; gap: 8px; }
.prize-row .input { background: #fff; }
.prize-row .prize-number { width: 110px; flex: none; text-align: center; font-weight: 700; }
.prize-pos { min-width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.qty-inline { display: flex; align-items: center; gap: 10px; }
.stepper { display: flex; border: 1px solid var(--ink-300); border-radius: 10px; overflow: hidden; height: 38px; background: #fff; }
.stepper button { width: 36px; border: 0; background: var(--ink-50); font-size: 18px; font-weight: 600; cursor: pointer; color: var(--ink-700); }
.stepper button:hover { background: var(--ink-100); }
.stepper input { width: 52px; border: 0; text-align: center; font: inherit; font-weight: 700; color: var(--ink-900); }
.stepper input:focus { outline: none; }
.num-pill.big { font-size: 14px; padding: 4px 10px; background: var(--amber-100); color: var(--amber-700); }
.winner-list { display: grid; gap: 10px; }
.winner-line { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 10px 12px; }
.winner-number.sm { font-size: 22px; padding: 6px 14px; border-radius: 12px; }
.num.instant { box-shadow: inset 0 0 0 2px var(--green-500); }
.num.instant::after { content: '🎁'; position: absolute; font-size: 9px; top: -6px; right: -4px; }
.num { position: relative; }
.legend-instant { background: #fff; box-shadow: inset 0 0 0 2px var(--green-500); }
.legend-winner { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.draw-prizes { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.draw-prize { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.draw-prize:has(input[type=checkbox]:checked) { border-color: var(--brand-400); background: var(--brand-50); }
.draw-prize input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand-600); }

/* ---------- Página pública: prêmios / resultado ---------- */
.prize-public { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prize-public li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-800); }
.instant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.instant-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--ink-300); border-radius: 12px; background: #fff; }
.instant-item .num-pill.big { background: var(--green-50); color: var(--green-700); }
.num-pill.secret { display: inline-grid; place-items: center; min-width: 52px; background: var(--ink-100) !important; color: var(--ink-500) !important; }
.num-pill.secret .icon { width: 14px; height: 14px; }
.instant-item.found { border-style: solid; border-color: #a7f3d0; background: var(--green-50); }
.results-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.results-thumb { width: 110px; height: 110px; border-radius: 20px; overflow: hidden; background: var(--brand-50); display: grid; place-items: center; color: var(--brand-400); flex: none; box-shadow: var(--shadow); }
.results-thumb img { width: 100%; height: 100%; object-fit: cover; }
.results-list { display: grid; gap: 12px; }
.result-row { display: flex; gap: 18px; align-items: center; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; flex-wrap: wrap; }
.result-row .winner-number { font-size: 30px; padding: 8px 18px; }
.instant-alert { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid; }
.instant-alert.pending { background: var(--green-50); border-color: #a7f3d0; color: #064e3b; }
.instant-alert.won { background: linear-gradient(135deg, #fffbeb, #fde68a); border-color: #fbbf24; color: #78350f; box-shadow: 0 10px 30px -10px rgba(245, 158, 11, .5); animation: pop .35s ease; }
.instant-alert-icon { font-size: 34px; line-height: 1; }
.instant-alert-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.instant-won-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.instant-won-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.emoji-burst { position: absolute; top: -10px; font-size: 22px; pointer-events: none; animation: emojiFall 2.2s ease-in forwards; }
@keyframes emojiFall { from { transform: translate(0, -20px) rotate(0); opacity: 1; } to { transform: translate(var(--dx), 220px) rotate(240deg); opacity: 0; } }

/* ---------- Consulta pública ---------- */
.lookup-card { padding: 20px; }
.lookup-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lookup-section { border-top: 1px solid var(--ink-100); margin-top: 16px; padding-top: 14px; }
.lookup-order { padding: 10px 0; border-bottom: 1px dashed var(--ink-200); }
.lookup-order:last-child { border-bottom: 0; }
.lookup-prizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lookup-prizes li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.lookup-prizes li.me { background: var(--amber-50); font-weight: 700; }

/* ---------- Métricas ---------- */
.grid-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart .col { position: relative; outline: none; }
.chart .col.best .colbar { background: linear-gradient(180deg, var(--brand-500), var(--brand-700)); }
.chart .col:focus .tip { display: block; }
.chart .best-val { position: absolute; top: -18px; font-size: 11px; font-weight: 700; color: var(--ink-700); white-space: nowrap; }
.chart { padding-top: 22px; }
.chart .tip { line-height: 1.4; }
.chart-empty { height: 160px; display: grid; place-items: center; color: var(--ink-400); font-size: 13px; border: 1px dashed var(--ink-200); border-radius: 12px; }

/* ---------- Show do sorteio ---------- */
.draw-show { position: fixed; inset: 0; z-index: 150; background: #070918; color: #fff; display: flex; flex-direction: column; animation: fadeIn .25s; }
.ds-stage { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 28px 24px 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, .45), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(236, 72, 153, .25), transparent 50%),
  radial-gradient(ellipse at 0% 100%, rgba(16, 185, 129, .22), transparent 50%), #0b0d24; }
.ds-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(129, 140, 248, .12), transparent 30%); animation: spin 14s linear infinite; pointer-events: none; }
.ds-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.ds-top { position: relative; z-index: 2; text-align: center; }
.ds-brand { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fde68a; }
.ds-brand .icon { color: #fbbf24; }
.ds-raffle { font-size: clamp(20px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-top: 10px; max-width: 900px; }
.ds-date { font-size: 13px; color: #a5abd6; margin-top: 4px; }
.ds-main { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1100px; display: grid; place-items: center; }
.ds-foot { position: relative; z-index: 2; font-size: 12.5px; color: #8187b8; }
.ds-kicker { font-size: clamp(13px, 1.6vw, 17px); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #a5b4fc; text-align: center; }
.ds-intro { text-align: center; }
.ds-count { font-size: clamp(110px, 22vw, 240px); font-weight: 900; line-height: 1; margin: 10px 0; background: linear-gradient(180deg, #fff, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ds-count.pop { animation: countPop .9s ease; }
@keyframes countPop { 0% { transform: scale(1.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: .2; } }
.ds-sub { color: #c7cbe6; font-size: 18px; }
.ds-prize { text-align: center; width: 100%; animation: pop .35s ease; }
.ds-title { font-size: clamp(22px, 3.6vw, 40px); font-weight: 800; margin: 8px auto 24px; max-width: 900px; line-height: 1.2; }
.ds-reels { display: inline-flex; gap: clamp(6px, 1.2vw, 14px); padding: clamp(10px, 1.6vw, 18px); border-radius: 26px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 80px -20px rgba(99, 102, 241, .6), inset 0 1px 0 rgba(255, 255, 255, .1); transition: box-shadow .4s; }
.ds-reels.done { box-shadow: 0 0 0 4px rgba(251, 191, 36, .6), 0 30px 90px -10px rgba(251, 191, 36, .55); }
.ds-reel { --cell: clamp(76px, 13vw, 150px); height: var(--cell); width: calc(var(--cell) * .72); overflow: hidden; border-radius: 16px;
  background: linear-gradient(180deg, #1e2150, #2d3170 50%, #1e2150); position: relative; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ds-reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 24, .7), transparent 30%, transparent 70%, rgba(7, 9, 24, .7)); pointer-events: none; }
.ds-strip span { display: block; height: var(--cell); line-height: var(--cell); font-size: calc(var(--cell) * .72); font-weight: 900; text-align: center; color: #fff; }
.ds-reel.stopped { background: linear-gradient(180deg, #f59e0b, #fbbf24 50%, #f59e0b); }
.ds-reel.stopped span { color: #3b2300; }
.ds-reel.stopped::after { background: none; }
.ds-winner { min-height: 120px; margin-top: 28px; display: flex; justify-content: center; }
.ds-winner-card { display: inline-flex; align-items: center; gap: 18px; padding: 16px 28px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  text-align: left; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); backdrop-filter: blur(6px); }
.ds-party { font-size: 46px; }
.ds-winner-label { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #fde68a; }
.ds-winner-name { font-size: clamp(24px, 3.6vw, 40px); font-weight: 900; letter-spacing: -.02em; }
.ds-winner-sub { color: #c7cbe6; font-size: 15px; }
.ds-final { width: 100%; text-align: center; animation: pop .4s ease; }
.ds-congrats { font-size: clamp(30px, 5.2vw, 60px); font-weight: 900; letter-spacing: -.03em; margin: 6px 0 22px;
  background: linear-gradient(90deg, #fde68a, #f9a8d4, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ds-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; text-align: left; }
.ds-result { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.ds-result-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 28px; font-weight: 900; color: #3b2300; background: linear-gradient(135deg, #fbbf24, #f59e0b); padding: 6px 14px; border-radius: 12px; }
.ds-result-pos { font-size: 12.5px; color: #c7cbe6; }
.ds-result-name { font-size: 18px; font-weight: 800; }
.ds-result-name span { font-size: 13px; color: #a5abd6; font-weight: 500; }
.ds-results.compact .ds-result-num { font-size: 20px; }
.ds-results.compact .ds-result-name { font-size: 15px; }
.ds-instant { margin-top: 18px; }
.ds-instant-title { font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #6ee7b7; display: inline-flex; gap: 8px; align-items: center; }
.ds-instant-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.ds-chip { padding: 6px 12px; border-radius: 99px; background: rgba(16, 185, 129, .15); border: 1px solid rgba(110, 231, 183, .3); font-size: 13.5px; }
.ds-chip b { font-family: ui-monospace, Menlo, Consolas, monospace; color: #6ee7b7; margin-right: 4px; }
.ds-thanks { margin-top: 22px; color: #c7cbe6; font-size: 16px; }
.ds-controls { position: absolute; right: 16px; bottom: 16px; z-index: 10; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; transition: opacity .3s; }
.ds-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(15, 18, 41, .7);
  color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.ds-btn:hover { background: rgba(255, 255, 255, .14); }
.ds-btn.primary { background: var(--brand-600); border-color: var(--brand-500); }
.ds-btn.primary:hover { background: var(--brand-700); }
.draw-show.ds-playing .ds-controls { opacity: 0; pointer-events: none; }
.draw-show.ds-playing:hover .ds-controls { opacity: .9; pointer-events: auto; }
.draw-show.ds-playing .ds-controls > :not([data-close]) { display: none; }
.draw-show.ds-recording .ds-controls { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-layout { grid-template-columns: 1fr; }
  .form-layout .aside { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar .menu-btn { display: inline-flex; }
  .content { padding: 20px 16px; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .public-grid { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-metrics { grid-template-columns: 1fr; }
  .pix-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pix-box .qr-frame { max-width: 260px; }
  .pix-code { width: 100%; }
  .user-btn .who { display: none; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; flex-direction: column; gap: 10px; }
  .kpi-value { font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .card-body { padding: 18px; }
  .page-header h1 { font-size: 21px; }
  .otp input { width: 44px; height: 52px; font-size: 21px; }
  .otp { gap: 7px; }
  .checklist { grid-template-columns: 1fr; }
  .mobile-buy { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border);
    padding: 12px 16px; gap: 12px; align-items: center; z-index: 20; box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
  .public-title { font-size: 23px; }
  .modal-root { padding: 0; place-items: end center; }
  .modal { border-radius: 22px 22px 0 0; max-height: 92vh; }
  .toolbar .select, .toolbar .search { max-width: none; min-width: 0; flex: 1 1 100%; }
  .steps .step-line { width: 16px; }
  .prize-row { flex-wrap: wrap; }
  .prize-row .input[data-title] { flex: 1 1 100%; }
  .date-filter { flex: 1 1 45%; }
  .date-filter .input { flex: 1; }
  .ds-stage { padding: 18px 12px 12px; }
  .ds-results { grid-template-columns: 1fr; }
  .ds-controls { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .ds-btn span { display: none; }
}
.raffle-cover .badge.test-tag { left: auto; right: 12px; }
