/* ==========================================================================
   Plateform — blue & white design system
   ========================================================================== */

:root {
    --blue-900: #0B3F8F;
    --blue-800: #0D4CA8;
    --blue-700: #0F5BC4;
    --blue-600: #1D6FE0;
    --blue-500: #2E86F5;
    --blue-300: #8FC0FB;
    --blue-100: #E3EEFC;
    --blue-50:  #F3F7FD;

    --ink:      #0F1B2D;
    --ink-soft: #33465F;
    --muted:    #64748B;
    --line:     #DCE6F4;
    --surface:  #FFFFFF;
    --canvas:   #F5F8FD;
    --sidebar:  #0B3F8F;
    --sidebar-ink: #DCE9FB;

    --ok:   #0F9D58;
    --ok-bg: #E4F6EC;
    --warn: #B7791F;
    --warn-bg: #FDF3E2;
    --bad:  #D0342C;
    --bad-bg: #FCEBEA;

    --radius:   12px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --shadow:   0 1px 2px rgba(15, 39, 79, .06), 0 6px 20px rgba(15, 39, 79, .06);
    --shadow-lg:0 20px 50px rgba(11, 63, 143, .18);
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    --ink:      #E8F0FB;
    --ink-soft: #C3D3E8;
    --muted:    #8FA3BE;
    --line:     #1E3255;
    --surface:  #122039;
    --canvas:   #0A1524;
    --sidebar:  #071227;
    --sidebar-ink: #B9CFEE;
    --blue-50:  #10203A;
    --blue-100: #16304F;
    --ok-bg: #0F2C21; --warn-bg: #2E2413; --bad-bg: #2E1614;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 6px; }

.icon { flex: none; vertical-align: -.2em; }

/* ------------------------------------------------------------- app shell */

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

.sidebar {
    width: 258px; flex: none; background: var(--sidebar); color: var(--sidebar-ink);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar__brand {
    display: flex; align-items: center; gap: 10px; padding: 18px 20px;
    color: #fff; font-weight: 680; font-size: 1.08rem; letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.sidebar__brand span small { display: block; font-size: .7rem; font-weight: 500; opacity: .72; letter-spacing: .01em; }
.sidebar__nav { overflow-y: auto; padding: 12px 12px 28px; flex: 1; }
.sidebar__nav::-webkit-scrollbar { width: 6px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 4px; }
.nav-group { margin-bottom: 4px; }
.nav-group__label {
    font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    opacity: .55; padding: 14px 10px 6px;
}
.nav-link {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
    color: var(--sidebar-ink); font-size: .9rem; font-weight: 500; margin-bottom: 2px;
}
.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-link.is-active { background: #fff; color: var(--blue-800); font-weight: 600; }
.nav-link .lock { margin-left: auto; opacity: .55; }
.nav-link .pill {
    margin-left: auto; background: var(--blue-500); color: #fff; font-size: .68rem;
    padding: 1px 7px; border-radius: 20px; font-weight: 600;
}

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

.topbar {
    height: 62px; background: var(--surface); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 14px; padding: 0 20px; position: sticky; top: 0; z-index: 30;
}
.topbar__search { flex: 1; max-width: 420px; position: relative; }
.topbar__search input {
    width: 100%; height: 38px; padding: 0 12px 0 38px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--blue-50); color: var(--ink); font-size: .88rem;
}
.topbar__search .icon { position: absolute; left: 11px; top: 9px; color: var(--muted); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
    border-radius: 9px; cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--blue-50); color: var(--blue-700); }
.icon-btn .dot {
    position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--bad); color: #fff; border-radius: 9px; font-size: .62rem;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--blue-100); color: var(--blue-800);
    display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: .82rem;
}

.page { padding: 24px; flex: 1; }
.page__head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page__head h1 { margin: 0; }
.page__head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.page__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------- components */

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card__head {
    padding: 15px 18px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 12px;
}
.card__head h3 { margin: 0; font-size: 1rem; }
.card__head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card__body { padding: 18px; }
.card__body--flush { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--sidebar { grid-template-columns: 2fr 1fr; }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat__label { font-size: .78rem; color: var(--muted); font-weight: 550; display: flex; align-items: center; gap: 7px; }
.stat__label .icon { color: var(--blue-600); }
.stat__value { font-size: 1.55rem; font-weight: 680; letter-spacing: -.02em; margin-top: 6px; }
.stat__meta { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.stat__meta.up { color: var(--ok); }
.stat__meta.down { color: var(--bad); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 15px; border-radius: 9px; border: 1px solid transparent;
    font: inherit; font-size: .88rem; font-weight: 580; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink-soft); }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue-700); }
