:root {
    --ink: #17231d;
    --muted: #667085;
    --line: #e7dfcf;
    --brand: #083f50;
    --brand-dark: #062435;
    --brand-soft: #e9f5ef;
    --gold: #d99a20;
    --gold-soft: #fff4d7;
    --danger: #b42318;
    --surface: #f5f7f2;
    --card: #ffffff;
    --shadow: 0 16px 42px rgba(23, 35, 29, .08);
    --shadow-strong: 0 28px 70px rgba(8, 47, 33, .18);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background:
        linear-gradient(135deg, rgba(217, 154, 32, .10) 0 18%, transparent 18% 100%),
        linear-gradient(180deg, #fbfaf4 0%, var(--surface) 42%, #eef4ef 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
}

.container-fluid {
    margin-inline: auto;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -.5rem;
}

.row > * {
    min-width: 0;
    padding-inline: .5rem;
    width: 100%;
}

.col, .col-6, .col-md-6, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-8, .col-xl-4, .col-xl-5, .col-xl-8 {
    flex: 0 0 auto;
}

.col { flex: 1 0 0%; }
.col-6 { width: 50%; }

@media (min-width: 768px) {
    .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333333%; }
    .col-lg-5 { width: 41.666667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-8 { width: 66.666667%; }
}

@media (min-width: 1200px) {
    .col-xl-4 { width: 33.333333%; }
    .col-xl-5 { width: 41.666667%; }
    .col-xl-8 { width: 66.666667%; }
}

.d-flex { display: flex; }
.d-inline { display: inline; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
.g-2 { row-gap: .5rem; }
.g-3 { row-gap: 1rem; }
.ms-auto { margin-left: auto; }
.me-2 { margin-right: .5rem; }
.mt-1 { margin-top: .25rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.m-0 { margin: 0; }
.p-2 { padding: .5rem; }
.py-2 { padding-block: .5rem; }
.py-3 { padding-block: 1rem; }
.px-3 { padding-inline: 1rem; }
.pt-3 { padding-top: 1rem; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-muted { color: var(--muted); }
.text-success { color: #10733f; }
.small { font-size: .86rem; }
.fw-bold { font-weight: 600; }
.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.45rem; }
.h5 { font-size: 1.15rem; }
.h6 { font-size: .95rem; }
.border { border: 1px solid var(--line); }
.border-top { border-top: 1px solid var(--line); }
.border-bottom { border-bottom: 1px solid var(--line); }
.rounded { border-radius: 8px; }
.sticky-top { position: sticky; top: 0; z-index: 50; }
.collapse { display: none; }
.collapse.show { display: block; }

@media (min-width: 992px) {
    .px-lg-4 { padding-inline: 1.5rem; }
    .py-md-4 { padding-block: 1.5rem; }
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group > .form-control,
.input-group > .form-select {
    flex: 1 1 auto;
    min-width: 0;
}

.input-group > :first-child {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.input-group > :last-child {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.form-check {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.form-check-input {
    accent-color: var(--brand);
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 600;
    padding: .35rem .6rem;
}

.text-bg-primary {
    background: #e7f1ff;
    color: #174ea6;
}

.text-bg-secondary {
    background: #eef1ee;
    color: #47564f;
}

.text-bg-warning {
    background: var(--gold-soft);
    color: #7a4b05;
}

.fs-6 {
    font-size: 1rem;
}

.table-hover tbody tr:hover {
    background: #fffaf0;
}


.admin-shell::before {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand), #8a5808, var(--gold));
    content: "";
    display: block;
    height: 5px;
}

.app-nav {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(120, 84, 20, .18);
    box-shadow: 0 10px 30px rgba(23, 35, 29, .08);
    backdrop-filter: blur(12px);
}

.app-nav > .container-fluid {
    overflow: visible;
}

.brand-chip, .nav-chip, .user-pill {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: inline-flex;
    font-weight: 600;
    gap: .45rem;
    min-height: 44px;
    padding: .55rem .85rem;
    text-decoration: none;
}

.brand-chip {
    background: #fff;
    border-color: rgba(217, 154, 32, .45);
    box-shadow: 0 8px 20px rgba(217, 154, 32, .16);
}

.logo-chip {
    height: 64px;
    min-height: 64px;
    padding: .18rem .55rem;
}

.logo-chip img {
    display: block;
    height: 58px;
    max-width: 210px;
    object-fit: contain;
}

.nav-menu {
    background: #f7fbf8;
    border: 1px solid #e3ecdf;
    border-radius: 8px;
    justify-content: center;
    margin-inline: auto;
    padding: .4rem;
    max-width: 100%;
}

.nav-chip {
    align-items: center;
    background: transparent;
    border-color: transparent;
    color: #254139;
    flex-direction: column;
    font-size: .78rem;
    gap: .2rem;
    justify-content: center;
    line-height: 1.1;
    min-height: 62px;
    min-width: 86px;
    padding: .5rem .7rem;
    position: relative;
}

.nav-chip i {
    color: var(--brand);
    font-size: 1.45rem;
    line-height: 1;
}

.nav-chip:hover {
    background: #fff;
    border-color: rgba(217, 154, 32, .35);
    box-shadow: 0 8px 20px rgba(23, 35, 29, .08);
    color: var(--brand-dark);
}

.nav-chip.active {
    background: linear-gradient(180deg, #ffffff, #fff8e8);
    border-color: rgba(217, 154, 32, .42);
    color: #0a3f2b;
    box-shadow: 0 9px 22px rgba(217, 154, 32, .18);
}

.nav-chip.active::after {
    background: var(--gold);
    border-radius: 8px 8px 0 0;
    content: "";
    height: 3px;
    inset: auto .8rem -.38rem;
    position: absolute;
}

.nav-chip.logout {
    background: #fff5f3;
    border-color: #ffd7d2;
    color: var(--danger);
    flex-direction: row;
    justify-content: center;
    min-width: 44px;
}

.user-pill {
    background: linear-gradient(180deg, #fff8e6, #fffdf7);
    border-color: rgba(217, 154, 32, .34);
    color: #694207;
}

.summary-bar {
    background: linear-gradient(90deg, #062435, #083f50 54%, #6b4306);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12);
    color: #fff;
    overflow-x: auto;
    min-height: 74px;
}

.summary-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 74px;
    min-width: 660px;
}

.summary-grid.admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 990px;
}

.summary-item {
    align-items: center;
    display: flex;
    gap: .7rem;
    min-height: 74px;
    padding: .65rem 1.25rem;
    white-space: nowrap;
}

.summary-item + .summary-item {
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.summary-item i {
    flex: 0 0 38px;
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: #ffd66d;
    display: inline-flex;
    font-size: 1.15rem;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.summary-label {
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 500;
    text-transform: uppercase;
}

.summary-item strong {
    font-size: clamp(1rem, 1.45vw, 1.28rem);
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-link {
    color: #fff;
    text-decoration: none;
    transition: background .16s ease;
}

.summary-link:hover {
    background: rgba(255, 255, 255, .08);
}

.admin-main {
    max-width: 1680px;
    margin-inline: auto;
}

.workspace {
    background: rgba(255, 255, 255, .34);
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(21, 48, 37, .08);
    min-height: calc(100vh - 178px);
    padding: clamp(.75rem, 1.4vw, 1.25rem);
}

.page-head {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(7, 82, 52, .08), rgba(217, 154, 32, .10)),
        #fff;
    border: 1px solid rgba(139, 107, 45, .18);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
}

.page-title {
    color: #112820;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: .2rem;
}

.page-subtitle {
    color: var(--muted);
    margin: 0;
}

.panel {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(139, 107, 45, .18);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.panel-title {
    align-items: center;
    color: #183b2f;
    display: flex;
    font-size: .98rem;
    font-weight: 600;
    gap: .5rem;
    margin-bottom: .9rem;
}

.panel-title i {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 8px;
    color: var(--brand);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.pos-panel {
    background:
        linear-gradient(180deg, rgba(255, 250, 240, .68), rgba(255, 255, 255, .96)),
        #fff;
}

.stat {
    align-items: center;
    border-left: 0;
    display: flex;
    gap: .85rem;
    min-height: 116px;
    position: relative;
    overflow: hidden;
}

.stat::before {
    background: linear-gradient(180deg, var(--brand), #43a047);
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 5px;
}

.stat.accent::before { background: linear-gradient(180deg, var(--gold), #f97316); }
.stat.blue::before { background: linear-gradient(180deg, #2563eb, #38bdf8); }
.stat.green::before { background: linear-gradient(180deg, #15803d, #84cc16); }

.stat > i {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 8px;
    color: var(--brand);
    display: inline-flex;
    font-size: 1.35rem;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.stat.accent > i { background: var(--gold-soft); color: #b45309; }
.stat.blue > i { background: #e9f0ff; color: #1d4ed8; }
.stat.green > i { background: #edfbe8; color: #15803d; }

.stat h3 {
    font-size: clamp(1.25rem, 2.1vw, 1.8rem);
    font-weight: 700;
    margin: .15rem 0 0;
}

.table-card {
    overflow-x: auto;
    padding: 0;
}

.table {
    border-collapse: collapse;
    margin-bottom: 0;
    width: 100%;
}

.table thead th {
    background: linear-gradient(180deg, #f8fbf6, #eef5ed);
    border-bottom: 1px solid #dfe8dc;
    color: #506158;
    font-size: .78rem;
    letter-spacing: 0;
    padding: .85rem .75rem;
    text-transform: uppercase;
}

.table tbody td {
    padding: .85rem .75rem;
}

.table tbody tr {
    border-color: #f0eadf;
}

.table tbody tr:hover {
    background: #fffaf0;
}

.form-control, .form-select {
    background: #fff;
    border-color: #d9dece;
    border-style: solid;
    border-width: 1px;
    border-radius: 8px;
    color: var(--ink);
    display: block;
    min-height: 42px;
    padding: .55rem .7rem;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(217, 154, 32, .18);
}

.form-control-lg {
    font-size: 1.05rem;
    min-height: 50px;
    padding: .75rem .85rem;
}

.form-label {
    color: #34483f;
    display: inline-block;
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    gap: .4rem;
    justify-content: center;
    min-height: 40px;
    padding: .5rem .85rem;
    text-decoration: none;
    transition: .16s ease;
}

.btn-primary {
    background: linear-gradient(180deg, #0c6b47, #06472f);
    border-color: #06472f;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #0f7e55, #075238);
    border-color: #075238;
    color: #fff;
}

.btn-lg {
    font-size: 1.05rem;
    min-height: 50px;
    padding: .72rem 1rem;
}

.btn-sm {
    font-size: .82rem;
    min-height: 32px;
    padding: .32rem .55rem;
}

.btn-outline-primary {
    background: #fff;
    border-color: rgba(7, 82, 52, .28);
    color: var(--brand);
}

.btn-outline-primary:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
}

.btn-outline-secondary {
    background: #fff;
    border-color: #d7ddd3;
    color: #45564e;
}

.btn-outline-secondary:hover {
    background: #f4f7f1;
}

.btn-outline-danger {
    background: #fff;
    border-color: #ffd3cd;
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: #fff0ee;
}

.link-button {
    background: none;
    border: 0;
    color: var(--brand);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-button:hover {
    color: #0f7e55;
}

.icon-button {
    align-items: center;
    background: #fff5f3;
    border: 1px solid #ffd7d2;
    border-radius: 8px;
    color: var(--danger);
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.modal-backdrop {
    align-items: center;
    background: rgba(8, 47, 33, .55);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 200;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    background: #fff;
    border: 1px solid rgba(217, 154, 32, .34);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(8, 47, 33, .3);
    max-height: calc(100vh - 2rem);
    max-width: 760px;
    overflow: auto;
    padding: 1rem;
    width: min(100%, 760px);
}

.modal-head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modal-total {
    color: #082637;
    font-size: 1.18rem;
    font-weight: 600;
    margin-top: .8rem;
    text-align: right;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.payment-modal {
    max-width: 480px;
}

.payment-total,
.payment-balance {
    align-items: center;
    background: linear-gradient(180deg, #f8fbf6, #fff9ea);
    border: 1px solid #e7dfcf;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
}

.payment-total span,
.payment-balance span {
    color: var(--muted);
    font-weight: 600;
}

.payment-total strong,
.payment-balance strong {
    color: #082637;
    font-size: 1.35rem;
}

.payment-balance.due {
    background: #fff0ee;
    border-color: #ffd3cd;
}

.payment-balance.due strong {
    color: var(--danger);
}

.receipt-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.thermal-receipt {
    background: #fff;
    border: 1px solid #e7dfcf;
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: #111;
    font-family: "Arial Narrow", Arial, sans-serif;
    margin: 0 auto;
    max-width: 360px;
    padding: 12px;
}

.receipt-brand {
    border-bottom: 1px dashed #777;
    padding-bottom: 8px;
    text-align: center;
}

.receipt-brand img {
    display: block;
    margin: 0 auto 4px;
    max-height: 78px;
    object-fit: contain;
}

.receipt-brand h1 {
    font-size: 19px;
    line-height: 1.1;
    margin: 0;
}

.receipt-brand p {
    font-size: 12px;
    margin: 2px 0 0;
}

.receipt-meta {
    border-bottom: 1px dashed #777;
    display: grid;
    gap: 2px;
    padding: 8px 0;
}

.receipt-meta div,
.receipt-totals div {
    display: flex;
    justify-content: space-between;
}

.receipt-meta span,
.receipt-meta strong {
    font-size: 12px;
}

.receipt-table {
    border-collapse: collapse;
    width: 100%;
}

.receipt-table th,
.receipt-table td {
    border-bottom: 1px dashed #ddd;
    font-size: 12px;
    padding: 5px 2px;
    text-align: right;
    vertical-align: top;
}

.receipt-table th:first-child,
.receipt-table td:first-child {
    text-align: left;
    width: 44%;
}

.receipt-table th {
    font-weight: 700;
}

.receipt-totals {
    border-bottom: 1px dashed #777;
    border-top: 1px dashed #777;
    margin-top: 8px;
    padding: 7px 0;
}

.receipt-totals span,
.receipt-totals strong {
    font-size: 13px;
}

.receipt-totals div:first-child span,
.receipt-totals div:first-child strong {
    font-size: 16px;
    font-weight: 700;
}

.receipt-footer {
    display: grid;
    gap: 2px;
    padding-top: 8px;
    text-align: center;
}

.receipt-footer strong {
    font-size: 13px;
}

.receipt-footer span {
    font-size: 11px;
}

.counter-badge {
    align-items: center;
    background: #fff7e6;
    border: 1px solid rgba(217, 154, 32, .35);
    border-radius: 8px;
    color: #764c09;
    display: inline-flex;
    font-weight: 600;
    gap: .45rem;
    min-height: 44px;
    padding: .6rem .85rem;
}

.counter-badge i {
    color: #c47b07;
}

.alert {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 35, 29, .08);
    font-weight: 600;
}

.alert-success {
    background: #e8f7ef;
    color: #083f50;
}

.alert-danger {
    background: #fff0ee;
    color: #9b1c12;
}

.thumb {
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 58px;
    object-fit: cover;
    width: 58px;
}

.icon-thumb,
.category-icon-preview {
    align-items: center;
    background: linear-gradient(135deg, #edf7f5, #fff4d7);
    color: var(--brand);
    display: inline-flex;
    justify-content: center;
}

.icon-thumb i {
    font-size: 1.5rem;
}

.category-icon-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 42px;
    width: 42px;
}

.category-icon-preview i {
    font-size: 1.25rem;
}

.category-icon-picker {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    max-height: 280px;
    overflow: auto;
    padding-right: .25rem;
}

.icon-choice {
    cursor: pointer;
}

.icon-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.icon-choice span {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe8dc;
    border-radius: 8px;
    color: #31483d;
    display: grid;
    gap: .3rem;
    justify-items: center;
    min-height: 76px;
    padding: .55rem .4rem;
    text-align: center;
}

.icon-choice i {
    color: var(--brand);
    font-size: 1.55rem;
}

.icon-choice small {
    font-size: .72rem;
    line-height: 1.15;
}

.icon-choice input:checked + span {
    background: linear-gradient(180deg, #ffffff, #fff8e8);
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(217, 154, 32, .16);
}

.login-body {
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 217, 103, .32), transparent 24rem),
        radial-gradient(circle at 78% 18%, rgba(34, 139, 86, .24), transparent 22rem),
        linear-gradient(135deg, #062435 0%, #083f50 42%, #fff3d2 42%, #fffaf0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-shell {
    align-items: center;
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1.12fr) minmax(370px, 455px);
    justify-content: center;
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 3rem);
    position: relative;
}

.login-showcase {
    color: #fff;
    max-width: 720px;
    position: relative;
}

.login-aura {
    background:
        linear-gradient(135deg, rgba(255, 214, 109, .42), rgba(255, 255, 255, .08)),
        rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .22);
    inset: 7% 5% 15% 0;
    position: absolute;
    transform: rotate(-2deg);
}

.login-showcase-logo {
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 214, 109, .36);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
    display: block;
    max-height: 430px;
    max-width: min(100%, 680px);
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.login-showcase-copy {
    background: rgba(3, 34, 23, .74);
    border: 1px solid rgba(255, 214, 109, .38);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    margin-top: -4.25rem;
    margin-inline: 1.25rem;
    padding: 1rem 1.2rem;
    position: relative;
    z-index: 2;
}

.login-showcase-copy span {
    color: #ffd66d;
    display: block;
    font-weight: 600;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.login-showcase-copy strong {
    display: block;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    line-height: 1.25;
}

.login-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 251, 241, .96)),
        #fff;
    border: 1px solid rgba(217, 154, 32, .36);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(8, 47, 33, .28);
    padding: clamp(1.25rem, 3vw, 2rem);
    position: relative;
    width: 100%;
}

.login-card::before {
    background: linear-gradient(90deg, var(--brand), #0f7e55, var(--gold));
    border-radius: 8px 8px 0 0;
    content: "";
    height: 6px;
    inset: 0 0 auto;
    position: absolute;
}

.login-card-head {
    margin-bottom: 1.25rem;
}

.login-kicker {
    color: #b46f05;
    display: block;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.login-card-head h1 {
    color: #082637;
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    line-height: 1.1;
    margin: 0 0 .35rem;
}

.login-card-head p {
    color: var(--muted);
    margin: 0;
}

.login-card .form-label {
    color: #244239;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.login-card .btn-primary {
    box-shadow: 0 14px 28px rgba(7, 82, 52, .28);
    min-height: 50px;
}

.login-logo {
    display: block;
    margin: 0 auto;
    max-height: 210px;
    max-width: 100%;
    object-fit: contain;
}

.login-field {
    align-items: center;
    background: #fff;
    border: 1px solid #d9dece;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 44px 1fr;
    transition: .16s ease;
}

.login-field:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(217, 154, 32, .18);
}

.login-field i {
    color: var(--brand);
    font-size: 1.05rem;
    text-align: center;
}

.login-field .form-control {
    border: 0;
    box-shadow: none;
    min-height: 52px;
}

.login-field .form-control:focus {
    box-shadow: none;
}

.login-roles {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-roles span {
    align-items: center;
    background: linear-gradient(180deg, #f8fbf6, #fff9ea);
    border: 1px solid #e7dfcf;
    border-radius: 8px;
    color: #31483d;
    display: inline-flex;
    font-size: .85rem;
    font-weight: 600;
    gap: .4rem;
    justify-content: center;
    min-height: 40px;
}

.staff-photo {
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.billing-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 320px);
}

.public-body {
    --brand: #6a3518;
    --brand-dark: #241005;
    --brand-soft: #fff0d9;
    --gold: #d7942a;
    --gold-soft: #fff3d8;
    --surface: #fff9ef;
    background: linear-gradient(180deg, #fff8ec 0%, #f6eee2 52%, #fffaf3 100%);
}

.public-nav {
    align-items: center;
    background: rgba(255, 250, 241, .97);
    border-bottom: 1px solid rgba(106, 53, 24, .18);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 92px;
    padding: .35rem clamp(1rem, 4vw, 3rem);
    position: sticky;
    top: 0;
    z-index: 40;
}

.public-brand {
    align-items: center;
    color: var(--brand-dark);
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 800;
    gap: .55rem;
    text-decoration: none;
}

.public-brand img {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    height: 82px;
    justify-content: center;
    object-fit: contain;
    width: 300px;
}

.public-nav nav {
    align-items: center;
    display: flex;
    gap: clamp(1rem, 2vw, 1.65rem);
    justify-content: flex-end;
}

.public-nav nav > a:not(.btn) {
    color: #30483f;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.public-hero {
    align-items: center;
    color: #fff;
    display: flex;
    min-height: calc(100svh - 92px - 84px);
    overflow: hidden;
    padding: clamp(2rem, 7vw, 6rem);
    position: relative;
}

.public-hero::after {
    background: linear-gradient(90deg, rgba(3, 34, 23, .9), rgba(3, 34, 23, .58) 48%, rgba(3, 34, 23, .34));
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.hero-bg-stack,
.hero-bg-stack span {
    inset: 0;
    position: absolute;
}

.hero-bg-stack {
    z-index: 0;
}

.hero-bg-stack span {
    animation: heroImageFade 24s infinite;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
}

.hero-bg-stack span:nth-child(1) { animation-delay: 0s; }
.hero-bg-stack span:nth-child(2) { animation-delay: 6s; }
.hero-bg-stack span:nth-child(3) { animation-delay: 12s; }
.hero-bg-stack span:nth-child(4) { animation-delay: 18s; }

@keyframes heroImageFade {
    0%, 18% { opacity: 1; }
    25%, 93% { opacity: 0; }
    100% { opacity: 1; }
}

.public-hero-copy {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.public-hero-copy span {
    color: #ffd66d;
    display: block;
    font-size: .82rem;
    font-weight: 800;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.public-hero-copy h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: .92;
    margin: 0 0 1rem;
}

.public-hero-copy p {
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    max-width: 680px;
}

.public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
}

.public-main {
    margin-inline: auto;
    max-width: 1180px;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.public-main.compact {
    padding-top: 2rem;
}

.public-section {
    margin-top: clamp(1.75rem, 4vw, 3rem);
}

.public-band {
    background: #fff;
    border: 1px solid rgba(139, 107, 45, .18);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 0;
    padding: clamp(1rem, 3vw, 2rem);
}

.public-section.no-top,
.day-saver.no-top {
    margin-top: 0;
}

.public-proof {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    padding: 0;
}

.public-proof article {
    background: linear-gradient(180deg, #fff, #fbfdf8);
    min-height: 118px;
    padding: 1rem;
}

.public-proof strong,
.feature-card h3,
.timeline-list h3,
.owner-list span,
.idea-grid strong,
.support-grid strong,
.faq-grid h3 {
    color: #082637;
}

.public-proof strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: .35rem;
}

.public-proof span {
    color: var(--muted);
}

.public-main.compact .public-band {
    margin-top: 0;
}

.public-section-head {
    margin-bottom: 1.25rem;
    max-width: 740px;
}

.public-section-head h1,
.public-section-head h2,
.register-copy h1 {
    color: #082637;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.04;
    margin: 0 0 .55rem;
}

.public-section-head p,
.register-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.public-plan-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.workflow-visual {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.infographic-flow {
    counter-reset: flow;
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    position: relative;
}

.infographic-flow article {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(106, 53, 24, .18);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(36, 16, 5, .06);
    display: grid;
    gap: .35rem;
    min-height: 160px;
    padding: .9rem;
    position: relative;
}

.infographic-flow article:not(:last-child)::after {
    color: var(--gold);
    content: "\F138";
    font-family: "bootstrap-icons";
    font-size: 1.35rem;
    position: absolute;
    right: -.78rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.infographic-flow i {
    align-items: center;
    background: var(--brand);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.infographic-flow strong {
    color: #241005;
    line-height: 1.2;
}

.infographic-flow span {
    color: var(--muted);
    font-size: .92rem;
}

.process-flow-image {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

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

.feature-card,
.day-saver,
.split-section,
.pricing-support,
.faq-section {
    background: #fff;
    border: 1px solid rgba(139, 107, 45, .18);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-card {
    min-height: 224px;
    padding: 1rem;
}

.feature-card > img {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
    height: auto;
    margin-bottom: .9rem;
    object-fit: cover;
    width: 100%;
}

.feature-card h3 {
    font-size: 1.18rem;
    line-height: 1.2;
    margin: 0 0 .45rem;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
}

.day-saver {
    display: grid;
    gap: 1rem;
    grid-template-columns: .9fr 1.1fr;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.day-story h2,
.split-section h2,
.pricing-support h2 {
    color: #082637;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.08;
    margin: 0 0 .65rem;
}

.day-story p,
.split-section p,
.pricing-support p {
    color: var(--muted);
    font-size: 1.03rem;
}

.timeline-list {
    display: grid;
    gap: .75rem;
}

.timeline-list article {
    background: linear-gradient(180deg, #f8fbf6, #fff9ea);
    border: 1px solid rgba(217, 154, 32, .24);
    border-radius: 8px;
    display: grid;
    gap: .8rem;
    grid-template-columns: 48px 1fr;
    padding: .85rem;
}

.timeline-list article > span {
    align-items: center;
    background: var(--brand);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.timeline-list h3 {
    font-size: 1.05rem;
    margin: 0 0 .2rem;
}

.timeline-list p {
    color: var(--muted);
    margin: 0;
}

.split-section,
.pricing-support {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: .9fr 1.1fr;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.owner-list,
.support-grid {
    display: grid;
    gap: .75rem;
}

.owner-list article,
.support-grid article,
.idea-grid article {
    background: #fbfdf8;
    border: 1px solid #e3ecdf;
    border-radius: 8px;
    display: flex;
    gap: .65rem;
    padding: .85rem;
}

.owner-list i,
.support-grid i,
.idea-grid i {
    color: var(--brand);
    font-size: 1.25rem;
    line-height: 1.2;
}

.idea-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.idea-grid article,
.support-grid article {
    flex-direction: column;
    min-height: 150px;
}

.idea-grid span,
.support-grid span {
    color: var(--muted);
}

.faq-section {
    padding: clamp(1rem, 3vw, 1.5rem);
}

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

.faq-grid article {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.faq-grid h3 {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}

.faq-grid p {
    color: var(--muted);
    margin: 0;
}

.public-plan-card {
    background: linear-gradient(180deg, #fff, #fffaf0);
    border: 1px solid rgba(217, 154, 32, .28);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 35, 29, .06);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-height: 248px;
    padding: 1rem;
}

.plan-name {
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
}

.public-plan-card strong {
    color: #082637;
    font-size: 2rem;
    line-height: 1;
}

.public-plan-card strong small {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
}

.public-plan-card p {
    color: var(--muted);
    margin: 0;
}

.plan-feature-list {
    display: grid;
    gap: .5rem;
    list-style: none;
    margin: .25rem 0 auto;
    padding: 0;
}

.plan-feature-list li {
    align-items: center;
    color: #31483d;
    display: flex;
    gap: .45rem;
}

.plan-feature-list i {
    color: var(--brand);
}

.register-shell {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
}

.register-copy,
.register-card {
    background: #fff;
    border: 1px solid rgba(139, 107, 45, .18);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: clamp(1rem, 3vw, 1.5rem);
}

.public-copy-logo {
    display: block;
    height: 86px;
    margin-bottom: 1rem;
    object-fit: contain;
    width: 86px;
}

.selected-plan {
    background: linear-gradient(180deg, #f8fbf6, #fff9ea);
    border: 1px solid rgba(217, 154, 32, .35);
    border-radius: 8px;
    display: grid;
    gap: .25rem;
    margin-top: 1rem;
    padding: 1rem;
}

.selected-plan span {
    color: var(--muted);
    font-weight: 700;
}

.selected-plan strong {
    color: #082637;
    font-size: 1.35rem;
}

.public-footer {
    align-items: start;
    background: radial-gradient(circle at 10% 0, rgba(215, 148, 42, .24), transparent 22rem), #241005;
    color: #fff;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1.4fr .7fr .9fr;
    margin-top: 2rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.public-footer img {
    border-radius: 8px;
    display: block;
    height: 92px;
    margin-bottom: .8rem;
    object-fit: contain;
    width: 210px;
}

.public-footer p {
    color: rgba(255, 255, 255, .72);
    margin: 0;
    max-width: 520px;
}

.public-footer nav {
    display: grid;
    gap: .45rem;
}

.public-footer a:not(.btn) {
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
    text-decoration: none;
}

.public-footer strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: .75rem;
}

.footer-contact {
    align-items: center;
    display: flex;
    gap: .45rem;
    margin-bottom: .45rem;
}

.footer-contact i {
    color: var(--gold);
    font-size: 1.1rem;
}

.legal-page {
    background: #fff;
    border: 1px solid rgba(106, 53, 24, .16);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: clamp(1rem, 3vw, 2rem);
}

.legal-content {
    display: grid;
    gap: 1rem;
    max-width: 920px;
}

.legal-content article {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.legal-content h2 {
    color: #241005;
    font-size: 1.25rem;
    margin: 0 0 .35rem;
}

.legal-content p {
    color: var(--muted);
    margin: 0;
}

.billing-grid > .panel {
    min-width: 0;
}

.meal-btn {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    font-weight: 600;
    gap: .6rem;
    padding: .85rem;
    width: 100%;
}

.billing-page-head { margin-bottom: .65rem; min-height: 0; padding: .55rem .9rem; }
.billing-view .whatsapp-chat span { display: none; }
.billing-view .whatsapp-chat { min-width: 0; padding: .8rem; }
.billing-page-head .page-title { font-size: clamp(1.15rem, 1.8vw, 1.55rem); margin-bottom: .05rem; }
.billing-page-head .page-subtitle { font-size: .86rem; }
.billing-page-head .counter-badge { padding: .5rem .7rem; }
.products-panel { padding: .8rem; }
.meal-bar { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; margin-bottom: .7rem; min-width: 0; padding-bottom: .65rem; }
.meal-bar .panel-title { flex: 0 0 auto; font-size: .95rem; white-space: nowrap; }
.meal-bar .meal-stack { display: flex; flex: 1 1 auto; gap: .45rem; min-width: 0; overflow-x: auto; padding: .1rem .05rem; scrollbar-width: thin; }
.meal-bar .meal-btn { flex: 0 0 auto; padding: .5rem .7rem; width: auto; white-space: nowrap; }
.product-toolbar { flex-wrap: wrap; }
.product-columns { flex: 0 0 132px; }
.product-search { flex: 0 1 260px; margin-left: auto; }

.meal-btn i {
    color: var(--gold);
}

.meal-btn.active {
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
    border-color: var(--brand);
    color: #fff;
}

.meal-btn.active i {
    color: #ffd66d;
}

.product-grid {
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(var(--product-columns, 6), minmax(0, 1fr));
}

.product-card {
    background: #fff;
    border: 1px solid rgba(139, 107, 45, .2);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(23, 35, 29, .06);
    cursor: pointer;
    min-height: 0;
    overflow: hidden;
    transition: .15s ease;
}

.product-card .product-name {
    color: #17352c;
}

.product-card:hover {
    border-color: var(--gold);
    box-shadow: 0 16px 34px rgba(217, 154, 32, .18);
    transform: translateY(-2px);
}

.product-card img, .product-photo-placeholder {
    height: clamp(52px, 5vw, 76px);
    object-fit: cover;
    width: 100%;
}

.product-photo-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #edf7f5, #fff4d7);
    color: var(--brand);
    display: flex;
    font-size: 2rem;
    justify-content: center;
}

.cart-list {
    max-height: 48vh;
    overflow: auto;
}

.cart-qty { flex: 0 0 68px; max-width: 68px; min-width: 68px; text-align: center; width: 68px; }
.qty-control { align-items: center; }
.settlement-receipt { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 auto; max-width: 760px; padding: 1.25rem; }
.settlement-receipt-head { align-items: center; border-bottom: 1px dashed #888; display: flex; flex-direction: column; gap: .2rem; padding-bottom: .8rem; }
.settlement-receipt-head strong { font-size: 1.3rem; }
.settlement-totals { border-bottom: 1px dashed #888; padding: .65rem 0; }
.settlement-totals > div, .settlement-subtotal { display: flex; justify-content: space-between; gap: .5rem; padding: .2rem 0; }
.settlement-net, .settlement-subtotal { border-top: 1px dashed #aaa; font-weight: 700; margin-top: .3rem; padding-top: .45rem !important; }
.settlement-section { padding-top: .75rem; }
.settlement-section h2 { border-bottom: 1px solid #ddd; font-size: .9rem; letter-spacing: .08em; padding-bottom: .3rem; }
.settlement-row { align-items: flex-start; border-bottom: 1px dotted #ddd; display: flex; font-size: .86rem; gap: .5rem; justify-content: space-between; padding: .35rem 0; }
.settlement-row > div:first-child { min-width: 0; }
.settlement-row small { color: #555; display: block; font-size: .72rem; }
.settlement-amount { flex: 0 0 auto; text-align: right; }
.settlement-footer { border-top: 1px dashed #888; font-size: .72rem; margin-top: .75rem; padding-top: .4rem; text-align: center; }
.settlement-empty { color: #666; font-size: .84rem; }

@media print {
    @page { size: 80mm auto; margin: 3mm; }
    body, .admin-template { background: #fff !important; color: #000 !important; font: 10px/1.3 Arial, sans-serif !important; }
    .app-nav, .summary-bar, .whatsapp-chat, .settlement-screen-only { display: none !important; }
    .admin-main, .workspace { margin: 0 !important; max-width: none !important; padding: 0 !important; }
    .settlement-receipt { border: 0; border-radius: 0; margin: 0; max-width: none; padding: 0; width: 100%; }
    .settlement-receipt-head strong { font-size: 14px; }
    .settlement-receipt-head span, .settlement-totals, .settlement-row, .settlement-subtotal { font-size: 9px; }
    .settlement-row small { font-size: 8px; }
    .settlement-section { break-inside: avoid; }
}

.cart-row {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: .5rem;
    grid-template-columns: minmax(0, 1fr) minmax(148px, auto) 34px;
    padding: .7rem 0;
}

.cart-row:last-child {
    border-bottom: 0;
}

.qty-control {
    align-items: center;
    display: flex;
    gap: .25rem;
}

.qty-control button {
    flex: 0 0 28px;
    height: 30px;
    padding: 0;
    width: 30px;
}

.cart-panel { align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; position: sticky; top: 104px; z-index: 4; }

@media (max-width: 1100px) {
    .infographic-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .infographic-flow article:nth-child(3)::after {
        display: none;
    }

    .feature-grid,
    .idea-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .billing-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); }
    .cart-panel { grid-column: auto; }
    .login-shell { grid-template-columns: 1fr; }
    .login-showcase { display: none; }
    .login-card { margin: 0 auto; max-width: 460px; }
}

@media (max-width: 900px) {
    .public-plan-grid,
    .register-shell,
    .public-proof,
    .day-saver,
    .split-section,
    .pricing-support,
    .public-footer {
        grid-template-columns: 1fr;
    }

    .register-shell {
        gap: 1rem;
    }

    .app-nav .d-flex {
        align-items: stretch;
    }

    .logo-chip {
        flex: 0 0 auto;
    }

    .nav-menu {
        flex: 1 1 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .45rem;
        scrollbar-width: thin;
    }

    .nav-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .user-pill {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .public-nav {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
    }

    .public-brand img {
        height: 72px;
        width: min(100%, 270px);
    }

    .public-nav nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .public-nav nav > a:not(.btn) {
        font-size: .9rem;
    }

    .public-hero {
        min-height: 78svh;
        padding: 2rem 1rem 5rem;
    }

    .public-hero-copy h1 {
        font-size: clamp(2.6rem, 18vw, 4.2rem);
    }

    .feature-grid,
    .idea-grid,
    .faq-grid,
    .infographic-flow {
        grid-template-columns: 1fr;
    }

    .infographic-flow article:not(:last-child)::after {
        bottom: -.95rem;
        display: block;
        right: 50%;
        top: auto;
        transform: translateX(50%) rotate(90deg);
    }

    .public-proof article,
    .feature-card {
        min-height: 0;
    }

    .timeline-list article {
        grid-template-columns: 42px 1fr;
    }

    .public-footer {
        margin-top: 1rem;
    }

    body {
        background: linear-gradient(180deg, #fffaf0 0%, #f1f6f2 100%);
    }

    .brand-chip, .user-pill { flex: 1 1 auto; justify-content: center; }
    .logo-chip { flex-basis: 100%; }
    .logo-chip img { height: 74px; max-width: 260px; }
    .nav-menu { width: 100%; }
    .nav-chip { min-height: 62px; }
    .user-pill, .nav-chip.logout { min-height: 46px; }
    .summary-bar { min-height: 64px; scrollbar-width: thin; }
    .summary-grid, .summary-grid.admin { min-height: 64px; }
    .summary-item { min-height: 64px; padding: .55rem .8rem; }
    .summary-item + .summary-item { border-left: 1px solid rgba(255, 255, 255, .16); border-top: 0; }
    .workspace { padding: .75rem; }
    .page-head { align-items: stretch; flex-direction: column; padding: .85rem; }
    .panel { padding: .85rem; }
    .row { margin-inline: -.35rem; }
    .row > * { padding-inline: .35rem; }
    .col-6 { width: 100%; }
    .stat { min-height: 96px; }
    .billing-grid { grid-template-columns: 1fr; }
    .meal-stack { display: flex; gap: .4rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); }
    .cart-row { grid-template-columns: 1fr; }
    .qty-control { justify-content: space-between; }
    .table-card { margin-inline: -.85rem; }
    .table { min-width: 720px; }
    .login-body {
        background:
            radial-gradient(circle at 50% 0, rgba(255, 214, 109, .32), transparent 18rem),
            linear-gradient(180deg, #073c29 0 30%, #fff8ea 30% 100%);
    }
    .login-shell {
        align-items: start;
        min-height: 100svh;
        padding: 1rem;
    }
    .login-card {
        box-shadow: 0 18px 44px rgba(8, 47, 33, .22);
        padding: 1.1rem;
    }
    .login-logo { max-height: 170px; }
    .login-roles { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .product-card img, .product-photo-placeholder { height: 64px; }
    .product-card .p-2 { padding: .45rem !important; }
    .product-card .product-name { font-size: .9rem; line-height: 1.2; }
    .product-card .small { font-size: .72rem; }
    .meal-stack { display: flex; }
    .summary-item strong { font-size: .96rem; }
}

.billing-page-head { align-items: center; flex-direction: row; }
.product-card .p-2 { padding: .45rem !important; }
.product-card .product-name { font-size: clamp(.68rem, .8vw, .9rem); line-height: 1.2; }
.product-card .small { font-size: clamp(.62rem, .7vw, .75rem); }
.product-card .text-success { font-size: clamp(.65rem, .75vw, .82rem); }

@media (max-width: 1100px) and (min-width: 721px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(112px, 100%), 1fr)); }
}

@media (max-width: 720px) {
    .billing-page-head { align-items: center; flex-direction: row; }
    .billing-page-head .page-subtitle { display: none; }
    .billing-page-head .counter-badge { align-self: center; }
    .meal-bar { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .meal-bar .meal-stack { width: 100%; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); }
    .cart-panel { max-height: none; overflow: visible; position: static; }
    .cart-row { grid-template-columns: minmax(0, 1fr) auto 34px; }
    .cart-qty { flex-basis: 68px; }
}

@media print {
    @page {
        margin: 0;
        size: 80mm auto;
    }

    body {
        background: #fff;
        margin: 0;
        min-height: 0;
    }

    .admin-shell::before,
    .app-nav,
    .summary-bar,
    .receipt-actions,
    .alert {
        display: none !important;
    }

    .admin-main,
    .workspace {
        background: #fff;
        border: 0;
        box-shadow: none;
        margin: 0;
        max-width: none;
        min-height: 0;
        padding: 0;
    }

    .thermal-receipt {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        max-width: none;
        padding: 2mm;
        width: 76mm;
    }
}
