/* Consola del restaurante: misma estructura que la Consola MDI 2026 y Fresco Local, con paleta de restaurante.
   Paleta provisional (mientras el negocio define la suya): jitomate, azafrán y espresso sobre crema.
   Para cambiarla basta con editar las variables de :root. */
:root {
    --brand: #e8553a;          /* jitomate */
    --brand-strong: #c2381f;   /* botones y enlaces: texto blanco con contraste AA */
    --brand-stronger: #a12d17;
    --brand-soft: #fdeee8;
    --accent: #f5a524;         /* azafrán */
    --accent-soft: #fff4de;
    --accent-ink: #7a4b00;
    --herb: #2f8a57;           /* verde hierbabuena: estados «libre / listo» */
    --herb-soft: #e7f5ec;
    --sb-from: #2b1611;        /* espresso */
    --sb-to: #1a0d0a;
    --sb-rail: 68px;
    --sb-open: 252px;
    --main-bg: #fbf7f2;        /* crema */
    --card-bg: #ffffff;
    --ink: #2a1e19;
    --muted: #76655c;
    --line: #efe4da;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 2px rgba(42, 30, 25, .05), 0 1px 1px rgba(42, 30, 25, .03);
    --shadow-md: 0 10px 30px -12px rgba(42, 30, 25, .25);
    --font-display: 'Fraunces', Georgia, serif;
    --bs-primary: #c2381f;
    --bs-primary-rgb: 194, 56, 31;
    --bs-link-color: #c2381f;
    --bs-link-color-rgb: 194, 56, 31;
    --bs-link-hover-color: #a12d17;
    --bs-link-hover-color-rgb: 161, 45, 23;
    --bs-body-bg: #fbf7f2;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--main-bg);
    color: var(--ink);
    overflow-x: hidden;
}

/* Botones */
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary {
    --bs-btn-bg: var(--brand-strong); --bs-btn-border-color: var(--brand-strong);
    --bs-btn-hover-bg: var(--brand-stronger); --bs-btn-hover-border-color: var(--brand-stronger);
    --bs-btn-active-bg: var(--brand-stronger); --bs-btn-active-border-color: var(--brand-stronger);
    --bs-btn-disabled-bg: var(--brand-strong); --bs-btn-disabled-border-color: var(--brand-strong);
    font-weight: 600;
    box-shadow: 0 6px 16px -8px rgba(194, 56, 31, .7);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand-strong); --bs-btn-border-color: var(--brand-strong);
    --bs-btn-hover-bg: var(--brand-strong); --bs-btn-hover-border-color: var(--brand-strong);
    --bs-btn-active-bg: var(--brand-stronger); --bs-btn-active-border-color: var(--brand-stronger);
}
.btn-accent {
    --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #3b2400;
    --bs-btn-hover-bg: #e0921a; --bs-btn-hover-border-color: #e0921a; --bs-btn-hover-color: #2a1a00;
    --bs-btn-active-bg: #c98213; --bs-btn-active-border-color: #c98213;
    font-weight: 600;
}
.btn-herb {
    --bs-btn-bg: var(--herb); --bs-btn-border-color: var(--herb); --bs-btn-color: #fff;
    --bs-btn-hover-bg: #26734a; --bs-btn-hover-border-color: #26734a; --bs-btn-hover-color: #fff;
    font-weight: 600;
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); }
.form-control, .form-select { border-color: #e6d9cd; border-radius: 10px; }
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(232, 85, 58, .2);
}
.form-check-input:checked { background-color: var(--brand-strong); border-color: var(--brand-strong); }
.badge.text-bg-primary { background-color: var(--brand-strong) !important; }
.progress-bar { background-color: var(--brand-strong); }
.text-brand { color: var(--brand-strong) !important; }

