:root {
  --bg: #171018;
  --panel: #241924;
  --panel-2: #301f2a;
  --text: #fff8ec;
  --muted: #cdbfc7;
  --primary: #d6a84f;
  --accent: #e0528d;
  --success: #33c47a;
  --danger: #ff6868;
  --reserved: #8b7f90;
  --sold: #4b434f;
  --border: rgba(255, 255, 255, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
}
input[type="checkbox"] { width: auto; min-height: auto; }
textarea { min-height: 96px; resize: vertical; }
label { display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
code { word-break: break-all; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--primary); font-size: .85rem; text-transform: uppercase; }
tr.is-highlighted td { background: rgba(214,168,79,.12); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--primary), #f1d88c);
  color: #1c1216;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(56,174,234,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.button:hover { transform: translateY(-1px); filter: saturate(1.08); }
.button:disabled { opacity: .55; cursor: wait; }
.button-ghost { background: rgba(255,255,255,.08); color: var(--text); box-shadow: none; }
.pwa-install { margin-top: 12px; }
.whatsapp { background: #25d366; color: #08190f; margin-top: 12px; }
.muted { color: var(--muted); }
.alert, .flash, .reserve-result.is-error { background: rgba(255,104,104,.14); border: 1px solid rgba(255,104,104,.35); color: #ffdada; padding: 12px; border-radius: 8px; }
.flash, .reserve-result.is-success { background: rgba(51,196,122,.14); border-color: rgba(51,196,122,.35); color: #dcffe9; }

.brand {
  display: inline-grid;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  font-size: 1.45rem;
}
.brand span { color: var(--muted); font-size: .78rem; font-weight: 700; }

.public-shell {
  background:
    radial-gradient(circle at top left, rgba(224,82,141,.18), transparent 32rem),
    linear-gradient(160deg, #171018 0%, #221421 45%, #151116 100%);
  min-height: 100vh;
}
.raffle-page {
  --page-bg: var(--raffle-bg, #eaf8ff);
  --surface: #ffffff;
  --surface-soft: rgba(255,255,255,.78);
  --page-text: #132431;
  --page-muted: #5d7280;
  --cell-bg: #ffffff;
  --cell-border: rgba(31, 101, 135, .24);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.82), transparent 28rem),
    linear-gradient(180deg, color-mix(in srgb, var(--page-bg) 78%, #ffffff), var(--page-bg));
  color: var(--page-text);
}
.raffle-page.theme-premium_flyer {
  --page-bg: #f6edf7;
  --surface: #fffafd;
  --page-text: #251526;
}
.raffle-page.theme-afro_glam {
  --page-bg: #171018;
  --surface: rgba(255,255,255,.08);
  --surface-soft: rgba(255,255,255,.07);
  --page-text: #fff8ec;
  --page-muted: #cdbfc7;
  --cell-bg: rgba(255,255,255,.08);
  --cell-border: rgba(255,255,255,.16);
  background:
    radial-gradient(circle at top left, rgba(224,82,141,.18), transparent 32rem),
    linear-gradient(160deg, #171018 0%, #221421 45%, #151116 100%);
}
.raffle-page.theme-gourmand_perfume {
  --page-bg: #fff1f6;
  --surface: #fffafc;
  --page-text: #2a1720;
  --page-muted: #79586a;
}
.raffle-page.theme-minimalist {
  --page-bg: #f6f9fb;
  --surface: #ffffff;
  --page-text: #17212b;
  --page-muted: #66717a;
}
.raffle-page .raffle-layout {
  display: grid;
  gap: 24px;
}
.home, .raffle-layout { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 52px; }
.home-polished {
  width: min(1180px, calc(100% - 28px));
}
.home-hero {
  padding: 54px 0 28px;
  min-height: 340px;
  display: grid;
  align-content: center;
  position: relative;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 26px 0 auto auto;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,174,234,.18), transparent 68%);
  pointer-events: none;
}
.home-hero h1, .raffle-info h1 { font-size: clamp(2.1rem, 7vw, 4.8rem); line-height: .95; margin: 18px 0 12px; }
.home-hero p, .raffle-info p { color: var(--muted); max-width: 650px; }
.home-kicker {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .85rem;
}
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 22px;
}
.home-stats article {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 4px;
  backdrop-filter: blur(10px);
}
.home-stats strong { color: var(--primary); font-size: 1.45rem; }
.home-stats span { color: var(--muted); }
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 22px;
}
.how-it-works article {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.how-it-works span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #102331;
  font-weight: 900;
  margin-bottom: 12px;
}
.how-it-works strong { font-size: 1.2rem; }
.how-it-works p { color: var(--muted); margin: 8px 0 0; }
.empty-raffles {
  text-align: center;
  border: 1px dashed rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 34px 20px;
  background: rgba(255,255,255,.07);
}
.empty-raffles strong { display: block; font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--primary); }
.empty-raffles p { color: var(--muted); max-width: 560px; margin: 12px auto 18px; }
.raffle-list { display: grid; gap: 16px; }
.raffle-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.raffle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214,168,79,.36);
  background: rgba(255,255,255,.09);
}
.raffle-card img { height: 160px; width: 160px; object-fit: cover; border-radius: 8px; }
.raffle-card h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 3vw, 2rem); }
.raffle-card p { color: var(--muted); }
.raffle-card strong { display: block; color: var(--primary); margin: 10px 0 14px; }