.btn--soft { background: var(--blue-100); color: var(--blue-800); }
.btn--soft:hover { background: var(--blue-300); color: var(--blue-900); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--danger:hover { filter: brightness(.94); color: #fff; }
.btn--lg { height: 46px; padding: 0 22px; font-size: .95rem; border-radius: 11px; }
.btn--sm { height: 31px; padding: 0 10px; font-size: .8rem; border-radius: 7px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px;
    font-size: .74rem; font-weight: 600; line-height: 1.6;
}
.badge--ok   { background: var(--ok-bg);   color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad  { background: var(--bad-bg);  color: var(--bad); }
.badge--info { background: var(--blue-100); color: var(--blue-800); }
.badge--muted{ background: var(--blue-50); color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th {
    text-align: left; padding: 11px 16px; font-weight: 600; font-size: .74rem;
    letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid var(--line); background: var(--blue-50); white-space: nowrap;
}
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:hover { background: var(--blue-50); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .actions { text-align: right; white-space: nowrap; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 580; margin-bottom: 5px; color: var(--ink-soft); }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=number], .field input[type=date], .field input[type=time],
.field input[type=datetime-local], .field select, .field textarea {
    width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px;
    background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem;
}
.field textarea { height: auto; min-height: 86px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); outline: none;
}
.field input[type=color] { padding: 3px; height: 40px; }
.check { display: flex; align-items: center; gap: 9px; font-size: .88rem; }
.check input { width: 17px; height: 17px; accent-color: var(--blue-600); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }

/* Alerts */
.alert { padding: 12px 15px; border-radius: 10px; font-size: .88rem; margin-bottom: 14px; border: 1px solid; display: flex; gap: 10px; }
.alert--success { background: var(--ok-bg);  border-color: rgba(15,157,88,.25); color: var(--ok); }
.alert--error   { background: var(--bad-bg); border-color: rgba(208,52,44,.25);  color: var(--bad); }
.alert--warn    { background: var(--warn-bg);border-color: rgba(183,121,31,.25); color: var(--warn); }
.alert--info    { background: var(--blue-50);border-color: var(--line); color: var(--blue-800); }

.toast-stack { position: fixed; top: 76px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue-600);
    box-shadow: var(--shadow-lg); padding: 11px 15px; border-radius: 10px; font-size: .87rem;
    min-width: 260px; max-width: 360px;
}
.toast--success { border-left-color: var(--ok); }
.toast--error { border-left-color: var(--bad); }

/* Empty + loading states */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { color: var(--blue-300); margin-bottom: 10px; }
.empty h3 { color: var(--ink); }
.empty p { max-width: 380px; margin: 0 auto 16px; font-size: .9rem; }

.skeleton { background: linear-gradient(90deg, var(--blue-50), var(--blue-100), var(--blue-50));
    background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Modal / slide-over */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(9, 27, 56, .45); z-index: 100;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.is-open { display: flex; }
.modal {
    background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 560px;
    max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg);
}
.modal--wide { max-width: 860px; }
.modal__head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal__head h3 { margin: 0; }
.modal__head button { margin-left: auto; }
.modal__body { padding: 22px; }
.modal__foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* Tabs, filters, pagination */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a {
    padding: 9px 14px; font-size: .88rem; font-weight: 550; color: var(--muted);
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a.is-active { color: var(--blue-700); border-bottom-color: var(--blue-600); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
    padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
    font-size: .82rem; color: var(--ink-soft); font-weight: 520;
}
.chip.is-active, .chip:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.pagination { display: flex; gap: 6px; padding: 14px 18px; align-items: center; font-size: .85rem; color: var(--muted); }
.pagination a, .pagination span.pg {
    min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); padding: 0 8px;
}
.pagination a:hover { background: var(--blue-50); }
.pagination .is-current { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* ------------------------------------------------------------------ POS */

.pos { display: grid; grid-template-columns: 172px 1fr 366px; height: calc(100vh - 62px); }
.pos__cats { border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 10px; }
.pos__cat {
    display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px;
    border: 1px solid transparent; background: transparent; color: var(--ink-soft);
    font: inherit; font-size: .87rem; font-weight: 550; cursor: pointer; margin-bottom: 4px;
}
.pos__cat:hover { background: var(--blue-50); }
.pos__cat.is-active { background: var(--blue-600); color: #fff; }
.pos__cat small { display: block; font-size: .72rem; opacity: .7; font-weight: 500; }

.pos__items { overflow-y: auto; padding: 14px; background: var(--canvas); }
.pos__search { display: flex; gap: 8px; margin-bottom: 12px; }
.pos__search input { flex: 1; height: 42px; border-radius: 10px; border: 1px solid var(--line);
    padding: 0 14px; background: var(--surface); color: var(--ink); font: inherit; }
.pos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.pos__item {
    background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 12px;
    cursor: pointer; text-align: left; font: inherit; color: var(--ink); position: relative;
}
.pos__item:hover { border-color: var(--blue-500); box-shadow: var(--shadow); }
.pos__item .thumb {
    height: 62px; border-radius: 8px; background: var(--blue-100); margin-bottom: 9px;
    display: flex; align-items: center; justify-content: center; color: var(--blue-700);
    font-weight: 680; font-size: 1.15rem; overflow: hidden;
}
.pos__item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pos__item .nm { font-size: .84rem; font-weight: 560; line-height: 1.3; min-height: 2.6em; }
.pos__item .pr { font-size: .9rem; font-weight: 680; color: var(--blue-700); margin-top: 5px; }
.pos__item.is-out { opacity: .5; }

.pos__cart { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.pos__cart-head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pos__types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px; }
.pos__type {
    padding: 7px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
    font: inherit; font-size: .77rem; font-weight: 560; cursor: pointer; color: var(--ink-soft);
}
.pos__type.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pos__lines { flex: 1; overflow-y: auto; padding: 8px 14px; }
.pos__line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pos__line .nm { font-size: .86rem; font-weight: 560; }
.pos__line .mods { font-size: .76rem; color: var(--muted); }
.pos__line .amt { margin-left: auto; text-align: right; font-weight: 620; font-size: .88rem; white-space: nowrap; }
.qty-ctl { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty-ctl button {
    width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line);
    background: var(--surface); cursor: pointer; color: var(--ink-soft);
    display: inline-flex; align-items: center; justify-content: center;
}
.qty-ctl button:hover { background: var(--blue-50); color: var(--blue-700); }
.qty-ctl span { min-width: 26px; text-align: center; font-weight: 620; font-size: .86rem; }

.pos__totals { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--blue-50); }
.pos__totals .row { display: flex; justify-content: space-between; font-size: .85rem; padding: 3px 0; color: var(--ink-soft); }
.pos__totals .row.total { font-size: 1.12rem; font-weight: 700; color: var(--ink); padding-top: 8px;
    margin-top: 6px; border-top: 1px dashed var(--line); }
.pos__pay { padding: 12px 14px; display: grid; gap: 8px; }

/* -------------------------------------------------------------- TABLES */

.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.tablecard {
    background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--muted);
    border-radius: var(--radius); padding: 14px; cursor: pointer; display: block; color: inherit;
}
.tablecard:hover { box-shadow: var(--shadow); color: inherit; }
.tablecard--available { border-left-color: var(--ok); }
.tablecard--occupied  { border-left-color: var(--bad); }
.tablecard--reserved  { border-left-color: var(--warn); }
.tablecard--cleaning  { border-left-color: var(--blue-500); }
.tablecard .nm { font-size: 1.1rem; font-weight: 680; }
.tablecard .meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.tablecard .amt { font-weight: 650; margin-top: 8px; color: var(--blue-700); }

/* ----------------------------------------------------------------- KDS */

.kds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.kds__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kds__col h3 {
    margin: 0; padding: 12px 15px; border-bottom: 1px solid var(--line); font-size: .9rem;
    display: flex; align-items: center; gap: 8px;
}
.kds__col h3 .count { margin-left: auto; background: var(--blue-100); color: var(--blue-800);
    padding: 1px 9px; border-radius: 20px; font-size: .75rem; }
.kds__list { padding: 12px; display: grid; gap: 10px; min-height: 120px; }
.ticket { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); }
.ticket--urgent { border-color: var(--bad); background: var(--bad-bg); }
.ticket--warn { border-color: var(--warn); }
.ticket__head { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 620; }
.ticket__head .time { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.ticket--urgent .time { color: var(--bad); }
.ticket ul { list-style: none; margin: 9px 0; padding: 0; font-size: .86rem; }
.ticket li { padding: 3px 0; display: flex; gap: 8px; }
.ticket li b { min-width: 24px; color: var(--blue-700); }
.ticket li em { font-style: normal; color: var(--muted); font-size: .8rem; display: block; }

/* --------------------------------------------------------------- charts */

.chart { width: 100%; height: 240px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; }
.bar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .86rem; }
.bar-row .label { width: 140px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { flex: 1; height: 9px; background: var(--blue-50); border-radius: 5px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--blue-600); border-radius: 5px; }
.bar-row .val { width: 96px; text-align: right; font-weight: 620; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- marketing site */

.site-nav {
    display: flex; align-items: center; gap: 26px; padding: 16px 32px; max-width: 1180px;
    margin: 0 auto; position: relative; z-index: 3;
}
.site-nav .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.site-nav .links { display: flex; gap: 22px; margin-left: 26px; }
.site-nav .links a { color: var(--ink-soft); font-size: .92rem; font-weight: 520; }
.site-nav .cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.hero { padding: 60px 32px 70px; max-width: 1180px; margin: 0 auto; display: grid;
    grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.15rem); letter-spacing: -.035em; line-height: 1.08; }
.hero p.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 46ch; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .assure { margin-top: 16px; font-size: .84rem; color: var(--muted); }

.hero-panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-panel__bar { background: var(--blue-900); color: #fff; padding: 11px 16px; font-size: .82rem;
    display: flex; align-items: center; gap: 8px; }
.hero-panel__bar .dots { display: flex; gap: 5px; margin-right: 6px; }
.hero-panel__bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero-panel__body { padding: 16px; display: grid; gap: 10px; }
.mini-stat { display: flex; align-items: baseline; gap: 8px; font-size: .84rem; color: var(--muted);
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mini-stat b { font-size: 1.15rem; color: var(--ink); font-weight: 690; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { max-width: 1180px; margin: 0 auto; padding: 66px 32px; }
.section__intro { max-width: 58ch; margin-bottom: 34px; }
.section__intro h2 { font-size: 1.9rem; letter-spacing: -.025em; }
.section__intro p { color: var(--ink-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface);
}
.feature .icon-wrap {
    width: 38px; height: 38px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700);
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.feature h3 { font-size: .98rem; }
.feature p { font-size: .88rem; color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { border-top: 3px solid var(--blue-600); padding-top: 14px; }
.step .n { font-size: .78rem; font-weight: 700; color: var(--blue-600); }
.step h3 { font-size: .95rem; margin: 6px 0 4px; }
.step p { font-size: .86rem; color: var(--muted); margin: 0; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price {
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: var(--surface);
}
.price--featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow-lg); position: relative; }
.price--featured .tagline { position: absolute; top: -12px; left: 26px; background: var(--blue-600);
    color: #fff; font-size: .72rem; font-weight: 650; padding: 3px 11px; border-radius: 20px; }
.price h3 { font-size: 1.1rem; }
.price .amount { font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; margin: 12px 0 2px; }
.price .amount span { font-size: .9rem; font-weight: 520; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; font-size: .88rem; display: grid; gap: 9px; }
.price li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-soft); }
.price li .icon { color: var(--blue-600); margin-top: 2px; }

.toggle-wrap { display: inline-flex; background: var(--blue-50); border: 1px solid var(--line);
    border-radius: 30px; padding: 4px; gap: 4px; margin-bottom: 28px; }
.toggle-wrap button { border: 0; background: transparent; font: inherit; font-size: .86rem; font-weight: 580;
    padding: 7px 18px; border-radius: 30px; cursor: pointer; color: var(--ink-soft); }
.toggle-wrap button.is-active { background: var(--blue-600); color: #fff; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 580; list-style: none; display: flex; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { margin-left: auto; transition: transform .2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(90deg); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; max-width: 70ch; }

.quote { border-left: 3px solid var(--blue-600); padding-left: 18px; }
.quote p { font-size: .95rem; color: var(--ink-soft); }
.quote .who { font-size: .84rem; color: var(--muted); }

.site-foot { background: var(--blue-900); color: #C9DDF8; padding: 46px 32px 28px; }
.site-foot .inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-foot a { color: #C9DDF8; font-size: .88rem; display: block; padding: 3px 0; }
.site-foot a:hover { color: #fff; }
.site-foot h4 { color: #fff; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.site-foot .base { max-width: 1180px; margin: 28px auto 0; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; display: flex; gap: 16px; flex-wrap: wrap; }

/* -------------------------------------------------------------- auth ui */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__aside { background: var(--blue-900); color: #fff; padding: 48px; display: flex; flex-direction: column; }
.auth__aside .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.auth__aside h2 { font-size: 1.9rem; letter-spacing: -.03em; margin-top: auto; max-width: 18ch; }
.auth__aside p { color: #BBD4F5; max-width: 40ch; }
.auth__aside ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.auth__aside li { display: flex; gap: 10px; color: #D6E6FB; font-size: .9rem; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.auth__form .inner { width: 100%; max-width: 384px; }

/* ------------------------------------------------------------- utility */

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.tabular { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-14 { gap: 14px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

.trial-bar {
    background: var(--warn-bg); color: var(--warn); padding: 9px 20px; font-size: .85rem;
    display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(183,121,31,.25);
}
.impersonate-bar {
    background: var(--blue-900); color: #fff; padding: 8px 20px; font-size: .85rem;
    display: flex; align-items: center; gap: 12px;
}
.impersonate-bar a { color: #fff; text-decoration: underline; margin-left: auto; }

.mobile-toggle { display: none; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1180px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .kds { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .pos { grid-template-columns: 150px 1fr 330px; }
}

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding-top: 34px; }
    .feature-grid, .price-grid { grid-template-columns: 1fr; }
    .auth { grid-template-columns: 1fr; }
    .auth__aside { display: none; }
    .site-foot .inner { grid-template-columns: 1fr 1fr; }
    .grid--sidebar, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .sidebar {
        position: fixed; left: 0; top: 0; z-index: 120; transform: translateX(-100%);
        transition: transform .22s ease; box-shadow: var(--shadow-lg);
    }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open::after {
        content: ''; position: fixed; inset: 0; background: rgba(9,27,56,.5); z-index: 110;
    }
    .mobile-toggle { display: inline-flex; }
    .page { padding: 16px; }
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .form-row, .form-row--3 { grid-template-columns: 1fr; }
    .topbar__search { display: none; }
    .steps { grid-template-columns: 1fr; }
    .site-nav .links { display: none; }
    .kds { grid-template-columns: 1fr; }

    /* POS becomes touch-first: categories scroll horizontally, cart is a bottom sheet */
    .pos { display: block; height: auto; }
    .pos__cats {
        display: flex; gap: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line);
        position: sticky; top: 62px; z-index: 20;
    }
    .pos__cat { width: auto; white-space: nowrap; margin: 0; }
    .pos__cat small { display: none; }
    .pos__items { padding: 12px 12px 92px; }
    .pos__grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
    .pos__cart {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; border-left: 0;
        border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg);
        max-height: 82vh; transform: translateY(calc(100% - 64px)); transition: transform .25s ease;
    }
    body.cart-open .pos__cart { transform: translateY(0); }
    .pos__cart-handle {
        display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 16px;
        border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 620;
    }
    .table-wrap { -webkit-overflow-scrolling: touch; }
    .btn { height: 42px; }
}

.pos__cart-handle { display: none; }

@media (min-width: 861px) { .pos__cart-handle { display: none !important; } }

@media print {
    .sidebar, .topbar, .page__actions, .btn, .no-print { display: none !important; }
    body { background: #fff; }
    .page { padding: 0; }
    .card { border: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Thermal receipt */
.receipt {
    width: 300px; margin: 20px auto; font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px; color: #000; background: #fff; padding: 14px;
}
.receipt h2 { text-align: center; font-size: 15px; margin: 0 0 2px; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 2px 0; vertical-align: top; }
.receipt .r { text-align: right; }
@media print { .receipt { margin: 0; width: auto; } }
