@font-face {
    font-family: "YekanBakh";
    src: url("font/YekanBakh-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #FFFDF8;
    --surface: #FFFDF8;
    --surface-soft: #F5E9DA;
    --text: #2F4F3A;
    --muted: #7A5C45;
    --primary: #5E7C60;
    --primary-dark: #2F4F3A;
    --accent: #7A5C45;
    --primary-rgb: 94 124 96;
    --text-rgb: 47 79 58;
    --success: #1f7a45;
    --warning: #c48212;
    --danger: #9e2f28;
    --border: rgba(122 92 69 / 0.18);
    --shadow: 0 18px 40px rgba(47 79 58 / 0.12);
    --shadow-soft: 0 10px 24px rgba(47 79 58 / 0.08);
    --shadow-hover: 0 24px 48px rgba(47 79 58 / 0.16);
    --radius: 22px;
    --radius-sm: 16px;
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 24px;
    --space-6: 32px;
}

body[data-theme="dark"] {
    --bg: #2F4F3A;
    --surface: rgba(47 79 58 / 0.92);
    --surface-soft: rgba(94 124 96 / 0.16);
    --text: #FFFDF8;
    --muted: rgba(245 233 218 / 0.78);
    --primary: #5E7C60;
    --primary-dark: #F5E9DA;
    --accent: #F5E9DA;
    --border: rgba(255 253 248 / 0.12);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "YekanBakh", Tahoma, Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb) / 0.18), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--surface-soft) 100%);
}

body[data-theme="dark"] {
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb) / 0.16), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}

::selection {
    background: rgba(var(--primary-rgb) / 0.2);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

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

h1,
h2,
h3,
h4 {
    line-height: 1.35;
}

.site-body,
.admin-body,
.auth-body {
    min-height: 100vh;
}

.page-shell,
.admin-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.toolbar-card,
.info-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(230, 221, 210, 0.9);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius);
    padding: 20px 22px;
}

.site-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(230, 221, 210, 0.9);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 10px;
    z-index: 25;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    display: grid;
    align-items: start;
    gap: 2px;
    min-width: 0;
}

.navbar-brand strong {
    font-size: 15px;
    white-space: nowrap;
}

.navbar-working-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 2px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(139, 94, 52, 0.14);
    font-size: 10.5px;
    color: #5b3a22;
    line-height: 1.6;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tool {
    position: relative;
}

.nav-icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(35, 24, 13, 0.08);
    border-color: rgba(139, 94, 52, 0.22);
}

.nav-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.nav-popover {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(320px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(230, 221, 210, 0.9);
    box-shadow: var(--shadow-hover);
    z-index: 40;
}

.nav-popover.is-hidden {
    display: none;
}

.nav-tool:focus-within .nav-popover.is-hidden,
.nav-tool.is-open .nav-popover.is-hidden {
    display: block !important;
}

.nav-tool.is-open {
    z-index: 41;
}

.nav-popover strong {
    display: block;
    margin-bottom: 10px;
}

.compact-tools {
    margin-top: 0;
}

.language-switcher,
.theme-mode-group,
.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.lang-chip {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 700;
}

.lang-chip.active,
.theme-mode-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.theme-controls {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.theme-color-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.theme-color-picker input[type="color"] {
    width: 54px;
    height: 40px;
    border: 0;
    background: transparent;
    padding: 0;
}

.hero-card,
.admin-header,
.auth-card,
.admin-panel,
.sticky-card,
.subcategory-card,
.subcategory-block,
.category-block,
.stat-card,
.table-banner {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(230, 221, 210, 0.9);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .admin-header,
body[data-theme="dark"] .auth-card,
body[data-theme="dark"] .admin-panel,
body[data-theme="dark"] .sticky-card,
body[data-theme="dark"] .subcategory-card,
body[data-theme="dark"] .subcategory-block,
body[data-theme="dark"] .category-block,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .table-banner,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .info-card,
body[data-theme="dark"] .menu-item,
body[data-theme="dark"] .table-wrap,
body[data-theme="dark"] table,
body[data-theme="dark"] .table-card,
body[data-theme="dark"] .social-link,
body[data-theme="dark"] .meta-chip,
body[data-theme="dark"] .badge,
body[data-theme="dark"] .checkout-choice,
body[data-theme="dark"] .info-item,
body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="number"],
body[data-theme="dark"] input[type="password"],
body[data-theme="dark"] input[type="url"],
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

body[data-theme="dark"] thead {
    background: #2f241d;
}

body[data-theme="dark"] tbody tr:nth-child(even) {
    background: #251d18;
}

body[data-theme="dark"] tbody tr:hover {
    background: #30241d;
}

body[data-theme="dark"] .btn-light {
    background: #3a2d24;
    color: var(--text);
}

body[data-theme="dark"] .btn-danger {
    background: #5a2c2a;
    color: #ffe5e2;
}

body[data-theme="dark"] .site-navbar,
body[data-theme="dark"] .nav-popover,
body[data-theme="dark"] .nav-icon-btn {
    background: rgba(34, 27, 22, 0.96);
    color: var(--text);
    border-color: var(--border);
}

body[data-theme="dark"] .delivery-map-block,
body[data-theme="dark"] #delivery-map {
    border-color: var(--border);
}

.hero-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.hero-card > div:first-child {
    flex: 1;
    min-width: 0;
}

.hero-card::after,
.admin-header::after {
    content: "";
    position: absolute;
    inset: auto auto -60px -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb) / 0.16), transparent 70%);
    pointer-events: none;
}

.hero-card h1,
.admin-header h1,
.auth-card h1 {
    margin: 2px 0 4px;
    font-size: clamp(18px, 2.4vw, 24px);
}

.hero-card p,
.admin-header p,
.empty-state,
.helper-note,
.menu-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.hero-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
    width: fit-content;
    margin-inline: auto;
}

.hero-social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    color: #40281a;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-social-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.42);
}

.hero-social-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.hero-social-link svg path,
.hero-social-link svg rect,
.hero-social-link svg circle {
    fill: none;
    stroke: currentColor;
}

.eyebrow {
    display: inline-flex;
    background: rgba(139, 94, 52, 0.1);
    color: var(--primary);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    border: 1px solid rgba(139, 94, 52, 0.08);
}

.hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: min(48%, 280px);
    width: min(48%, 280px);
}

.meta-chip,
.badge {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 12px;
    padding: 8px 10px;
    background: var(--surface-soft);
    border: 1px solid rgba(230, 221, 210, 0.9);
}

.meta-chip {
    align-items: flex-start;
    text-align: right;
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.meta-chip-label {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
}

.meta-chip-value {
    display: block;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
    font-weight: 800;
    word-break: break-word;
}

.meta-chip-address .meta-chip-value {
    font-size: 12px;
    line-height: 1.75;
}

.table-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 20px 24px;
    margin-bottom: var(--space-5);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(var(--primary-rgb) / 0.16), transparent 34%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.table-banner::after {
    content: "";
    position: absolute;
    inset: auto -38px -42px auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--text-rgb) / 0.1), transparent 68%);
    pointer-events: none;
}

.table-banner-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.table-banner-title {
    display: block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 800;
}

.table-banner-text {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    word-break: break-word;
    text-wrap: pretty;
}

.table-banner-copy-empty {
    padding: 2px 0;
}

.table-banner-empty-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.74);
    border: 1px solid var(--border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 12px 28px rgba(47 79 58 / 0.08);
}

.table-banner-empty-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.table-banner-empty-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb) / 0.18);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
}

.table-banner-countdown {
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(var(--text-rgb) / 0.1) 0%, rgba(var(--primary-rgb) / 0.22) 100%);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.table-banner-inline-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(245, 233, 218, 0.98) 100%);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.8;
    font-weight: 700;
}

.table-banner-inline-note::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 0 0 5px rgba(var(--primary-rgb) / 0.14);
}

.table-banner .badge {
    flex: 0 0 auto;
    width: clamp(156px, 34%, 240px);
    max-width: 100%;
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
    justify-content: center;
}

.table-banner-hint-badge {
    position: relative;
    z-index: 1;
    width: clamp(180px, 36%, 260px);
    align-self: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(245, 233, 218, 0.98) 100%);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.site-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 12px;
    margin-bottom: 20px;
}

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

.info-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.info-item span {
    color: var(--muted);
    font-size: 13px;
}

.badge.success {
    color: var(--success);
    background: #edf8f1;
}

.badge.warning {
    color: var(--warning);
    background: #fff7e7;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    gap: 24px;
    grid-template-areas: "menu cart";
}

.order-step-bar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.step-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    align-items: stretch;
}

.step-switcher .step-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.step-switcher .step-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(35, 24, 13, 0.08);
}

.step-switcher .step-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.step-switcher .step-continue-btn {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 12px;
    white-space: nowrap;
    justify-self: center;
    margin-inline: 4px;
    border-radius: 12px;
}