.raffle-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  padding: 18px 0 26px;
}
.flyer-frame {
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, var(--panel));
  display: grid;
  place-items: center;
  box-shadow: 0 22px 70px rgba(21,78,112,.12);
}
.flyer-frame img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  object-position: center;
}
.flyer-placeholder {
  min-height: 340px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(56,174,234,.08), rgba(240,98,146,.08)),
    #fff;
}
.raffle-info {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}
.eyebrow { color: var(--primary); font-weight: 800; text-transform: uppercase; font-size: .82rem; }
.prize-list { display: grid; gap: 8px; margin: 18px 0; }
.prize-list strong {
  color: color-mix(in srgb, var(--primary) 70%, #102331);
  font-size: 1.05rem;
}
.info-strip, .transparency-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.info-strip span, .transparency-band article {
  background: var(--surface-soft, rgba(255,255,255,.07));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(19,36,49,.06);
}
.transparency-band { grid-template-columns: repeat(4, 1fr); margin: 12px 0 28px; }
.transparency-band.lnb-only {
  grid-template-columns: minmax(220px, 360px);
  justify-content: center;
}
.transparency-band.lnb-only article { text-align: center; }
.transparency-band article { display: grid; gap: 4px; }
.transparency-band strong { font-size: 1.7rem; color: var(--primary); }
.transparency-band span { color: var(--page-muted, var(--muted)); }
.winner-band {
  margin: 0 0 28px;
  border: 1px solid rgba(214,168,79,.35);
  border-radius: 8px;
  padding: 18px;
  background: rgba(214,168,79,.08);
}
.winner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.winner-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0,0,0,.16);
}
.winner-grid span { color: var(--muted); }
.winner-grid strong { display: block; color: #ffdd54; font-size: 2.4rem; margin: 6px 0; }
.winner-grid p { margin: 0 0 8px; }
.winner-grid small { color: var(--muted); }
.grid-section {
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 54px rgba(20,82,120,.08);
}
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.section-heading h2, .reservation-panel h2, .public-buyers h2 { margin: 0 0 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); margin: 12px 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 999px; margin-right: 6px; background: var(--primary); }
.dot.selected { background: var(--accent); } .dot.reserved { background: var(--reserved); } .dot.sold { background: var(--sold); } .dot.winner { background: #ffdd54; }
.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 9px;
}
.number-cell {
  min-height: 56px;
  border: 1px solid var(--cell-border);
  border-radius: 10px;
  background: var(--cell-bg);
  color: var(--page-text, var(--text));
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 8px 18px rgba(19,36,49,.08);
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 6px 4px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
}
.number-cell:not(:disabled):hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 12px 24px rgba(19,36,49,.13);
}
.number-cell small { font-size: .57rem; letter-spacing: 0; line-height: 1; }
.number-cell > span { white-space: nowrap; line-height: 1; }
.number-cell.is-selected {
  background: color-mix(in srgb, var(--accent) 88%, #ffffff);
  color: #fff;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 28%, transparent);
}
.number-cell.is-reserved { background: #ffc857; color: #3d2600; cursor: not-allowed; }
.number-cell.is-sold { background: var(--sold); color: #a99eab; cursor: not-allowed; }
.number-cell.is-winner {
  background: linear-gradient(135deg, #ffec8a, #d99a19);
  color: #1c1216;
  cursor: not-allowed;
  border-color: #ffe27a;
  box-shadow: 0 0 0 2px rgba(255,226,122,.45), 0 0 22px rgba(255,214,80,.72);
}
.number-cell.is-winner .winner-mark { font-size: 1rem; line-height: 1; }
.raffle-status-drawn .number-cell:not(.is-winner) {
  opacity: .38;
  filter: grayscale(.75);
}
.grid-outlined .number-cell {
  background: transparent;
  border-width: 2px;
  box-shadow: none;
}
.grid-compact .number-grid { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 6px; }
.grid-compact .number-cell { min-height: 46px; }
.grid-premium .number-cell {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 8px 22px rgba(0,0,0,.08);
}
.reservation-panel, .public-buyers, .panel {
  margin-top: 26px;
  background: var(--surface-soft, rgba(255,255,255,.06));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 54px rgba(20,82,120,.08);
}
.raffle-page input,
.raffle-page select,
.raffle-page textarea {
  background: #fff !important;
  color: #132431 !important;
  border-color: var(--cell-border) !important;
  caret-color: #132431;
}
.raffle-page input::placeholder,
.raffle-page textarea::placeholder {
  color: #7f94a3 !important;
}
.raffle-page select option {
  background: #fff;
  color: #132431;
}
.raffle-page label,
.raffle-page .muted,
.raffle-page .section-heading p,
.raffle-page .payment-note {
  color: var(--page-muted);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.reservation-panel form { display: grid; gap: 14px; }
.selection-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: rgba(19,36,49,.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.payment-note { margin-top: 14px; color: var(--muted); }
.public-buyers ul { columns: 2; padding-left: 20px; }
.transparency-list {
  list-style: none;
  padding-left: 0 !important;
  columns: 2;
}
.transparency-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
  break-inside: avoid;
  color: var(--page-muted);
}
.transparency-list li strong {
  min-width: 38px;
  color: var(--page-text);
}
.transparency-list li.is-winner {
  border: 1px solid rgba(255,214,80,.65);
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(255,236,138,.26), rgba(217,154,25,.14));
  box-shadow: 0 0 18px rgba(255,214,80,.22);
}
.transparency-list li.is-winner strong { color: #9a6500; }
.transparency-list li em {
  margin-left: auto;
  color: #9a6500;
  font-style: normal;
  font-weight: 900;
  font-size: .78rem;
}
.public-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
  color: var(--muted);
}
.public-status span,
.public-status a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.05);
}
.receipt-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.receipt-message { color: var(--muted); }
.receipt-message.is-success { color: #dcffe9; }
.receipt-message.is-error { color: #ffdada; }

.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.login-card { width: min(420px, 100%); display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.brand-login { margin-bottom: 8px; }
.login-card h1 { margin: 0; }

.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #120f13; }
.admin-sidebar { background: #1b151d; border-right: 1px solid var(--border); padding: 20px; position: sticky; top: 0; height: 100vh; }
.admin-sidebar-head { display: grid; gap: 12px; }
.admin-menu-toggle {
  display: none;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 800;
}
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 24px; }
.admin-sidebar nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.07); color: var(--text); }
.admin-main { padding: 18px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-topbar div:first-child { display: grid; gap: 3px; }
.admin-topbar span { color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.notification-pill { min-width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: #fff !important; font-weight: 900; }
.notification-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(390px, calc(100% - 36px));
  background: #fff8ec;
  color: #20151d;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0,0,0,.36);
  padding: 16px;
}
.notification-toast[hidden] { display: none; }
.notification-toast p {
  max-height: 92px;
  overflow: auto;
  white-space: pre-line;
  margin: 8px 0 12px;
  color: #4f414b;
}
.notification-toast .actions { justify-content: flex-end; }
.notification-toast a,
.notification-toast button {
  border: 0;
  background: #20151d;
  color: #fff8ec;
  border-radius: 8px;
  padding: 9px 12px;
  text-decoration: none;
  cursor: pointer;
}
.notification-list { display: grid; gap: 12px; }
.notification-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.05);
}
.notification-item.is-unread { border-color: rgba(214,168,79,.45); background: rgba(214,168,79,.08); }
.notification-item.is-read { opacity: .72; }
.notification-item p { white-space: pre-line; color: var(--muted); }
.notification-item small { display: block; color: var(--muted); margin-top: 4px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.metric-grid article { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: grid; gap: 10px; }
.metric-grid strong { font-size: 1.7rem; color: var(--primary); }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-grid article { border: 1px solid var(--border); border-radius: 8px; padding: 14px; background: rgba(255,255,255,.05); }
.settings-grid span { color: var(--muted); }
.settings-grid strong { display: block; color: var(--primary); margin: 8px 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; }
.table-wrap { overflow-x: auto; }
.danger-panel { border-color: rgba(255,104,104,.42); }
.delete-warning {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(255,104,104,.35);
  border-radius: 8px;
  background: rgba(255,104,104,.1);
}
.delete-warning strong { font-size: 1.2rem; color: #ffd2d2; }
.delete-warning p { margin: 0; color: var(--muted); }
.delete-warning ul { margin: 0; padding-left: 20px; color: var(--muted); }
.danger-button { background: #ff6868; color: #1c1216; box-shadow: none; }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--muted); font-size: .82rem; }
.status-active, .status-paid { background: rgba(51,196,122,.18); color: #bfffd9; }
.status-confirmed, .status-approved { background: rgba(51,196,122,.18); color: #bfffd9; }
.status-pending, .status-draft { background: rgba(214,168,79,.18); color: #ffe5a6; }
.status-closed, .status-cancelled, .status-rejected, .status-expired { background: rgba(255,104,104,.18); color: #ffd2d2; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-action { display: inline; margin: 0; }
.inline-action button {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.inline-action .danger-link { color: #ff9b9b; }
.admin-form { display: grid; gap: 14px; }
.inline-form { margin: 0 0 16px; max-width: 520px; }
.compact-form { margin-top: 16px; }
.check-label { display: flex; align-items: center; gap: 10px; }
.webhook-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.05);
}
.webhook-box span { color: var(--primary); font-weight: 800; }
.admin-number-grid { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); }

@media (max-width: 860px) {
  .raffle-hero, .raffle-card, .form-grid, .info-strip, .transparency-band, .winner-grid, .metric-grid, .settings-grid, .report-grid { grid-template-columns: 1fr; }
  .section-heading, .admin-topbar, .panel-heading { align-items: stretch; flex-direction: column; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,.24);
  }
  .admin-sidebar-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }
  .admin-sidebar .brand { font-size: 1.1rem; line-height: 1; }
  .admin-sidebar .brand span { font-size: .68rem; }
  .admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    min-height: 36px;
    background: var(--primary);
    color: #171018;
  }
  .admin-sidebar nav {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
    max-height: 46vh;
    overflow: auto;
    padding: 2px 0 4px;
  }
  .admin-sidebar nav.is-open { display: grid; }
  .admin-sidebar nav a {
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    text-align: center;
    padding: 9px 6px;
    font-weight: 700;
    font-size: .82rem;
    line-height: 1.1;
  }
  .admin-main { padding: 12px; }
  .topbar-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
  .topbar-actions .button,
  .topbar-actions .pwa-install {
    flex: 1 1 0;
    margin-top: 0;
    min-height: 36px;
    padding: 0 8px;
    font-size: .78rem;
    white-space: normal;
    text-align: center;
    line-height: 1.1;
  }
  .home-stats, .how-it-works { grid-template-columns: 1fr; }
  .grid-section { padding: 12px; }
  .number-grid { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 7px; }
  .number-cell { min-height: 52px; font-size: 1rem; border-radius: 9px; }
  .public-buyers ul, .transparency-list { columns: 1; }
  .notification-item { flex-direction: column; }
}

@media (max-width: 480px) {
  .home, .raffle-layout { width: min(100% - 18px, 1120px); padding-top: 12px; }
  .home-hero { min-height: 280px; padding-top: 34px; }
  .home-actions .button { width: 100%; }
  .flyer-placeholder { min-height: 220px; }
  .raffle-info h1 { font-size: clamp(2.1rem, 14vw, 3.4rem); }
  .legend { font-size: .85rem; gap: 8px; }
  .selection-summary { flex-direction: column; }
  .admin-main { padding: 10px; }
  .admin-sidebar nav { grid-template-columns: 1fr; }
  .topbar-actions { grid-template-columns: 1fr 1fr; }
  .topbar-actions { display: grid; grid-template-columns: 40px 1fr; }
  .notification-pill { min-width: 40px; border-radius: 8px; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid article,
  .panel,
  .reservation-panel,
  .public-buyers { padding: 14px; }
  th, td { padding: 10px; }
}