/* Menú lateral: barra de íconos que se despliega al pasar el mouse o se fija con el botón */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sb-rail);
    display: flex; flex-direction: column;
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(232, 85, 58, .22), transparent 60%),
        linear-gradient(180deg, var(--sb-from), var(--sb-to));
    box-shadow: 8px 0 32px rgba(0, 0, 0, .16);
    overflow: hidden;
    z-index: 1040;
    transition: width .2s ease .1s;
}
.sidebar:hover, .sb-pinned .sidebar { width: var(--sb-open); transition-delay: .03s; }
.sb-brand { position: relative; height: 76px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); flex: none; white-space: nowrap; }
.sb-mark { width: 36px; height: 36px; min-width: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; font-size: 1.1rem; box-shadow: 0 6px 16px -6px rgba(232, 85, 58, .9); }
.sb-logo { display: none; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.sb-logo small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: .66rem; color: rgba(255, 255, 255, .55); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.sb-pin { margin-left: auto; border: 0; background: transparent; color: rgba(255, 255, 255, .7); width: 30px; height: 30px; border-radius: 8px; display: none; }
.sb-pin:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sb-pinned .sb-pin { color: var(--accent); }
.sidebar:hover .sb-logo, .sb-pinned .sb-logo { display: block; }
.sidebar:hover .sb-pin, .sb-pinned .sb-pin { display: inline-flex; align-items: center; justify-content: center; }

.sb-menu { flex: 1; padding: 4px 0 12px; overflow-y: auto; overflow-x: hidden; }
.sb-section { position: relative; height: 26px; margin: 12px 24px 2px; display: flex; align-items: flex-end;
    color: rgba(255, 255, 255, .45); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.sb-section::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(255, 255, 255, .12); transition: opacity .12s ease; }
.sidebar:hover .sb-section::before, .sb-pinned .sb-section::before { opacity: 0; }
.sb-link {
    display: flex; align-items: center; gap: 12px;
    min-height: 42px; padding: 8px 12px; margin: 3px 12px;
    color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .875rem; font-weight: 500;
    border-radius: 21px; white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.sb-link i { font-size: 1.15rem; width: 20px; min-width: 20px; text-align: center; }
.sb-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sb-link.active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(232, 85, 58, .95); }
.sb-label, .sb-who, .sb-logout { opacity: 0; transition: opacity .12s ease; }
.sidebar:hover .sb-label, .sb-pinned .sb-label,
.sidebar:hover .sb-who, .sb-pinned .sb-who,
.sidebar:hover .sb-logout, .sb-pinned .sb-logout { opacity: 1; transition-delay: .1s; }

.sb-user { flex: none; display: flex; align-items: center; gap: 10px; margin: 10px 12px; padding: 4px 2px; white-space: nowrap; }
.sb-avatar { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #3b2400; font-weight: 700; text-decoration: none; }
.sb-who { min-width: 0; flex: 1; line-height: 1.25; }
.sb-name { color: #fff; font-size: .8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.sb-role { color: rgba(255, 255, 255, .6); font-size: .6875rem; }
.sb-logout { color: rgba(255, 255, 255, .75); padding: 4px 6px; border-radius: 8px; }
.sb-logout:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.main-content { margin-left: var(--sb-rail); min-height: 100vh; transition: margin-left .2s ease; }
.sb-pinned .main-content { margin-left: var(--sb-open); }

.page-head {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 28px;
    background: rgba(251, 247, 242, .85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.page-head h1 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-date { margin-left: auto; color: var(--muted); font-size: .875rem; display: flex; align-items: center; gap: 12px; }
.page-body { padding: 24px 28px 48px; }
.shift-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.shift-chip i { font-size: .45rem; }
.shift-chip.on { background: var(--herb-soft); color: var(--herb); }
.shift-chip.off { background: var(--accent-soft); color: var(--accent-ink); }

.sb-backdrop { display: none; }
@media (max-width: 767.98px) {
    .sidebar { width: var(--sb-open); transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
    .sidebar.open { transform: none; }
    .sidebar .sb-pin { display: none !important; }
    .sidebar .sb-logo { display: block; }
    .sidebar .sb-label, .sidebar .sb-who, .sidebar .sb-logout { opacity: 1; }
    .sidebar .sb-section::before { opacity: 0; }
    .main-content, .sb-pinned .main-content { margin-left: 0; }
    .sb-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 1030; }
    .page-head { padding: 10px 16px; }
    .page-body { padding: 16px; }
}

/* Tarjetas y tablas */
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 20px; }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 14px 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-header > i { color: var(--brand-strong); }
.card-header .ms-auto-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table { margin: 0; --bs-table-hover-bg: var(--brand-soft); --bs-table-bg: transparent; }
.table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #fdfaf6; white-space: nowrap; }
.table > tbody td { vertical-align: middle; }
.table > * > tr > :first-child { padding-left: 20px; }
.table > * > tr > :last-child { padding-right: 20px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty i { display: block; font-size: 2rem; color: #d9c6b6; margin-bottom: 6px; }
.hint { font-size: .75rem; color: var(--muted); }
.table td.tight, .table th.tight { width: 1%; white-space: nowrap; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand-strong); --bs-nav-pills-border-radius: 999px; }
.nav-pills .nav-link { color: var(--brand-strong); font-weight: 500; }
.nav-pills .nav-link.active .badge { background: rgba(255, 255, 255, .25) !important; color: #fff !important; }
.config-tabs { gap: 4px; flex-wrap: wrap; }
.config-tabs .nav-link { padding: 6px 14px; font-size: .875rem; }

/* Indicadores */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { position: relative; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.stat small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .hint { display: block; margin-top: 2px; }
.stat .stat-icon { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; background: var(--brand-soft); color: var(--brand-strong); }
.stat.accent .stat-icon { background: var(--accent-soft); color: var(--accent-ink); }
.stat.herb .stat-icon { background: var(--herb-soft); color: var(--herb); }
.stat.hero { background: linear-gradient(135deg, var(--brand), #d8432a 55%, #b8341c); border: 0; color: #fff; box-shadow: var(--shadow-md); }
.stat.hero small, .stat.hero .hint { color: rgba(255, 255, 255, .8); }
.stat.hero .stat-icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* Barras simples (reportes) */
.bar-list { list-style: none; margin: 0; padding: 0; }
.bar-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 20px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.bar-list li:last-child { border-bottom: 0; }
.bar-list .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--brand-soft); overflow: hidden; }
.bar-list .bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--brand)); }
.hour-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 16px 20px 0; }
.hour-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.hour-chart .col span { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand), #f07a5f); min-height: 2px; }
.hour-chart .col small { font-size: .65rem; color: var(--muted); margin-top: 4px; }
.hour-chart .col.zero span { background: var(--line); }

/* Plano de mesas */
.floor-area { margin-bottom: 22px; }
.floor-area h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.table-tile {
    position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 128px; padding: 14px 16px;
    border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card-bg);
    color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease;
}
a.table-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.table-tile .t-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.table-tile .t-meta { font-size: .75rem; color: var(--muted); }
.table-tile .t-total { margin-top: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.table-tile .t-state { align-self: flex-start; margin-bottom: 2px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
.table-tile.free { border-style: dashed; border-color: #d9e9df; background: linear-gradient(180deg, #fff, var(--herb-soft)); }
.table-tile.free .t-state { background: var(--herb-soft); color: var(--herb); }
.table-tile.busy { border-color: #f4c9bd; background: linear-gradient(180deg, #fff, var(--brand-soft)); }
.table-tile.busy .t-state { background: var(--brand); color: #fff; }
.table-tile.bill { border-color: #f3d79f; background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.table-tile.bill .t-state { background: var(--accent); color: #3b2400; }
.table-tile .t-ready { font-size: .72rem; font-weight: 600; color: var(--herb); }

/* Comanda: selector de platillos */
.menu-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.menu-cats .btn { border-radius: 999px; padding: 4px 14px; font-size: .8125rem; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dish-btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%;
    padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink);
    transition: border-color .12s ease, background-color .12s ease, transform .08s ease;
}
.dish-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.dish-btn:active { transform: scale(.98); }
.dish-btn .d-name { font-weight: 600; font-size: .875rem; line-height: 1.2; }
.dish-btn .d-price { font-size: .8rem; color: var(--brand-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.dish-btn .d-cat { font-size: .68rem; color: var(--muted); }
.order-total-box { background: linear-gradient(135deg, #2b1611, #3a1d16); color: #fff; border-radius: var(--radius-md); padding: 16px 18px; }
.order-total-box small { color: rgba(255, 255, 255, .7); text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }
.order-total-box strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }

/* Cocina (KDS) */
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.kds-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.kds-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--herb-soft); border-bottom: 1px solid var(--line); }
.kds-head strong { font-family: var(--font-display); font-size: 1.15rem; }
.kds-head .kds-time { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .875rem; }
.kds-card.warn .kds-head { background: var(--accent-soft); }
.kds-card.late .kds-head { background: #fde2dc; }
.kds-card.late .kds-time { color: var(--brand-stronger); }
.kds-items { list-style: none; margin: 0; padding: 6px 0; }
.kds-items li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 16px; border-bottom: 1px dashed var(--line); }
.kds-items li:last-child { border-bottom: 0; }
.kds-qty { min-width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.kds-items .kds-note { font-size: .75rem; color: var(--brand-strong); font-weight: 600; }
.kds-items li.is-preparando .kds-qty { background: var(--accent); color: #3b2400; }
.kds-items li.is-listo { opacity: .55; }
.kds-items li.is-listo .kds-qty { background: var(--herb); }

/* Lista de espera */
.wait-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.wait-item:last-child { border-bottom: 0; }
.wait-badge { width: 40px; height: 40px; min-width: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; line-height: 1; }
.wait-badge small { font-size: .55rem; font-weight: 600; text-transform: uppercase; }

/* Login */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
    background:
        radial-gradient(60% 50% at 15% 10%, rgba(245, 165, 36, .55), transparent 60%),
        radial-gradient(60% 60% at 90% 90%, rgba(232, 85, 58, .65), transparent 60%),
        linear-gradient(160deg, #2b1611, #1a0d0a);
}
.auth-box { width: 100%; max-width: 400px; }
.auth-brand { text-align: center; color: #fff; margin-bottom: 24px; }
.auth-brand .sb-mark { width: 56px; height: 56px; border-radius: 16px; font-size: 1.6rem; margin-bottom: 12px; }
.auth-brand h1 { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; margin: 0; }
.auth-brand p { color: rgba(255, 255, 255, .7); margin: 4px 0 0; font-size: .875rem; }
.auth-box .card { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .55); margin: 0; }
.auth-box .card-body { padding: 28px; }

/* Documento imprimible (factura) */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; max-width: 860px; margin: 0 auto; }
.doc-head { background: linear-gradient(135deg, var(--brand), #b8341c); padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-head .doc-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.doc-title { text-align: right; }
.doc-title strong { display: block; font-size: 1.1rem; }
.doc-body { padding: 24px 28px; }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.doc-meta small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.doc-body .table > * > tr > :first-child { padding-left: 8px; }
.doc-total { font-size: 1.15rem; font-weight: 700; }

/* Ticket de 80 mm */
.ticket { width: 76mm; max-width: 100%; margin: 0 auto; background: #fff; padding: 14px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #000; border: 1px dashed #ccc; }
.ticket h1 { font-family: var(--font-display); font-size: 18px; text-align: center; margin: 0 0 4px; }
.ticket .c { text-align: center; }
.ticket hr { border: 0; border-top: 1px dashed #000; margin: 8px 0; opacity: 1; }
.ticket table { width: 100%; border-collapse: collapse; }
.ticket td { padding: 1px 0; vertical-align: top; }
.ticket td.r { text-align: right; white-space: nowrap; }
.ticket .big { font-size: 15px; font-weight: 700; }
.ticket .code { font-size: 16px; font-weight: 700; letter-spacing: 2px; }

@media print {
    .sidebar, .sb-backdrop, .doc-actions, .page-head { display: none !important; }
    .main-content { margin: 0 !important; }
    .page-body { padding: 0; }
    body { background: #fff; }
    .doc { border: 0; max-width: none; }
    .ticket { border: 0; width: 72mm; padding: 0; }
    @page { margin: 6mm; }
}

/* Autofactura (página pública) */
.public-page { min-height: 100vh; background: var(--main-bg); }
.public-hero {
    color: #fff; padding: 40px 20px 80px; text-align: center;
    background:
        radial-gradient(50% 80% at 10% 0%, rgba(245, 165, 36, .5), transparent 60%),
        linear-gradient(160deg, var(--brand), #a12d17);
}
.public-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin: 10px 0 4px; }
.public-hero p { margin: 0; color: rgba(255, 255, 255, .85); }
.public-card { max-width: 620px; margin: -56px auto 40px; padding: 0 16px; }
.steps { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.steps span { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.steps span.on { background: #fff; color: var(--brand-strong); font-weight: 700; }