.step-chip-number {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.12);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.step-chip.active .step-chip-number {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.cart-step-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.step-back-btn {
    min-height: 40px;
}

.menu-panel {
    display: grid;
    gap: 20px;
    grid-area: menu;
}

.cart-panel {
    grid-area: cart;
}

.category-block {
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.category-block:hover {
    border-color: rgba(139, 94, 52, 0.18);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.category-block.category-block-disabled,
.category-block.category-block-disabled:hover {
    border-color: rgba(138, 129, 118, 0.18);
    box-shadow: none;
    transform: none;
    opacity: 0.72;
}

.category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.category-toggle.is-disabled {
    cursor: not-allowed;
}

.category-toggle::-webkit-details-marker {
    display: none;
}

.category-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.category-toggle .section-title {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.category-thumb,
.subcategory-thumb {
    overflow: hidden;
    border-radius: 16px;
    flex-shrink: 0;
    background: var(--surface-soft);
    border: 1px solid rgba(230, 221, 210, 0.9);
    box-shadow: var(--shadow-soft);
}

.category-thumb {
    width: 72px;
    height: 72px;
}

.subcategory-thumb {
    width: 52px;
    height: 52px;
}

.category-thumb img,
.subcategory-thumb img,
.menu-media img,
.admin-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-summary h2 {
    font-size: 19px;
    margin-bottom: 4px;
}

.category-availability-note {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
}

.category-availability-note.is-active {
    background: rgba(99, 152, 108, 0.14);
    color: #2f6b3f;
}

.category-availability-note.is-disabled {
    background: rgba(164, 120, 120, 0.12);
    color: #975353;
}

.category-count {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.category-chevron {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(var(--primary-rgb) / 0.14);
    border: 1px solid rgba(var(--text-rgb) / 0.14);
    box-shadow: 0 8px 18px rgba(47 79 58 / 0.12);
    position: relative;
    transition: transform 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
    flex-shrink: 0;
}

.category-chevron::before {
    content: "";
    width: 10px;
    height: 10px;
    border-left: 2.5px solid var(--primary);
    border-bottom: 2.5px solid var(--primary);
    transform: rotate(-45deg);
    margin-top: -2px;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-toggle:hover .category-chevron {
    background: rgba(var(--primary-rgb) / 0.22);
    box-shadow: 0 12px 22px rgba(47 79 58 / 0.16);
}

.category-toggle.is-disabled:hover .category-chevron {
    background: rgba(var(--primary-rgb) / 0.14);
    box-shadow: 0 8px 18px rgba(47 79 58 / 0.12);
}

.category-block[open] .category-chevron {
    background: var(--primary);
    transform: translateY(-1px);
}

.category-block[open] .category-chevron::before {
    border-color: #fff;
    transform: rotate(135deg);
}

.subcategory-browser {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.subcategory-stack {
    display: grid;
    gap: 12px;
}

.subcategory-block {
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.subcategory-block:hover {
    border-color: rgba(139, 94, 52, 0.16);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.subcategory-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.subcategory-toggle::-webkit-details-marker {
    display: none;
}

.subcategory-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.subcategory-toggle .section-title {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.subcategory-toggle h3 {
    font-size: 16px;
    margin-bottom: 0;
}

.subcategory-chevron {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(var(--primary-rgb) / 0.14);
    border: 1px solid rgba(var(--text-rgb) / 0.14);
    box-shadow: 0 8px 18px rgba(47 79 58 / 0.12);
    position: relative;
    transition: transform 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
    flex-shrink: 0;
}

.subcategory-chevron::before {
    content: "";
    width: 10px;
    height: 10px;
    border-left: 2.5px solid var(--primary);
    border-bottom: 2.5px solid var(--primary);
    transform: rotate(-45deg);
    margin-top: -2px;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.subcategory-body {
    padding: 0 14px 14px;
}

.subcategory-body .subcategory-card {
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.subcategory-block[open] .subcategory-chevron {
    background: var(--primary);
    transform: translateY(-1px);
}

.subcategory-block[open] .subcategory-chevron::before {
    border-color: #fff;
    transform: rotate(135deg);
}

.subcategory-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subcategory-tab {
    border: 1px solid rgba(139, 94, 52, 0.14);
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.08);
    color: var(--primary-dark);
    padding: 9px 14px;
    min-height: 40px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.subcategory-tab:hover {
    transform: translateY(-1px);
    background: rgba(139, 94, 52, 0.14);
}

.subcategory-tab.is-active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.category-content {
    padding: 0;
}

.subcategory-card {
    padding: 14px;
    background: linear-gradient(180deg, rgba(251, 248, 243, 1) 0%, rgba(255, 255, 255, 1) 100%);
    border: 1px solid rgba(230, 221, 210, 0.8);
}

.subcategory-card:not(.is-active) {
    display: none;
}

.subcategory-head,
.section-title,
.section-title.compact,
.admin-actions,
.admin-nav,
.inline-actions,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-title h2,
.subcategory-head h3,
.menu-item h4,
.site-footer h3 {
    margin: 0;
}

.section-title {
    margin-bottom: 16px;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.menu-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas:
        "media copy"
        "media actions";
    align-items: flex-start;
    gap: 10px 12px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(139, 94, 52, 0.18);
}

.menu-media {
    grid-area: media;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid rgba(230, 221, 210, 0.9);
}

.menu-copy {
    grid-area: copy;
    min-width: 0;
}

.item-label {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.12);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
}

.menu-copy h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.rating-summary,
.rating-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.rating-summary {
    color: var(--muted);
    font-size: 13px;
}

.rating-label {
    color: var(--muted);
    font-size: 13px;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-btn {
    border: 0;
    background: transparent;
    color: #d1b48f;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.star-btn:hover {
    color: #f0b64b;
    transform: scale(1.08);
}

.menu-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.price,
.cart-badge {
    color: var(--primary-dark);
    font-weight: 700;
}

.price {
    white-space: nowrap;
    font-size: 15px;
}

.subcategory-title {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    width: 100%;
}

.subcategory-title span {
    color: var(--muted);
    font-size: 13px;
}

.subcategory-title h3 {
    min-width: 0;
    text-align: right;
}

.admin-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.sticky-card {
    position: sticky;
    top: 28px;
    padding: 24px;
}

.mobile-cart-bar {
    display: none;
}

.bottom-app-nav {
    display: none;
}

.credit-toast {
    display: none;
}

.waiter-call-sheet {
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(calc(100% - 32px), 560px);
    padding: 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb) / 0.18), transparent 42%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.99) 0%, rgba(245, 233, 218, 0.98) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(16px);
    z-index: 45;
}

.waiter-call-sheet-form {
    display: grid;
    gap: 14px;
}

.waiter-call-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.waiter-call-sheet-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.waiter-call-sheet-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(var(--primary-rgb) / 0.24) 0%, rgba(var(--text-rgb) / 0.1) 100%);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.waiter-call-sheet-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.waiter-call-sheet-head strong {
    display: block;
    font-size: 16px;
    color: var(--text);
}

.waiter-call-sheet-kicker {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.waiter-call-sheet-text {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.9;
}

.fried-platter-options {
    display: grid;
    gap: 10px;
}

.waiter-call-sheet-field {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(230, 221, 210, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.waiter-call-sheet-field span {
    color: #8b5e34;
    font-size: 11px;
    font-weight: 800;
}

.waiter-call-sheet-field select {
    background: #fff;
    border-color: rgba(222, 208, 191, 0.95);
    box-shadow: 0 10px 22px rgba(35, 24, 13, 0.06);
}

.waiter-call-close-btn {
    border-radius: 999px;
    padding-inline: 14px;
    min-height: 38px;
}

.waiter-call-close-btn:hover {
    transform: translateY(-1px);
}

body[data-theme="dark"] .waiter-call-sheet {
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb) / 0.14), transparent 42%),
        linear-gradient(180deg, var(--surface) 0%, rgba(var(--primary-rgb) / 0.12) 100%);
    border-color: var(--border);
}

body[data-theme="dark"] .waiter-call-sheet-icon {
    background: linear-gradient(180deg, rgba(var(--primary-rgb) / 0.22) 0%, rgba(var(--text-rgb) / 0.1) 100%);
    color: var(--primary-dark);
}

body[data-theme="dark"] .waiter-call-sheet-head strong {
    color: var(--text);
}

body[data-theme="dark"] .waiter-call-sheet-kicker {
    color: var(--muted);
}

body[data-theme="dark"] .waiter-call-sheet-field {
    background: rgba(47 79 58 / 0.72);
    border-color: var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .waiter-call-sheet-field span {
    color: #f0c084;
}

body[data-theme="dark"] .waiter-call-sheet-field select {
    background: rgba(47 79 58 / 0.72);
    border-color: var(--border);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.cart-form,
.order-form,
.auth-form,
.admin-form {
    display: grid;
    gap: 16px;
}

.cart-row,
.total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-row {
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
}

.cart-controls {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.checkout-choice {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.order-table-field {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(245, 233, 218, 0.98) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.order-table-field span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.order-table-field span::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 0 0 5px rgba(var(--primary-rgb) / 0.14);
}

.order-table-field select {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

.order-table-field select:focus {
    border-color: rgba(var(--primary-rgb) / 0.42);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb) / 0.12), var(--shadow-soft);
}

.checkout-takeout {
    justify-content: flex-start;
}

.takeout-status {
    margin-top: 8px;
    color: var(--success);
    font-size: 13px;
    font-weight: 700;
}

.takeout-lock-note {
    margin-top: 8px;
    color: #a4493d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

.delivery-map-block {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.delivery-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.delivery-map-head span {
    color: var(--muted);
    font-size: 12px;
}

#delivery-map {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(230, 221, 210, 0.9);
}

.is-hidden {
    display: none !important;
}

.cart-remove-btn {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 13px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="url"],
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 15px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(139, 94, 52, 0.45);
    box-shadow: 0 0 0 4px rgba(139, 94, 52, 0.12);
    background: #fffefc;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

label {
    display: grid;
    gap: 8px;
}

label span {
    font-size: 14px;
    color: var(--muted);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    min-height: 46px;
    box-shadow: 0 10px 20px rgba(35, 24, 13, 0.06);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(35, 24, 13, 0.1);
}

.btn:focus-visible,
.category-toggle:focus-visible,
.social-link:focus-visible,
.admin-nav a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 94, 52, 0.14);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-light {
    background: #f1eadf;
    color: var(--text);
}

.btn-light:hover {
    background: #eadfce;
}

.btn-danger {
    background: #f8e4e2;
    color: var(--danger);
}

.btn-danger:hover {
    background: #f3d4d1;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.full-width {
    width: 100%;
}

.total-box {
    margin: 18px 0;
    padding: 18px 20px;
    background: var(--surface-soft);
    border-radius: 16px;
    border: 1px solid rgba(230, 221, 210, 0.9);
}

.helper-note {
    font-size: 13px;
    margin-top: 14px;
}

.site-footer {
    padding: 28px 0 0;
    margin-top: 28px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(230, 221, 210, 0.9);
}

.site-footer:empty {
    display: none;
    padding: 0;
    margin: 0;
    border: 0;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 15px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

button.social-link {
    cursor: pointer;
}

.social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(35, 24, 13, 0.08);
    border-color: rgba(139, 94, 52, 0.18);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.social-link svg path,
.social-link svg rect,
.social-link svg circle {
    fill: none;
    stroke: currentColor;
}

.alert {
    border-radius: 18px;
    padding: 16px 18px;
    margin-top: 12px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.alert-success {
    background: #e7f6ec;
    color: #1d693c;
    border-color: #c8e9d3;
}

.alert-error {
    background: #fdeceb;
    color: #972a24;
    border-color: #f5d0cd;
}

.flash-link-row,
.tracking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.flash-helper {
    margin-top: 10px;
    color: inherit;
    opacity: 0.84;
    font-size: 13px;
}

.tracking-shell {
    width: min(100%, 760px);
}

.tracking-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tracking-card {
    display: grid;
    gap: 16px;
}

.tracking-link-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid rgba(230, 221, 210, 0.9);
    color: var(--text);
    line-height: 1.8;
    word-break: break-all;
}

.tracking-items {
    display: grid;
    gap: 12px;
}

.tracking-address {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid rgba(230, 221, 210, 0.9);
}

.tracking-address span {
    color: var(--muted);
    font-size: 13px;
}

.tracking-preparation-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff8ee 0%, #f8efe3 100%);
    border: 1px solid rgba(226, 188, 116, 0.44);
}

.tracking-preparation-card.is-overdue {
    background: linear-gradient(180deg, #fff3f1 0%, #fde8e5 100%);
    border-color: rgba(186, 79, 66, 0.28);
}

.tracking-courier-card {
    background: linear-gradient(180deg, #eef7ff 0%, #e3f0fb 100%);
    border-color: rgba(98, 149, 201, 0.34);
}

.tracking-preparation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tracking-preparation-head strong,
.tracking-preparation-item strong {
    color: var(--text);
}

.tracking-preparation-head strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.tracking-preparation-head span,
.tracking-preparation-item span,
.tracking-preparation-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.tracking-preparation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb) / 0.16);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tracking-preparation-card.is-overdue .tracking-preparation-badge {
    background: rgba(186, 79, 66, 0.12);
    color: #9e2f28;
}

.tracking-courier-card .tracking-preparation-badge {
    background: rgba(56, 123, 192, 0.12);
    color: #245b92;
}

.tracking-preparation-progress {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb) / 0.1);
    overflow: hidden;
}

.tracking-preparation-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: width 0.3s ease;
}

.tracking-preparation-card.is-overdue .tracking-preparation-progress span {
    background: linear-gradient(90deg, #d86d62, #b83c33);
}

.tracking-courier-card .tracking-preparation-progress span {
    background: linear-gradient(90deg, #5aa0e8, #2f6fae);
}

.tracking-preparation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tracking-preparation-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
}

.tracking-preparation-note {
    margin: 0;
}

.tracking-preparation-note strong {
    color: #2f1e12;
}

.tracking-courier-box {
    gap: 12px;
}

.tracking-courier-grid {
    gap: 10px;
}

.delivery-confirm-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff9ed 0%, #f7eedf 100%);
    border: 1px solid rgba(226, 188, 116, 0.4);
}

.delivery-confirm-card.is-reported {
    background: linear-gradient(180deg, #fff3f1 0%, #fde8e5 100%);
    border-color: rgba(186, 79, 66, 0.28);
}

.delivery-confirm-head {
    display: grid;
    gap: 6px;
}

.delivery-confirm-head strong {
    color: #2f1e12;
    font-size: 15px;
    font-weight: 800;
}

.delivery-confirm-head span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.delivery-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.delivery-confirm-actions .btn {
    flex: 1 1 180px;
}

.delivery-confirm-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(var(--primary-rgb) / 0.08);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.delivery-call-btn {
    margin-inline-start: 10px;
}

.auth-body {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(var(--primary-rgb) / 0.24), transparent 24%),
        radial-gradient(circle at bottom left, rgba(var(--text-rgb) / 0.08), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--surface-soft) 100%);
}

.auth-card {
    width: min(480px, 100%);
    padding: 30px;
    display: grid;
    gap: 18px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(245, 233, 218, 0.96) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #e0a145 0%, #8b5e34 100%);
}

.login-card::after {
    content: "";
    position: absolute;
    top: -46px;
    left: -28px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 161, 69, 0.18), transparent 72%);
    pointer-events: none;
}

.auth-card-head {
    display: grid;
    gap: 8px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    justify-self: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #5b4437, #8b5e34);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 16px 28px rgba(91, 68, 55, 0.2);
}

.auth-eyebrow {
    display: inline-flex;
    justify-self: center;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.1);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.auth-card h1 {
    margin: 0;
    font-size: 30px;
    color: #2b190f;
}

.auth-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.auth-form {
    gap: 14px;
    position: relative;
    z-index: 1;
}

.auth-form label {
    gap: 10px;
}

.auth-form label span {
    font-size: 13px;
    font-weight: 700;
    color: #5a4739;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    min-height: 52px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(221, 209, 194, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-form .btn {
    margin-top: 6px;
    min-height: 52px;
    border-radius: 18px;
    font-size: 15px;
    box-shadow: 0 14px 28px rgba(91, 68, 55, 0.14);
}

.auth-form-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    background: rgba(139, 94, 52, 0.07);
    border-radius: 16px;
    padding: 10px 12px;
}

.auth-card-foot {
    display: flex;
    justify-content: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.admin-header {
    position: relative;
    overflow: hidden;
    padding: 24px 28px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.97), rgba(245, 233, 218, 0.95)),
        rgba(255, 253, 248, 0.92);
}

.admin-user {
    background: var(--surface-soft);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.admin-body {
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb) / 0.16), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--surface-soft) 100%);
}

.admin-shell.admin-layout {
    width: min(1480px, calc(100% - 40px));
    padding-top: 24px;
}

.admin-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.admin-sidebar {
    flex: 0 0 292px;
    width: 292px;
    max-width: 292px;
    position: sticky;
    top: 20px;
    display: grid;
    gap: 14px;
    align-self: flex-start;
}

.admin-content {
    flex: 1 1 auto;
    width: min(100%, calc(100% - 316px));
    min-width: 0;
}

.admin-sidebar-card,
.admin-section-group {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(230, 221, 210, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.admin-sidebar-card {
    padding: 14px;
}

.admin-notifications-card {
    display: grid;
    gap: 14px;
}

.sidebar-notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b4437, #7a5b4a);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.sidebar-notification-group {
    display: grid;
    gap: 10px;
}

.sidebar-notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-notification-heading strong {
    font-size: 13px;
    color: #2f1e12;
}

.sidebar-notification-heading a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.sidebar-notification-list {
    display: grid;
    gap: 8px;
}

.sidebar-notification-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    background: #f8f3eb;
    border: 1px solid rgba(230, 221, 210, 0.82);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sidebar-notification-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(35, 24, 13, 0.06);
    border-color: rgba(139, 94, 52, 0.2);
}

.sidebar-notification-item strong {
    display: block;
    font-size: 13px;
    color: #2f1e12;
}

.sidebar-notification-item span,
.sidebar-notification-item small,
.sidebar-notification-empty {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.sidebar-notification-empty {
    margin: 0;
    padding: 12px;
    border-radius: 16px;
    background: #f8f3eb;
    border: 1px dashed rgba(230, 221, 210, 0.9);
}

.admin-content > .alert {
    margin-top: 0;
    margin-bottom: 18px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(230, 221, 210, 0.92);
    box-shadow: 0 18px 42px rgba(35, 24, 13, 0.08);
}

.admin-header-title {
    display: flex;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}

.admin-header h1 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    background: #f8f3eb;
    border: 1px solid rgba(230, 221, 210, 0.9);
    color: #2f1e12;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    max-width: 100%;
}

.admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex: 0 0 auto;
}

.admin-actions .btn,
.admin-actions .admin-user {
    width: 40px;
    min-width: 40px;
    justify-self: auto;
}

.admin-actions .btn {
    min-height: 40px;
    padding: 0;
}

.admin-user {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 40px;
    padding: 0;
    font-weight: 700;
}

.admin-icon-btn {
    border-radius: 12px;
}

.admin-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.admin-quick-list {
    display: grid;
    gap: 10px;
}

.admin-quick-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f8f3eb;
    border: 1px solid rgba(230, 221, 210, 0.78);
}

.admin-quick-list span {
    color: var(--muted);
    font-size: 12px;
}

.admin-quick-list strong {
    font-size: 16px;
}

.admin-sidebar-card .section-title.compact {
    margin-bottom: 10px;
}

.stat-card {
    padding: 22px;
    display: grid;
    gap: 10px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-card span {
    color: var(--muted);
}

.stat-card strong {
    font-size: 24px;
}

.admin-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    background: rgba(248, 244, 238, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 221, 210, 0.8);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.admin-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 14px;
    min-height: 54px;
    padding: 14px 16px 14px 14px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-nav a.is-active {
    background: linear-gradient(135deg, #5b4437, #7a5b4a);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(91, 68, 55, 0.16);
}

.admin-nav a:hover {
    transform: translateX(-2px);
    background: #fff;
    border-color: rgba(139, 94, 52, 0.24);
    box-shadow: 0 10px 20px rgba(35, 24, 13, 0.06);
}

.admin-nav a.is-active:hover {
    background: linear-gradient(135deg, #5b4437, #7a5b4a);
    border-color: transparent;
}

.admin-nav a::after {
    content: "‹";
    color: rgba(139, 94, 52, 0.55);
    font-size: 16px;
}

.admin-nav a.is-active::after {
    color: rgba(255, 255, 255, 0.82);
}

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

.admin-grid-split {
    margin-top: 18px;
    align-items: start;
}

.admin-stack {
    display: grid;
    gap: 22px;
}

.waiter-orders-list {
    display: grid;
    gap: 18px;
}

.waiter-order-card {
    display: grid;
    gap: 18px;
}

.waiter-order-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-section-group {
    padding: 22px;
    margin-bottom: 22px;
}

.admin-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(230, 221, 210, 0.9);
}

.admin-section-heading h2 {
    margin: 0 0 6px;
}

.admin-section-heading p {
    margin: 0;
    color: var(--muted);
}

.admin-dashboard {
    padding-bottom: 26px;
}

.dashboard-stats {
    margin-bottom: 0;
}

.dashboard-stats-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-stats-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card small {
    color: var(--muted);
    font-size: 12px;
}

.stat-card-highlight {
    background: linear-gradient(135deg, rgba(91, 68, 55, 0.98), rgba(122, 91, 74, 0.96));
    color: #fff;
}

.stat-card-highlight span,
.stat-card-highlight small {
    color: rgba(255, 255, 255, 0.82);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 22px;
    margin-top: 22px;
}

.dashboard-panel {
    display: grid;
    gap: 18px;
}

.dashboard-summary-list {
    display: grid;
    gap: 12px;
}

.dashboard-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8f3eb;
    border: 1px solid rgba(230, 221, 210, 0.82);
}

.dashboard-summary-item span {
    display: block;
    font-weight: 700;
}

.dashboard-summary-item small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.dashboard-summary-item strong {
    flex: 0 0 auto;
    font-size: 24px;
    color: #2f1e12;
}

.dashboard-subtitle {
    margin-top: 8px;
    margin-bottom: 0;
}

.dashboard-summary-list {
    display: grid;
    gap: 12px;
}

.dashboard-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8f3eb;
    border: 1px solid rgba(230, 221, 210, 0.82);
}

.dashboard-summary-item div {
    display: grid;
    gap: 2px;
}

.dashboard-summary-item span {
    font-weight: 700;
    color: #2f1e12;
}

.dashboard-summary-item small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.dashboard-summary-item strong {
    font-size: 24px;
    color: var(--primary-dark);
    white-space: nowrap;
}

.dashboard-subtitle {
    margin-bottom: -2px;
}

.status-meter-list {
    display: grid;
    gap: 14px;
}

.status-meter-row {
    display: grid;
    gap: 8px;
}

.status-meter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status-meter-head span {
    color: var(--muted);
    font-size: 13px;
}

.status-meter-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #f1e7da;
    overflow: hidden;
}

.status-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.status-pending {
    background: linear-gradient(90deg, #c77a15, #eda83e);
}

.status-preparing {
    background: linear-gradient(90deg, #6f57d9, #8a74f6);
}

.status-served {
    background: linear-gradient(90deg, #1f7a45, #34a965);
}

.status-settled {
    background: linear-gradient(90deg, #2b8f82, #45beb0);
}

.status-with_courier {
    background: linear-gradient(90deg, #4a8fd2, #79b5ee);
}

.status-cancelled {
    background: linear-gradient(90deg, #a43830, #d85e54);
}

.sales-chart {
    display: grid;
    grid-template-columns: repeat(var(--sales-chart-columns, 7), minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 272px;
    width: 100%;
    min-width: 0;
}

.sales-chart-shell {
    padding: 18px 16px 14px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(248, 243, 235, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(230, 221, 210, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.sales-range-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.sales-range-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8f3eb;
    border: 1px solid rgba(230, 221, 210, 0.88);
    color: #6a5142;
    font-size: 12px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sales-range-switcher a:hover {
    background: #fff;
    border-color: rgba(139, 94, 52, 0.24);
    box-shadow: 0 8px 18px rgba(35, 24, 13, 0.05);
}

.sales-range-switcher a.is-active {
    background: linear-gradient(135deg, #5b4437, #7a5b4a);
    color: #fff;
    border-color: transparent;
}

.sales-chart-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sales-chart-summary-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8f3eb;
    border: 1px solid rgba(230, 221, 210, 0.82);
}

.sales-chart-summary-item span {
    color: var(--muted);
    font-size: 12px;
}

.sales-chart-summary-item strong {
    font-size: 16px;
    color: #2f1e12;
    line-height: 1.7;
}

.sales-chart-item {
    display: grid;
    gap: 8px;
    justify-items: center;
    min-width: 0;
}

.sales-chart-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(91, 68, 55, 0.08);
    color: #6a5142;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.sales-chart-bar {
    width: 100%;
    min-height: 174px;
    height: 174px;
    display: flex;
    align-items: end;
    padding: 12px 8px 0;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(239, 227, 208, 0.92) 100%);
    border: 1px solid rgba(230, 221, 210, 0.72);
    position: relative;
    overflow: hidden;
}

.sales-chart-bar::before {
    content: "";
    position: absolute;
    inset: 12px 10px 12px;
    border-radius: 16px;
    background:
        repeating-linear-gradient(
            to top,
            rgba(139, 94, 52, 0.04) 0,
            rgba(139, 94, 52, 0.04) 1px,
            transparent 1px,
            transparent 28px
        );
    pointer-events: none;
}

.sales-chart-bar span {
    display: block;
    width: 100%;
    border-radius: 16px 16px 10px 10px;
    background: linear-gradient(180deg, #f1b14d 0%, #d88b29 48%, #a85a16 100%);
    box-shadow: 0 14px 24px rgba(184, 109, 32, 0.24);
    position: relative;
    z-index: 1;
}

.sales-chart-item strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(230, 221, 210, 0.9);
    font-size: 12px;
    color: #4b3627;
    line-height: 1.4;
}

.sales-chart-label.is-hidden,
.sales-chart-value.is-hidden {
    visibility: hidden;
}

.sales-chart.chart-dense {
    gap: 8px;
}

.sales-chart.chart-dense .sales-chart-bar {
    min-height: 164px;
    height: 164px;
    padding: 10px 5px 0;
}

.sales-chart.chart-dense .sales-chart-item strong {
    min-width: 24px;
    min-height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 11px;
    color: var(--muted);
}

.sales-chart.chart-ultra-dense {
    gap: 4px;
}

.sales-chart.chart-ultra-dense .sales-chart-bar {
    min-height: 152px;
    height: 152px;
    padding: 8px 3px 0;
    border-radius: 16px;
}

.sales-chart.chart-ultra-dense .sales-chart-bar::before {
    inset: 10px 4px 10px;
}

.sales-chart.chart-ultra-dense .sales-chart-item strong {
    min-width: 0;
    min-height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 10px;
    color: var(--muted);
}

.sales-chart.chart-ultra-dense .sales-chart-item {
    gap: 6px;
}

.admin-panel {
    padding: 24px;
    background: #fffdfa;
    border: 1px solid rgba(230, 221, 210, 0.88);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(35, 24, 13, 0.06);
}

.full-span-panel,
.full-span {
    grid-column: 1 / -1;
}

.admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.waiter-order-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.waiter-order-form > .full-span {
    grid-column: 1 / -1;
}

.admin-form label {
    padding: 14px;
    border-radius: 18px;
    background: #f8f3eb;
    border: 1px solid rgba(230, 221, 210, 0.82);
}

.admin-form .checkbox-row {
    padding: 14px;
    border-radius: 18px;
    background: #f8f3eb;
    border: 1px solid rgba(230, 221, 210, 0.82);
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form input[type="url"],
.admin-form textarea,
.admin-form select {
    background: #fff;
    border: 1px solid rgba(221, 209, 194, 0.95);
}

.admin-form > button,
.admin-form > .inline-actions,
.admin-form > .checkbox-row,
.admin-form > .full-span {
    grid-column: 1 / -1;
}

.inline-actions .btn {
    flex: 1 1 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(230, 221, 210, 0.9);
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.order-items-toggle {
    min-width: 320px;
}

.order-items-toggle summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(213, 174, 91, 0.3);
    background: #f9f2e6;
    color: #7b4b1e;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.order-items-toggle summary::-webkit-details-marker {
    display: none;
}

.order-items-toggle[open] summary {
    background: #f3e0bf;
    color: #5d3716;
}

.order-items-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.order-receipt {
    width: min(100%, 304px);
    margin-top: 12px;
    padding: 14px 12px;
    border: 1px dashed rgba(122, 90, 58, 0.4);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf9 0%, #faf4eb 100%);
    box-shadow: 0 10px 24px rgba(47, 30, 18, 0.08);
}

.order-receipt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
}

.order-receipt-head strong {
    color: #2f1e12;
    font-size: 14px;
    font-weight: 800;
}

.order-receipt-head span {
    color: #7f6c5d;
    font-size: 12px;
    font-weight: 700;
}

.order-receipt-meta {
    display: grid;
    gap: 6px;
}

.order-receipt-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    color: #6d5a4a;
    font-size: 12px;
}

.order-receipt-row span {
    color: #7f6c5d;
}

.order-receipt-row strong {
    max-width: 62%;
    color: #2f1e12;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    line-height: 1.6;
    white-space: normal;
}

.order-receipt-divider {
    border-top: 1px dashed rgba(122, 90, 58, 0.28);
    margin: 12px 0;
}

.order-items-entry {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed rgba(122, 90, 58, 0.18);
    text-align: right;
}

.order-items-info {
    display: grid;
    gap: 3px;
}

.order-items-entry strong,
.order-items-meta strong {
    display: block;
    color: #2f1e12;
}

.order-items-entry span,
.order-items-entry small {
    color: #7f6c5d;
    font-size: 12px;
}

.order-items-meta {
    display: grid;
    justify-items: end;
    gap: 4px;
    flex-shrink: 0;
}

.order-receipt-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #5d3716;
}

.order-receipt-total span {
    font-size: 12px;
    font-weight: 700;
}

.order-receipt-total strong {
    font-size: 14px;
    font-weight: 800;
}

.order-items-empty {
    margin: 12px 0;
    color: #7f6c5d;
    font-size: 12px;
    white-space: normal;
}

.order-invoice-link {
    min-width: 128px;
}

.invoice-page-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f1e7 0%, #efe4d6 100%);
    color: #2f1e12;
}

.invoice-page-shell {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: 28px 18px 40px;
    display: grid;
    gap: 18px;
}

.invoice-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.invoice-paper {
    width: min(100%, 340px);
    margin: 0 auto;
    padding: 18px 16px;
    border-radius: 22px;
    background: #fffdf9;
    border: 1px dashed rgba(122, 90, 58, 0.38);
    box-shadow: 0 22px 55px rgba(47, 30, 18, 0.14);
}

.invoice-paper-head {
    display: grid;
    gap: 5px;
    justify-items: center;
    padding-bottom: 14px;
    text-align: center;
}

.invoice-paper-head strong {
    font-size: 19px;
    font-weight: 900;
}

.invoice-paper-head span {
    font-size: 14px;
    font-weight: 800;
}

.invoice-paper-head small {
    color: #7f6c5d;
    font-size: 11px;
}

.invoice-paper-meta {
    display: grid;
    gap: 6px;
}

.invoice-paper-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    line-height: 1.7;
}

.invoice-paper-row span {
    color: #7f6c5d;
}

.invoice-paper-row strong {
    max-width: 62%;
    text-align: left;
    white-space: normal;
    font-weight: 800;
}

.invoice-paper-row.is-multiline strong {
    max-width: 70%;
}

.invoice-paper-divider {
    margin: 12px 0;
    border-top: 1px dashed rgba(122, 90, 58, 0.28);
}

.invoice-paper-items {
    display: grid;
    gap: 8px;
}

.invoice-paper-items-head,
.invoice-paper-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px 88px;
    gap: 10px;
    align-items: start;
}

.invoice-paper-items-head {
    color: #7f6c5d;
    font-size: 11px;
    font-weight: 800;
    padding-bottom: 4px;
}

.invoice-paper-item {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(122, 90, 58, 0.18);
    font-size: 12px;
}

.invoice-paper-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.invoice-paper-item-main {
    display: grid;
    gap: 3px;
}

.invoice-paper-item-main strong {
    white-space: normal;
}

.invoice-paper-item-main small {
    color: #7f6c5d;
    font-size: 11px;
}

.invoice-paper-item-qty,
.invoice-paper-item-total {
    text-align: center;
    font-weight: 800;
}

.invoice-paper-item-total {
    text-align: left;
}

.invoice-paper-empty {
    margin: 0;
    color: #7f6c5d;
    font-size: 12px;
    text-align: center;
}

.invoice-paper-foot {
    display: grid;
    gap: 10px;
}

.invoice-paper-total {
    font-size: 14px;
}

.invoice-paper-total strong {
    font-size: 15px;
}

.invoice-paper-foot p {
    margin: 0;
    color: #7f6c5d;
    font-size: 11px;
    text-align: center;
}

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

    html,
    body {
        background: #fff !important;
    }

    .no-print {
        display: none !important;
    }

    .invoice-page-shell {
        width: auto;
        padding: 0;
        margin: 0;
        display: block;
    }

    .invoice-paper {
        width: 72mm;
        max-width: 72mm;
        min-height: auto;
        margin: 0 auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }
}

table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

th,
td {
    text-align: right;
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    vertical-align: middle;
}

thead {
    background: #f8f3eb;
}

th {
    font-size: 13px;
    color: #6d5a4a;
    font-weight: 800;
}

tbody tr:nth-child(even) {
    background: #fcfaf7;
}

tbody tr:hover {
    background: #f7f1e9;
}

.orders-table .order-row td {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.orders-table .order-row td:first-child {
    border-inline-end: 5px solid transparent;
    font-weight: 800;
}

.orders-table .order-row.status-pending td {
    background: #fff1c2 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    border-bottom-color: rgba(214, 166, 66, 0.34);
}

.orders-table .order-row.status-pending td:first-child {
    border-inline-end-color: #d5a12f;
}

.orders-table .order-row.status-preparing td {
    background: #eadcff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    border-bottom-color: rgba(132, 103, 228, 0.3);
}

.orders-table .order-row.status-preparing td:first-child {
    border-inline-end-color: #7f58d9;
}

.orders-table .order-row.status-with-courier td {
    background: #dcecff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    border-bottom-color: rgba(87, 145, 212, 0.3);
}

.orders-table .order-row.status-with-courier td:first-child {
    border-inline-end-color: #4b8fd9;
}

.orders-table .order-row.status-served td,
.orders-table .order-row.status-settled td {
    background: #dff5e4 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    border-bottom-color: rgba(52, 169, 101, 0.28);
}

.orders-table .order-row.status-served td:first-child,
.orders-table .order-row.status-settled td:first-child {
    border-inline-end-color: #2f9b55;
}

.orders-table .order-row.status-cancelled td {
    background: #f9d9d6 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    border-bottom-color: rgba(216, 94, 84, 0.32);
}

.orders-table .order-row.status-cancelled td:first-child {
    border-inline-end-color: #d75d54;
}

.orders-table tbody tr:hover td {
    background: inherit;
}

.orders-table .order-row.status-pending:hover td {
    background: #fff1c2 !important;
}

.orders-table .order-row.status-preparing:hover td {
    background: #eadcff !important;
}

.orders-table .order-row.status-with-courier:hover td {
    background: #dcecff !important;
}

.orders-table .order-row.status-served:hover td,
.orders-table .order-row.status-settled:hover td {
    background: #dff5e4 !important;
}

.orders-table .order-row.status-cancelled:hover td {
    background: #f9d9d6 !important;
}

.orders-table .order-row.status-pending .status-form {
    background: rgba(255, 244, 207, 0.96);
}

.orders-table .order-row.status-preparing .status-form {
    background: rgba(239, 227, 255, 0.96);
}

.orders-table .order-row.status-with-courier .status-form {
    background: rgba(225, 239, 255, 0.96);
}

.orders-table .order-row.status-served .status-form,
.orders-table .order-row.status-settled .status-form {
    background: rgba(227, 247, 233, 0.96);
}

.orders-table .order-row.status-cancelled .status-form {
    background: rgba(252, 226, 224, 0.96);
}

.waiter-order-card {
    position: relative;
    overflow: hidden;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(230, 221, 210, 0.88);
}

.waiter-order-card.status-pending {
    background: linear-gradient(180deg, #fff6e6 0%, #fffdfa 100%);
    border-color: rgba(231, 176, 67, 0.38);
}

.waiter-order-card.status-preparing {
    background: linear-gradient(180deg, #f3edff 0%, #fffdfa 100%);
    border-color: rgba(132, 103, 228, 0.28);
}

.waiter-order-card.status-with-courier {
    background: linear-gradient(180deg, #eef6ff 0%, #fffdfa 100%);
    border-color: rgba(87, 145, 212, 0.28);
}

.waiter-order-card.status-served {
    background: linear-gradient(180deg, #edf8f1 0%, #fffdfa 100%);
    border-color: rgba(52, 169, 101, 0.26);
}

.waiter-order-card.status-settled {
    background: linear-gradient(180deg, #ebfaf7 0%, #fffdfa 100%);
    border-color: rgba(69, 190, 176, 0.28);
}

.waiter-order-card.status-cancelled {
    background: linear-gradient(180deg, #fdeeed 0%, #fffdfa 100%);
    border-color: rgba(216, 94, 84, 0.28);
}

.waiter-order-card.status-pending .waiter-order-meta {
    color: #9b6213;
}

.waiter-order-card.status-preparing .waiter-order-meta {
    color: #6a4fc9;
}

.waiter-order-card.status-with-courier .waiter-order-meta {
    color: #2f6fae;
}

.waiter-order-card.status-served .waiter-order-meta {
    color: #1f7a45;
}

.waiter-order-card.status-settled .waiter-order-meta {
    color: #2b8f82;
}

.waiter-order-card.status-cancelled .waiter-order-meta {
    color: #a43830;
}

.status-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 16px;
    background: #f8f3eb;
}

.status-form select {
    min-width: 150px;
}

.orders-status-cell {
    white-space: normal;
}

.order-status-form {
    align-items: stretch;
}

.order-preparation-field {
    display: none;
    flex: 1 1 180px;
}

.order-preparation-field.is-active {
    display: block;
}

.order-courier-fields {
    display: none;
    gap: 8px;
    width: 100%;
    flex: 1 1 100%;
}

.order-courier-fields.is-active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-preparation-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.order-preparation-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3eadc;
    color: #6d533b;
    font-size: 12px;
    line-height: 1.6;
}

.order-preparation-summary.is-live span {
    background: #efe8fb;
    color: #5a4798;
}

.order-preparation-summary.is-courier span {
    background: #e8f2fc;
    color: #2b5f96;
}

.table-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.table-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    padding: 20px;
    display: grid;
    gap: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.table-card h3 {
    margin: 0;
    text-align: center;
}

.table-card-number {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 24px;
    background: linear-gradient(135deg, #f3e6d4, #fff8ef);
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(139, 94, 52, 0.08);
}

.table-card-caption {
    margin: 0;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 1024px) {
    .site-tools-grid,
    .content-grid,
    .admin-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats-compact {
        grid-template-columns: 1fr;
    }

    .sales-chart-summary {
        grid-template-columns: 1fr;
    }

    .sales-range-switcher {
        justify-content: flex-start;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        max-width: none;
        flex: none;
    }

    .admin-shell.admin-layout {
        width: min(100% - 20px, 1280px);
    }

    .admin-content {
        width: 100%;
    }

    .dashboard-stats-compact {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }

    .admin-nav {
        backdrop-filter: none;
    }
}

@media (max-width: 768px) {
    .page-shell,
    .admin-shell {
        width: min(100% - 20px, 1200px);
        padding: 16px 0 96px;
    }

    .admin-shell.admin-layout {
        padding-top: 16px;
    }

    .site-navbar {
        top: 8px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .toolbar-card,
    .info-card,
    .table-banner,
    .sticky-card,
    .subcategory-card,
    .admin-panel,
    .hero-card,
    .admin-header,
    .auth-card {
        border-radius: 18px;
        padding: 18px;
    }

    .hero-card,
    .table-banner,
    .menu-item,
    .site-footer,
    .status-form,
    .inline-actions,
    .admin-section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 8px;
    }

    .admin-header-title {
        flex: 1 1 auto;
        min-width: 0;
    }

    .admin-header h1 {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .admin-actions {
        gap: 4px;
    }

    .admin-actions .btn,
    .admin-actions .admin-user {
        width: 36px;
        min-width: 36px;
    }

    .admin-actions .btn,
    .admin-user {
        min-height: 36px;
    }

    .admin-icon-btn svg {
        width: 16px;
        height: 16px;
    }

    .hero-card {
        gap: 8px;
        margin-bottom: 8px;
        padding: 10px 12px;
    }

    .table-banner {
        gap: 10px;
        padding: 14px 16px;
    }

    .table-banner-copy {
        gap: 3px;
    }

    .table-banner-title {
        font-size: 14px;
    }

    .table-banner-text {
        font-size: 12.5px;
        line-height: 1.75;
    }

    .table-banner .badge {
        width: 100%;
        max-width: none;
        font-size: 12px;
        line-height: 1.65;
        padding: 10px 12px;
    }

    .table-banner-hint-badge {
        width: 100%;
    }

    .hero-card h1,
    .admin-header h1,
    .auth-card h1 {
        font-size: clamp(17px, 6vw, 22px);
        margin-top: 2px;
    }

    .hero-meta,
    .admin-actions {
        width: 100%;
    }

    .hero-meta {
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-tools-grid {
        gap: 12px;
        margin-top: 10px;
        margin-bottom: 14px;
    }

    .share-actions,
    .language-switcher,
    .theme-mode-group,
    .socials {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-inline: -2px;
        scrollbar-width: none;
    }

    .share-actions::-webkit-scrollbar,
    .language-switcher::-webkit-scrollbar,
    .theme-mode-group::-webkit-scrollbar,
    .socials::-webkit-scrollbar {
        display: none;
    }

    .share-actions > *,
    .language-switcher > *,
    .theme-mode-group > *,
    .socials > * {
        flex: 0 0 auto;
    }

    .theme-mode-btn,
    .lang-chip,
    .social-link {
        min-height: 44px;
    }

    .nav-popover {
        position: fixed;
        top: 64px;
        left: 10px;
        right: 10px;
        width: auto;
    }

    .content-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "cart"
            "menu";
        gap: 14px;
    }

    .cart-panel {
        position: relative;
        z-index: 2;
    }

    .sticky-card {
        padding: 18px;
    }

    .cart-form,
    .order-form {
        gap: 14px;
    }

    .category-block {
        box-shadow: var(--shadow-soft);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .category-toggle {
        padding: 12px 14px;
        align-items: center;
    }

    .category-content {
        padding: 0 14px 14px;
    }

    .subcategory-head {
        align-items: center;
        flex-direction: row;
        gap: 10px;
    }

    .subcategory-title {
        align-items: center;
        justify-content: flex-start;
    }

    .subcategory-title > div:last-child {
        flex: 1;
    }

    .admin-form {
        grid-template-columns: 1fr;
    }

    .waiter-order-form {
        grid-template-columns: 1fr;
    }

    .menu-actions {
        width: 100%;
        min-width: 0;
        justify-items: stretch;
    }

    .cart-controls {
        justify-items: stretch;
    }

    .cart-remove-btn {
        width: 100%;
    }

    .menu-item {
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-areas:
            "media copy"
            "actions actions";
        padding: 12px;
        gap: 10px;
    }

    .menu-copy,
    .menu-actions,
    .menu-actions form,
    .menu-actions .btn {
        width: 100%;
    }

    .menu-media {
        width: 84px;
        height: 84px;
    }

    .menu-items {
        grid-template-columns: 1fr;
    }

    .menu-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
    }

    .price {
        font-size: 18px;
    }

    .rating-summary,
    .rating-form {
        gap: 6px;
    }

    .star-btn {
        font-size: 24px;
        min-width: 28px;
    }

    .theme-color-picker {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-row,
    .total-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-row > div:first-child,
    .cart-controls {
        width: 100%;
    }

    .checkout-choice {
        padding: 12px 14px;
    }

    #delivery-map {
        height: 220px;
    }

    .mobile-cart-bar {
        position: fixed;
        right: 12px;
        left: 12px;
        bottom: 12px;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 18px;
        background: var(--primary);
        color: #fff;
        box-shadow: 0 16px 36px rgba(35, 24, 13, 0.22);
    }

    body[data-theme="dark"] .mobile-cart-bar {
        background: #3f2b21;
    }

    .admin-nav a::after {
        display: none;
    }

    .dashboard-summary-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .tracking-preparation-head,
    .tracking-preparation-grid {
        grid-template-columns: 1fr;
    }

    .tracking-preparation-head {
        flex-direction: column;
    }

    .admin-form {
        grid-template-columns: 1fr;
    }

    .sales-chart {
        grid-template-columns: repeat(var(--sales-chart-columns, 7), minmax(0, 1fr));
        padding-bottom: 6px;
        gap: 6px;
    }

    .sales-chart-shell {
        padding: 14px 12px 12px;
    }

    .sales-chart.chart-dense,
    .sales-chart.chart-ultra-dense {
        gap: 4px;
    }

    .sales-chart.chart-dense .sales-chart-item strong,
    .sales-chart.chart-ultra-dense .sales-chart-item strong {
        font-size: 9px;
    }

    .table-wrap {
        border-radius: 18px;
    }

    .order-preparation-field {
        width: 100%;
        flex-basis: 100%;
    }

    .order-courier-fields.is-active {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-shell,
    .admin-shell {
        width: min(100% - 16px, 1200px);
        padding-top: 12px;
    }

    .site-navbar {
        gap: 10px;
        padding: 9px 10px;
    }

    .toolbar-card,
    .info-card,
    .table-banner,
    .sticky-card,
    .subcategory-card,
    .hero-card {
        padding: 16px;
    }

    .hero-card::after,
    .admin-header::after {
        width: 120px;
        height: 120px;
    }

    .eyebrow {
        font-size: 10px;
        padding: 5px 8px;
    }

    .navbar-brand strong {
        font-size: 14px;
    }

    .nav-icon-btn {
        width: 40px;
        height: 40px;
    }

    .meta-chip,
    .badge,
    .info-item {
        padding: 12px 14px;
    }

    .delivery-map-head {
        flex-direction: column;
    }

    .section-title h2,
    .subcategory-head h3 {
        font-size: 18px;
    }

    .category-thumb {
        width: 58px;
        height: 58px;
    }

    .subcategory-thumb {
        width: 46px;
        height: 46px;
    }


    .category-count,
    .rating-summary,
    .rating-label,
    .helper-note,
    label span {
        font-size: 12px;
    }

    input[type="text"],
    input[type="number"],
    input[type="password"],
    input[type="url"],
    textarea,
    select,
    .btn {
        font-size: 15px;
    }

    .mobile-cart-bar {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 13px 14px;
    }
}

@media (max-width: 768px) {
/* Reference-inspired mobile cafe UI */
.site-body {
    background:
        radial-gradient(circle at 50% 0, rgba(var(--primary-rgb) / 0.22), transparent 20%),
        linear-gradient(180deg, var(--bg) 0%, var(--surface-soft) 100%);
}

.page-shell {
    width: min(100%, 430px);
    min-height: 100vh;
    padding: 18px 14px 140px;
}

.hero-shell {
    margin-bottom: 0;
    border-radius: 28px;
    /* Let mobile header popovers extend beyond the shell. */
    overflow: visible;
    background:
        radial-gradient(circle at 28% 12%, rgba(var(--primary-rgb) / 0.18), transparent 36%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    border: 0;
    box-shadow: none;
}

.site-navbar {
    margin-bottom: 0;
    padding: 14px 16px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: relative;
    top: 0;
    backdrop-filter: none;
}

.navbar-brand {
    gap: 8px;
}

.eyebrow {
    display: none;
}

.navbar-brand strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.34);
    border: 0;
    box-shadow: none;
    color: #51321d;
}

.nav-popover {
    top: calc(100% + 8px);
    border-radius: 20px;
}

.hero-card {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    box-shadow: 0 10px 24px rgba(35, 24, 13, 0.08);
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(10px);
    color: #24160d;
}

.hero-card::after {
    display: none;
}

.hero-card h1 {
    font-size: clamp(22px, 3.2vw, 30px);
    text-align: center;
    margin: 2px 0 6px;
    color: #2a1a10;
    line-height: 1.4;
}

.hero-card p {
    text-align: center;
    font-size: 13px;
    line-height: 1.75;
    color: rgba(46, 30, 19, 0.76);
    max-width: 42ch;
    margin-inline: auto;
}

.hero-card > div:first-child {
    width: 100%;
    max-width: 100%;
    display: grid;
    justify-items: center;
    align-content: start;
    min-width: 0;
}

.hero-meta {
    margin-top: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    width: 100%;
    align-content: start;
}

.meta-chip,
.badge {
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 68px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.28);
    border: 0;
    color: var(--text);
    box-shadow: none;
}

.meta-chip {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: right;
    min-height: auto;
    position: relative;
    overflow: hidden;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.56);
    border: 1px solid rgba(255, 253, 248, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    border-inline-start: 4px solid rgba(var(--primary-rgb) / 0.34);
}

.meta-chip-label {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.meta-chip-inline {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-chip-contact {
    gap: 8px;
}

.meta-chip-line {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
    width: 100%;
    min-width: 0;
}

.meta-chip-value {
    width: 100%;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
}

.meta-chip-contact .meta-chip-label {
    white-space: nowrap;
}

.meta-chip-contact .meta-chip-value {
    width: auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.meta-chip-contact .meta-chip-line:last-child .meta-chip-value {
    white-space: nowrap;
}

.meta-chip strong,
.badge strong {
    font-size: 12px;
}

.meta-chip span,
.badge span {
    font-size: 11px;
}

.table-banner {
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 0;
}

.table-banner-copy {
    gap: 5px;
}

.table-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.table-banner-reset-form {
    margin: 0;
}

.table-banner-reset-btn {
    min-height: auto;
    padding: 10px 14px;
    border-radius: 16px;
    white-space: nowrap;
}

.table-banner-title {
    font-size: 14px;
}

.table-banner-text {
    font-size: 12.5px;
    line-height: 1.75;
}

.table-banner .badge {
    min-height: auto;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 12px;
}

.order-step-bar {
    margin-top: 12px;
    margin-bottom: 12px;
}

.step-chip {
    border: 0;
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.92);
}

.step-chip.active {
    background: var(--primary-dark);
}

.step-chip-number {
    background: rgba(var(--primary-rgb) / 0.18);
    color: var(--text);
}

.step-chip.active .step-chip-number {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.content-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
        "menu"
        "cart";
    gap: 14px;
}

.menu-panel {
    gap: 12px;
}

.category-block,
.sticky-card,
.subcategory-card,
.site-footer {
    border: 0;
    box-shadow: 0 14px 32px rgba(35, 24, 13, 0.08);
}

.category-block {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
}

.category-toggle {
    padding: 12px 14px;
}

.category-thumb {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 0;
}

.category-summary h2 {
    font-size: 17px;
}

.subcategory-browser {
    gap: 10px;
    padding: 0 12px 12px;
}

.subcategory-card {
    min-width: 0;
    border-radius: 20px;
    padding: 12px;
    background: #f8f6f2;
}

.subcategory-thumb {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 0;
}

.menu-items {
    grid-template-columns: 1fr;
    gap: 10px;
}

.menu-item {
    grid-template-columns: 74px minmax(0, 1fr);
    grid-template-areas:
        "media copy"
        "actions actions";
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    border: 0;
    box-shadow: none;
    background: var(--surface);
}

.menu-media {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    border: 0;
}

.menu-copy h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.menu-copy p {
    font-size: 12px;
    line-height: 1.55;
}

.item-label {
    border-radius: 10px;
    background: rgba(var(--primary-rgb) / 0.18);
    color: var(--text);
}

.rating-summary,
.rating-form {
    margin-top: 6px;
}

.star-btn {
    font-size: 18px;
}

.menu-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 102px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--surface);
    font-size: 14px;
    font-weight: 800;
}

.btn {
    min-height: 40px;
    border-radius: 14px;
    box-shadow: none;
}

.btn-primary {
    background: #5b4437;
    color: #fff;
}

.btn-light {
    background: #ece7e0;
}

.sticky-card {
    position: static;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.cart-row {
    padding: 12px 0;
}

.cart-controls {
    grid-template-columns: 88px 1fr auto;
    align-items: center;
}

.total-box {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 0;
    background: #f6efe4;
}

.checkout-choice,
.delivery-map-block {
    border-radius: 18px;
    border: 0;
    background: #f6f2ec;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="url"],
textarea,
select {
    border-radius: 16px;
    border: 0;
    background: #f3efe8;
    padding: 12px 14px;
}

.site-footer {
    margin-top: 140px;
    padding-top: 12px;
    border-top: 0;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 14px;
}

.site-footer h3 {
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

.social-link {
    background: #f5f0e9;
    border: 0;
    box-shadow: none;
}

.mobile-cart-bar {
    left: 50%;
    right: auto;
    bottom: 84px;
    transform: translateX(-50%);
    width: min(calc(100% - 28px), 402px);
    border-radius: 999px;
    background: var(--primary);
    color: var(--surface);
    box-shadow: 0 18px 34px rgba(var(--text-rgb) / 0.22);
}

.bottom-app-nav {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(calc(100% - 28px), 402px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 26px;
    background: linear-gradient(180deg, #FFFDF8 0%, #F5E9DA 100%);
    border: 1px solid rgba(245, 233, 218, 0.95);
    box-shadow: 0 18px 45px rgba(47, 79, 58, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    z-index: 40;
}

.bottom-app-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.credit-toast {
        display: block;
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    width: min(calc(100% - 28px), 402px);
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.95);
    border: 1px solid rgba(245, 233, 218, 0.95);
    box-shadow: 0 14px 30px rgba(47, 79, 58, 0.12);
    color: #2F4F3A;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
    z-index: 41;
    animation: creditToastIn 220ms ease both;
}

@keyframes creditToastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

body[data-theme="dark"] .credit-toast {
    background: rgba(47, 79, 58, 0.92);
    border-color: rgba(255, 253, 248, 0.12);
    color: #FFFDF8;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.bottom-nav-item {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 6px 4px;
    border-radius: 16px;
    color: rgba(122, 92, 69, 0.82);
    font-size: 11px;
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.bottom-nav-item.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.bottom-nav-item:active {
    transform: translateY(1px);
}

.bottom-nav-button {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.waiter-call-btn {
    color: #5E7C60;
}

.waiter-call-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.waiter-call-sheet {
    position: fixed;
    left: 50%;
        top: auto;
    bottom: 92px;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 406px);
    padding: 16px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb) / 0.18), transparent 42%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.99) 0%, rgba(245, 233, 218, 0.98) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(16px);
    z-index: 45;
}

.waiter-call-sheet-form {
    display: grid;
    gap: 14px;
}

.waiter-call-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.waiter-call-sheet-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.waiter-call-sheet-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(var(--primary-rgb) / 0.24) 0%, rgba(var(--text-rgb) / 0.1) 100%);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.waiter-call-sheet-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.waiter-call-sheet-head strong {
    display: block;
    font-size: 16px;
    color: var(--text);
}

.waiter-call-sheet-kicker {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.waiter-call-sheet-text {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.9;
}

.fried-platter-options {
    display: grid;
    gap: 10px;
}

.waiter-call-sheet-field {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(230, 221, 210, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.waiter-call-sheet-field span {
    color: #8b5e34;
    font-size: 11px;
    font-weight: 800;
}

.waiter-call-sheet-field select {
    background: #fff;
    border-color: rgba(222, 208, 191, 0.95);
    box-shadow: 0 10px 22px rgba(35, 24, 13, 0.06);
}

.waiter-call-close-btn {
    border-radius: 999px;
    padding-inline: 14px;
    min-height: 38px;
}

.waiter-call-close-btn:hover {
    transform: translateY(-1px);
}

body[data-theme="dark"] .waiter-call-sheet {
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb) / 0.14), transparent 42%),
        linear-gradient(180deg, var(--surface) 0%, rgba(var(--primary-rgb) / 0.12) 100%);
    border-color: var(--border);
}

body[data-theme="dark"] .waiter-call-sheet-icon {
    background: linear-gradient(180deg, rgba(var(--primary-rgb) / 0.22) 0%, rgba(var(--text-rgb) / 0.1) 100%);
    color: var(--primary-dark);
}

body[data-theme="dark"] .waiter-call-sheet-head strong {
    color: var(--text);
}

body[data-theme="dark"] .waiter-call-sheet-kicker {
    color: var(--muted);
}

body[data-theme="dark"] .waiter-call-sheet-field {
    background: rgba(47 79 58 / 0.72);
    border-color: var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .waiter-call-sheet-field span {
    color: #f0c084;
}

body[data-theme="dark"] .waiter-call-sheet-field select {
    background: rgba(47 79 58 / 0.72);
    border-color: var(--border);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--text);
    background: linear-gradient(180deg, rgba(var(--primary-rgb) / 0.22) 0%, rgba(var(--primary-rgb) / 0.1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bottom-nav-item:focus-visible {
    outline: 2px solid rgba(var(--primary-rgb) / 0.55);
    outline-offset: 2px;
}

body[data-theme="dark"] .hero-shell,
body[data-theme="dark"] .hero-card {
    background:
        radial-gradient(circle at 28% 12%, rgba(var(--primary-rgb) / 0.18), transparent 36%),
        linear-gradient(180deg, var(--surface) 0%, rgba(var(--primary-rgb) / 0.12) 100%);
}

body[data-theme="dark"] .hero-card {
    color: var(--text);
    background: rgba(47 79 58 / 0.82);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .hero-card h1 {
    color: var(--text);
}

body[data-theme="dark"] .hero-card p {
    color: var(--muted);
}

body[data-theme="dark"] .navbar-working-hours {
    color: var(--muted);
}

body[data-theme="dark"] .hero-meta .meta-chip {
    background: var(--surface-soft);
    border-color: var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border-inline-start-color: rgba(var(--primary-rgb) / 0.42);
}

body[data-theme="dark"] .hero-meta .meta-chip-label {
    color: var(--muted);
}

body[data-theme="dark"] .hero-meta .meta-chip-value {
    color: #fff7ef;
}

body[data-theme="dark"] .category-block,
body[data-theme="dark"] .sticky-card,
body[data-theme="dark"] .subcategory-card,
body[data-theme="dark"] .site-footer,
body[data-theme="dark"] .bottom-app-nav,
body[data-theme="dark"] .waiter-call-sheet {
    background: #221b16;
}

body[data-theme="dark"] .bottom-app-nav {
    background: linear-gradient(180deg, rgba(47, 79, 58, 0.96) 0%, rgba(47, 79, 58, 0.86) 100%);
    border-color: rgba(255, 253, 248, 0.08);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .bottom-app-nav::before {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .bottom-nav-item.active,
body[data-theme="dark"] .bottom-nav-item:hover {
    color: #FFFDF8;
    background: linear-gradient(180deg, rgba(94, 124, 96, 0.26) 0%, rgba(94, 124, 96, 0.14) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .menu-item,
body[data-theme="dark"] .table-banner,
body[data-theme="dark"] .social-link,
body[data-theme="dark"] .total-box,
body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="number"],
body[data-theme="dark"] input[type="password"],
body[data-theme="dark"] input[type="url"],
body[data-theme="dark"] textarea,
body[data-theme="dark"] select,
body[data-theme="dark"] .checkout-choice,
body[data-theme="dark"] .delivery-map-block {
    background: var(--surface);
}

body[data-theme="dark"] .table-banner {
    background:
        radial-gradient(circle at top left, rgba(var(--primary-rgb) / 0.12), transparent 34%),
        linear-gradient(180deg, var(--surface) 0%, rgba(var(--primary-rgb) / 0.1) 100%);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

body[data-theme="dark"] .table-banner-empty-tag {
    background: rgba(var(--primary-rgb) / 0.14);
    color: var(--primary-dark);
}

body[data-theme="dark"] .table-banner-countdown {
    background: linear-gradient(180deg, rgba(var(--primary-rgb) / 0.14) 0%, rgba(var(--text-rgb) / 0.18) 100%);
    color: var(--primary-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .table-banner-empty-card {
    background: rgba(47 79 58 / 0.74);
    border-color: var(--border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 12px 28px rgba(0, 0, 0, 0.12);
}

body[data-theme="dark"] .table-banner-inline-note {
    background: linear-gradient(180deg, rgba(47 79 58 / 0.82) 0%, rgba(47 79 58 / 0.72) 100%);
    border-color: var(--border);
    color: var(--text);
}

body[data-theme="dark"] .table-banner-hint-badge {
    background: linear-gradient(180deg, rgba(47 79 58 / 0.82) 0%, rgba(47 79 58 / 0.72) 100%);
    border-color: var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .order-table-field {
    background: linear-gradient(180deg, rgba(47 79 58 / 0.82) 0%, rgba(47 79 58 / 0.72) 100%);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .order-table-field span {
    color: var(--text);
}

body[data-theme="dark"] .order-table-field select {
    background: rgba(47 79 58 / 0.72);
    border-color: var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

body[data-theme="dark"] .mobile-cart-bar {
    background: var(--primary);
    color: var(--surface);
}

body[data-theme="dark"] a:hover {
    color: var(--primary-dark);
}

body[data-theme="dark"] .section-title h2,
body[data-theme="dark"] .subcategory-head h3,
body[data-theme="dark"] .menu-copy h4,
body[data-theme="dark"] .table-banner-title,
body[data-theme="dark"] .site-footer h3,
body[data-theme="dark"] .total-box strong,
body[data-theme="dark"] .cart-row strong,
body[data-theme="dark"] .info-item strong,
body[data-theme="dark"] .nav-popover strong,
body[data-theme="dark"] .navbar-brand strong {
    color: var(--text);
}

body[data-theme="dark"] .navbar-working-hours {
    background: rgba(47 79 58 / 0.86);
    border-color: rgba(var(--primary-rgb) / 0.24);
    color: var(--primary-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .table-banner-text,
body[data-theme="dark"] .helper-note,
body[data-theme="dark"] .empty-state,
body[data-theme="dark"] .rating-summary,
body[data-theme="dark"] .rating-label,
body[data-theme="dark"] label span,
body[data-theme="dark"] .delivery-map-head span,
body[data-theme="dark"] .flash-helper,
body[data-theme="dark"] .info-item span,
body[data-theme="dark"] .category-count,
body[data-theme="dark"] .bottom-nav-item,
body[data-theme="dark"] .site-footer {
    color: var(--muted);
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
    color: rgba(245 233 218 / 0.52);
}

body[data-theme="dark"] .price,
body[data-theme="dark"] .cart-badge,
body[data-theme="dark"] .tracking-link-box strong,
body[data-theme="dark"] .tracking-code-box strong {
    color: var(--primary-dark);
}

body[data-theme="dark"] .item-label {
    background: rgba(var(--primary-rgb) / 0.14);
    color: var(--primary-dark);
}

body[data-theme="dark"] .step-chip {
    background: rgba(47 79 58 / 0.55);
    color: var(--text);
    border-color: var(--border);
    box-shadow: none;
}

body[data-theme="dark"] .step-chip:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .step-chip-number {
    background: rgba(var(--primary-rgb) / 0.14);
    color: var(--primary-dark);
}

body[data-theme="dark"] .social-link,
body[data-theme="dark"] .btn-light {
    color: var(--text);
}

body[data-theme="dark"] .btn-light:hover {
    background: rgba(47 79 58 / 0.72);
}

body[data-theme="dark"] .alert-success {
    background: #173526;
    color: #ddf5e6;
    border-color: #2c6047;
}

body[data-theme="dark"] .alert-error {
    background: #3b2021;
    color: #ffe3e0;
    border-color: #7a4645;
}
}

@media (min-width: 769px) {
    .page-shell {
        padding-top: 24px;
    }
}

@media (min-width: 1025px) {
    .page-shell {
        width: min(1380px, calc(100% - 56px));
        padding: 32px 0 72px;
    }

    .hero-shell {
        display: grid;
        gap: 18px;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 32px;
        background:
            radial-gradient(circle at top right, rgba(var(--primary-rgb) / 0.16), transparent 24%),
            linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(245, 233, 218, 0.96) 100%);
        border: 1px solid rgba(230, 221, 210, 0.92);
        box-shadow: 0 26px 54px rgba(47, 79, 58, 0.1);
    }

    .site-navbar {
        margin-bottom: 0;
        padding: 14px 16px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.72);
    }

    .navbar-brand {
        gap: 4px;
    }

    .navbar-brand strong {
        font-size: 17px;
    }

    .navbar-working-hours {
        font-size: 11px;
        padding: 4px 12px;
    }

    .navbar-actions {
        gap: 10px;
    }

    .hero-card {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, 360px);
        align-items: stretch;
        gap: 24px;
        padding: 24px 28px;
        margin-bottom: 0;
        border-radius: 28px;
        background:
            radial-gradient(circle at top left, rgba(var(--primary-rgb) / 0.12), transparent 30%),
            linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(245, 233, 218, 0.98) 100%);
    }

    .hero-card > div:first-child {
        display: grid;
        align-content: center;
    }

    .hero-card h1 {
        margin: 0 0 10px;
        font-size: clamp(28px, 2.7vw, 38px);
        line-height: 1.25;
    }

    .hero-card p {
        max-width: 54ch;
        font-size: 14px;
        line-height: 1.85;
    }

    .hero-socials {
        justify-content: flex-start;
        margin-inline: 0;
        margin-top: 18px;
    }

    .hero-social-link {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .hero-meta {
        width: 100%;
        min-width: 0;
        max-width: none;
        align-self: stretch;
    }

    .meta-chip.meta-chip-contact {
        justify-content: center;
        min-height: 100%;
        padding: 18px 20px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.56);
        border: 1px solid rgba(255, 255, 255, 0.42);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
    }

    .meta-chip-line {
        column-gap: 12px;
    }

    .meta-chip-label {
        font-size: 11.5px;
    }

    .meta-chip-value {
        font-size: 14px;
        line-height: 1.9;
    }

    .table-banner {
        padding: 22px 26px;
        border-radius: 26px;
        margin-bottom: 20px;
    }

    .table-banner-title {
        font-size: 16px;
    }

    .table-banner-text {
        font-size: 13.5px;
    }

    .order-step-bar {
        margin-bottom: 18px;
    }

    .step-switcher {
        max-width: 620px;
        margin-inline: auto;
        gap: 8px;
    }

    .step-switcher .step-chip,
    .step-switcher .step-continue-btn {
        min-height: 44px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(340px, 400px);
        gap: 28px;
        align-items: start;
    }

    .menu-panel {
        gap: 22px;
    }

    .sticky-card {
        top: 20px;
        padding: 26px;
        border-radius: 26px;
    }

    .category-toggle {
        padding: 16px 18px;
    }

    .category-thumb {
        width: 78px;
        height: 78px;
    }

    .category-summary h2 {
        font-size: 20px;
    }

    .subcategory-card {
        padding: 18px;
        border-radius: 24px;
    }

    .menu-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .menu-item {
        min-height: 100%;
        padding: 14px;
        border-radius: 22px;
    }

    .menu-copy h4 {
        font-size: 16px;
    }

    .menu-copy p {
        font-size: 13px;
        line-height: 1.75;
    }
}

@media (max-width: 768px) {
    .page-shell {
        width: min(100%, 430px);
        padding: 14px 12px 138px;
    }

    .hero-shell {
        border-radius: 28px;
    }

    .tracking-hero {
        display: grid;
    }

    .site-navbar {
        top: 0;
        padding: 12px 14px;
        margin-bottom: 0;
    }

    .hero-card,
    .table-banner,
    .sticky-card,
    .subcategory-card,
    .site-footer {
        padding: 14px;
    }

    .hero-card {
        gap: 10px;
        border-radius: 18px;
    }

    .step-switcher {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 4px;
    }

    .step-switcher .step-chip {
        min-width: 0;
        padding-inline: 8px;
    }

    .step-switcher .step-continue-btn {
        margin-inline: 0;
        padding-inline: 8px;
        font-size: 11px;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        width: 100%;
        min-width: 0;
    }

    .table-banner {
        padding: 12px;
        gap: 8px;
    }

    .table-banner-copy {
        gap: 4px;
    }

    .table-banner-actions {
        justify-content: flex-start;
    }

    .table-banner-reset-form {
        width: 100%;
    }

    .table-banner-reset-btn {
        width: 100%;
    }

    .table-banner-text {
        font-size: 12px;
        line-height: 1.7;
    }

    .table-banner-title {
        font-size: 13px;
    }

    .table-banner .badge {
        font-size: 11px;
        line-height: 1.6;
    }

    .content-grid {
        gap: 12px;
    }

    .subcategory-browser {
        gap: 10px;
    }

    .subcategory-tab-list {
        gap: 7px;
    }

    .subcategory-tab {
        padding: 8px 12px;
        min-height: 38px;
        font-size: 12.5px;
    }

    .mobile-cart-bar {
        width: min(calc(100% - 24px), 406px);
        bottom: 82px;
    }

    .bottom-app-nav {
        width: min(calc(100% - 24px), 406px);
        bottom: 10px;
    }

    .credit-toast {
        width: min(calc(100% - 24px), 406px);
        bottom: 84px;
    }

    .waiter-call-sheet {
        width: min(calc(100% - 24px), 406px);
        bottom: 82px;
    }

    .hero-card {
        gap: 12px;
        padding: 12px 14px 16px;
    }

    .hero-card h1 {
        font-size: clamp(22px, 7vw, 28px);
        line-height: 1.35;
    }

    .hero-card p {
        font-size: 12.5px;
        line-height: 1.7;
        max-width: 32ch;
        margin-inline: auto;
    }

    .meta-chip {
        min-height: 64px;
        padding: 12px;
    }

    .meta-chip-label {
        font-size: 11px;
    }

    .meta-chip-value {
        font-size: 11px;
        line-height: 1.55;
    }

    .meta-chip-address .meta-chip-value {
        font-size: 10.5px;
    }
}

@media (max-width: 560px) {
    .hero-card {
        padding: 11px 13px 15px;
    }

    .hero-card h1 {
        font-size: clamp(20px, 7.2vw, 25px);
    }

    .hero-card p {
        max-width: 28ch;
        font-size: 12px;
    }

    .hero-socials {
        justify-content: center;
        margin-top: 10px;
    }

    .hero-social-link {
        width: 36px;
        height: 36px;
    }

    .hero-meta {
        display: flex;
        flex-direction: row;
        gap: 7px;
        width: 100%;
    }

    .meta-chip {
        flex: 1 1 0;
        min-width: 0;
        gap: 7px;
    }

    .subcategory-browser {
        padding: 0 10px 10px;
    }

    .subcategory-tab-list {
        gap: 6px;
    }

    .subcategory-tab {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .meta-chip {
        min-height: auto;
        padding: 10px 12px;
    }

    .meta-chip-label {
        font-size: 10.5px;
    }

    .meta-chip-line {
        gap: 5px;
    }

    .meta-chip-contact .meta-chip-label {
        white-space: nowrap;
    }

    .meta-chip-contact .meta-chip-value {
        white-space: normal;
    }

    .meta-chip-contact .meta-chip-line:last-child .meta-chip-label,
    .meta-chip-contact .meta-chip-line:last-child .meta-chip-value {
        font-size: 10px;
        white-space: nowrap;
    }

    .meta-chip-value,
    .meta-chip-address .meta-chip-value {
        font-size: 11px;
        line-height: 1.7;
    }
}

@media (max-width: 400px) {
    .hero-card {
        padding: 10px 12px 14px;
    }

    .hero-card h1 {
        font-size: 19px;
    }

    .hero-card p {
        font-size: 11.5px;
        max-width: 26ch;
    }

    .meta-chip {
        padding: 9px 10px;
    }

    .meta-chip-value,
    .meta-chip-address .meta-chip-value {
        font-size: 10px;
    }
}
