:root {
    --theme: #2563eb;
    --theme-dark: #1d4ed8;
    --ink: #111827;
    --muted: #667085;
    --line: #e6eaf0;
    --surface: #ffffff;
    --soft: #f6f8fb;
    --panel: #172033;
    --radius: 12px;
    --shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--soft);
}

a {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    display: block;
    padding: 28px 0 42px;
    color: white;
    background:
        linear-gradient(90deg, rgba(12, 18, 32, .93), rgba(12, 18, 32, .70)),
        url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.home-hero-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.home-hero-header .logo-mark {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.home-hero-header h1 {
    margin: 4px 0 6px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .98;
}

.home-hero-header p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.55;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(320px, 1fr);
    gap: 36px;
    align-items: start;
}

.hero-card {
    width: 100%;
}

.hero-side {
    display: grid;
    gap: 16px;
}

.hero-media {
    min-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.38)),
        var(--hero-media, url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1200&q=80")) center / cover;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
}

.home-side-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.side-link-item {
    min-height: 86px;
    padding: 13px 14px;
}

.side-link-item strong {
    font-size: 15px;
}

.side-link-item .home-link-chevron {
    font-size: 24px;
}

.home-action-copy {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.home-action-copy strong {
    font-size: 22px;
}

.home-action-copy span {
    color: rgba(255, 255, 255, .72);
    line-height: 1.55;
}

.logo-mark {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 18px;
    background: white;
    color: var(--theme);
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.eyebrow {
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}

.hero p {
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.danger-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
}

.primary-btn {
    background: var(--theme);
    color: white;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

.ghost-btn {
    background: white;
    color: var(--ink);
}

.danger-btn {
    background: #dc2626;
    color: white;
}

.link-list {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(12px);
}

.link-item:hover {
    background: rgba(255, 255, 255, .16);
}

.home-link-list {
    gap: 13px;
}

.home-link-item {
    min-height: 76px;
    justify-content: flex-start;
    padding: 14px 18px;
    border-color: rgba(255, 255, 255, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
}

.home-link-item strong {
    flex: 1;
    font-size: 17px;
}

.home-link-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: rgba(255, 255, 255, .16);
}

.home-link-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-link-chevron {
    color: rgba(255, 255, 255, .66);
    font-size: 30px;
    line-height: 1;
}

.home-link-item.tone-info .home-link-icon { background: rgba(59, 130, 246, .34); color: #93c5fd; }
.home-link-item.tone-map .home-link-icon { background: rgba(239, 68, 68, .32); color: #fca5a5; }
.home-link-item.tone-whatsapp .home-link-icon { background: rgba(22, 163, 74, .34); color: #86efac; }
.home-link-item.tone-instagram .home-link-icon { background: rgba(219, 39, 119, .34); color: #f9a8d4; }
.home-link-item.tone-facebook .home-link-icon { background: rgba(37, 99, 235, .34); color: #93c5fd; }
.home-link-item.tone-menu .home-link-icon { background: rgba(245, 158, 11, .30); color: #fde68a; }
.home-link-item.tone-feedback .home-link-icon { background: rgba(16, 185, 129, .30); color: #a7f3d0; }

.home-slider-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.home-slider-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .10), rgba(15, 23, 42, .78)),
        var(--slide-photo, linear-gradient(135deg, #2563eb, #16a34a)) center / cover;
    box-shadow: var(--shadow);
}

.home-slider-card strong {
    font-size: 20px;
}

.home-slider-card span {
    color: rgba(255,255,255,.82);
}

.menu-announcements {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.announcement-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #dbe6f3;
    border-left: 5px solid var(--theme);
    border-radius: 12px;
    background: #fff;
}

.announcement-card strong {
    color: #0f172a;
}

.announcement-card span {
    color: #475569;
}

.announcement-warning { border-left-color: #f59e0b; background: #fffbeb; }
.announcement-success { border-left-color: #16a34a; background: #f0fdf4; }

.favorite-btn {
    border: 1px solid #dbe6f3;
    background: #fff;
    color: #e11d48;
}

.favorite-btn.is-favorite {
    background: #fff1f2;
    border-color: #fecdd3;
}

.suggested-products {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.suggested-products > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.suggested-products button {
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.suggested-products img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.suggested-products span {
    font-weight: 800;
}

.detail-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.public-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.public-detail-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.public-page-top {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
}

.public-page-top-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.round-back-btn,
.public-info-card > span {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    border: 1px solid #dbe4ef;
    color: #2563eb;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.round-back-btn svg,
.public-info-card svg,
.public-hero-card svg,
.public-review-form button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-page-top span,
.public-hero-card .eyebrow {
    display: block;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.public-page-top strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 20px;
}

.public-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 36px;
}

.public-hero-card,
.public-info-card,
.public-review-card {
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.public-hero-card {
    padding: clamp(22px, 4vw, 34px);
}

.public-hero-card h1 {
    margin: 10px 0 12px;
    color: #0f172a;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1;
}

.public-hero-card p {
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.large-actions .primary-btn,
.large-actions .ghost-btn,
.public-review-form .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.public-card-grid,
.public-review-list {
    display: grid;
    gap: 12px;
}

.public-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.public-info-card strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.public-info-card a {
    display: inline-block;
    margin-top: 4px;
    color: #475569;
    font-weight: 800;
    text-decoration: none;
}

.public-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.public-review {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.reviews-detail-layout {
    grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
}

.public-review-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.compact-note {
    margin: 14px 0 0;
}

.public-review-list .section-row {
    margin-bottom: 2px;
}

.public-review-card {
    padding: 16px;
}

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

.review-card-head strong {
    color: #0f172a;
}

.review-card-head span {
    color: #eab308;
    font-weight: 900;
}

.public-review-card p {
    color: #475569;
    line-height: 1.65;
}

.public-review-card small {
    display: block;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #075985;
    background: #e0f2fe;
    font-weight: 800;
}

.wifi-card input[readonly] {
    background: #f8fafc;
    font-weight: 800;
}

.wifi-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 24px;
    align-items: start;
}

.wifi-qr-panel {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
}

.wifi-qr-panel img {
    width: min(100%, 320px);
    height: auto;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.wifi-qr-panel strong {
    color: #0f172a;
    font-size: 18px;
}

.wifi-qr-panel span {
    color: #64748b;
}

.review-admin-card p {
    margin: 10px 0 14px;
    color: #334155;
}
.home-link-item.tone-feedback .home-link-icon { background: rgba(20, 184, 166, .30); color: #99f6e4; }

.home-about-panel {
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    color: white;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(14px);
}

.home-about-panel span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}

.home-about-panel p {
    max-width: 880px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.feedback-header {
    position: sticky;
}

.brand {
    font-size: 22px;
    font-weight: 850;
    color: var(--theme);
    text-decoration: none;
}

.menu-hero {
    margin: 24px 0;
    padding: 28px;
    border-radius: 18px;
    color: white;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .92), rgba(22, 163, 74, .76)),
        url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1400&q=80") center / cover;
    box-shadow: var(--shadow);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    padding: 20px 0 110px;
}

.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body {
    padding: 16px;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.category-tile,
.product-card {
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.category-tile:hover,
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.tile-art,
.product-art {
    height: 150px;
    display: grid;
    place-items: center;
    background: var(--photo, linear-gradient(135deg, var(--theme), #16a34a)) center / cover;
    color: white;
    font-size: 34px;
}

.product-card {
    display: grid;
    grid-template-columns: 118px 1fr;
}

.product-art {
    height: 100%;
    min-height: 136px;
}

.price {
    color: var(--theme);
    font-weight: 850;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, .08);
}

.menu-app {
    min-height: 100vh;
    padding-bottom: 86px;
    background: #f4f6f9;
}

.menu-app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px max(18px, calc((100vw - 1120px) / 2));
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.menu-app-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.menu-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.menu-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.menu-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

.lang-switcher a {
    min-width: 38px;
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.lang-switcher a.active {
    color: white;
    background: var(--theme);
}

.qr-context-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: white;
    box-shadow: var(--shadow);
}

.qr-context-card strong,
.qr-context-card span {
    display: block;
}

.qr-context-card span,
.qr-context-card small {
    color: var(--muted);
}

.qr-context-card.is-table {
    border-color: rgba(22, 163, 74, .28);
}

.qr-context-card.no-table {
    border-color: rgba(245, 158, 11, .35);
}

.menu-app-main {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}

.icon-btn {
    position: relative;
    min-width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: white;
    background: var(--theme);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.icon-btn svg,
.menu-bottom-nav svg,
.mini-add svg,
.waiter-grid svg,
.menu-search svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn strong {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: white;
    font-size: 11px;
}

.icon-btn strong:empty {
    display: none;
}

.icon-btn.light {
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
}

.menu-cover {
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    margin: 18px 0 22px;
    padding: 28px;
    border-radius: 20px;
    color: white;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .08), rgba(15, 23, 42, .78)),
        var(--menu-cover, url("https://images.unsplash.com/photo-1543353071-10c8ba85a904?auto=format&fit=crop&w=1400&q=80")) center / cover;
    box-shadow: var(--shadow);
}

.menu-cover h1 {
    max-width: 680px;
    margin: 10px 0;
    font-size: clamp(34px, 8vw, 62px);
    line-height: 1;
}

.menu-cover p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.55;
}

.menu-section {
    margin: 26px 0;
}

.section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.section-row h2 {
    margin: 0;
}

.section-row span,
.section-row small {
    color: var(--muted);
}

.featured-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 330px);
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0 14px;
    scroll-snap-type: x mandatory;
}

.featured-strip.auto-scroll {
    overflow: hidden;
}

.featured-strip.auto-scroll .featured-menu-card {
    animation: featuredSlide var(--featured-speed, 28s) linear infinite;
}

.featured-strip.auto-scroll:hover .featured-menu-card {
    animation-play-state: paused;
}

@keyframes featuredSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-120%); }
}

.featured-menu-card {
    scroll-snap-align: start;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-menu-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.featured-menu-card > div {
    padding: 14px;
}

.featured-menu-card h3,
.menu-product-row h3 {
    margin: 0 0 6px;
}

.featured-menu-card p,
.menu-product-row p {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-foot strong {
    color: var(--theme);
    white-space: nowrap;
}

.mini-add {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: var(--theme);
    color: white;
    cursor: pointer;
}

.category-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.category-showcase-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 16px;
    border: 0;
    border-radius: 16px;
    color: white;
    overflow: hidden;
    position: relative;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    font: inherit;
}

.category-showcase-card span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .02), rgba(15, 23, 42, .78)),
        var(--cat-photo) center / cover;
    transition: transform .25s ease;
}

.category-showcase-card:hover span {
    transform: scale(1.04);
}

.category-showcase-card strong,
.category-showcase-card small {
    position: relative;
    z-index: 1;
}

.category-showcase-card strong {
    font-size: 20px;
}

.category-showcase-card small {
    color: rgba(255, 255, 255, .78);
}

.products-view {
    padding-top: 18px;
}

.products-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.products-head h1 {
    margin: 4px 0 0;
}

.menu-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
}

.menu-search input {
    width: 100%;
    border: 0;
    outline: 0;
    font: inherit;
}

.menu-product-list {
    display: grid;
    gap: 14px;
}

.menu-product-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
}

.menu-product-row img {
    width: 100%;
    height: 118px;
    border-radius: 12px;
    object-fit: cover;
}

.menu-bottom-nav {
    position: fixed;
    left: 12px;
    right: auto;
    bottom: 0;
    z-index: 30;
    width: calc(100vw - 24px);
    max-width: min(calc(100vw - 24px), 366px);
    display: flex;
    gap: 6px;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -16px 34px rgba(15, 23, 42, .10);
}

.menu-bottom-nav button {
    min-width: 0;
    width: auto;
    flex: 1 1 0;
    overflow: hidden;
    display: grid;
    gap: 4px;
    place-items: center;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    color: #475467;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
}

.menu-bottom-nav button:hover {
    color: white;
    background: linear-gradient(135deg, var(--theme), #16a34a);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.menu-bottom-nav button.active {
    color: white;
    background: linear-gradient(135deg, var(--theme), var(--theme-secondary));
    box-shadow: 0 10px 24px rgba(37, 99, 235, .20);
}

.nav-solid .menu-bottom-nav {
    background: #111827;
    border-top: 0;
}

.nav-solid .menu-bottom-nav button {
    color: white;
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}

.menu-bottom-nav span {
    font-size: 11px;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-sheet[hidden] {
    display: none;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, .56);
}

.cart-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 41;
    width: min(520px, 100%);
    max-height: 82vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 22px 22px 0 0;
    background: white;
    transform: translateX(-50%);
    box-shadow: 0 -22px 54px rgba(15, 23, 42, .25);
}

.cart-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cart-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.cart-line small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 18px;
}

.full-btn {
    width: 100%;
}

.empty-menu-state {
    padding: 26px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    background: white;
}

.filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
}

.filter-chip {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.active {
    color: white;
    background: var(--theme);
    border-color: var(--theme);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.product-tags span,
.product-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--theme);
    font-size: 12px;
    font-weight: 800;
}

.product-detail-panel {
    max-width: 620px;
}

.product-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.product-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
}

.detail-action {
    position: sticky;
    bottom: -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 18px -20px -20px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

.detail-action small {
    display: block;
    color: var(--muted);
}

.detail-action .old-price {
    margin: 3px 0 0;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 800;
}

.detail-action strong {
    color: var(--theme);
    font-size: 20px;
}

.product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.nutrition-box {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.nutrition-box div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nutrition-box span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: white;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.promotion-box {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding: 12px;
    border-radius: 14px;
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.promotion-box span {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: white;
    font-size: 12px;
    font-weight: 900;
}

.waiter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.waiter-grid button {
    min-height: 72px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    display: grid;
    place-items: center;
    gap: 8px;
}

.waiter-grid button:hover {
    color: white;
    border-color: var(--theme);
    background: linear-gradient(135deg, var(--theme), var(--theme-secondary));
}

.image-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.image-admin-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.image-admin-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.main-image-badge {
    display: inline-flex;
    justify-content: center;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: white;
    background: var(--theme);
    font-size: 12px;
}

.theme-preview {
    display: grid;
    gap: 12px;
    margin: 12px 0 18px;
    padding: 14px;
    border-radius: 16px;
    background: var(--preview-bg, #f4f6f9);
    color: var(--preview-text, #111827);
    border: 1px solid var(--line);
}

.theme-preview-hero {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--preview-theme, #2563eb), var(--preview-secondary, #16a34a));
}

.theme-preview-hero span {
    color: rgba(255,255,255,.78);
}

.theme-preview-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--preview-card, #fff);
    color: var(--preview-text, #111827);
}

.theme-preview-card span {
    color: var(--preview-muted, #667085);
}

.theme-preview-card button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    padding: 0 12px;
    color: white;
    background: var(--preview-theme, #2563eb);
    font-weight: 800;
}

.success-panel {
    text-align: center;
}

.success-mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 4px auto 14px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--theme), var(--theme-secondary));
    font-size: 38px;
    font-weight: 900;
}

.order-status-box {
    display: grid;
    gap: 6px;
    margin: 14px 0;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.order-status-box span {
    color: var(--theme);
    font-weight: 900;
}

.order-status-box[hidden] {
    display: none;
}

.form-page {
    min-height: 100vh;
    padding: 36px 0;
    background:
        linear-gradient(135deg, rgba(246, 248, 251, .95), rgba(230, 236, 245, .95)),
        url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1600&q=80") center / cover fixed;
}

.form-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 650;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    background: white;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid rgba(37, 99, 235, .14);
    border-color: var(--theme);
}

.admin-shell {
    display: grid;
    grid-template-columns: 278px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #182234, #111827);
    color: white;
    padding: 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.sidebar-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--theme);
    font-weight: 900;
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 18px;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, .58);
}

.menu-group {
    margin-top: 18px;
}

.menu-title {
    padding: 0 10px 7px;
    color: rgba(255, 255, 255, .44);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    margin: 4px 0;
    border-radius: 10px;
    color: rgba(255, 255, 255, .76);
    text-decoration: none;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, .10);
    color: white;
}

.sidebar-icon {
    width: 22px;
    text-align: center;
}

.admin-main {
    padding: 0;
}

.admin-topbar {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 26px;
    background: white;
    border-bottom: 1px solid var(--line);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.order-alert-badge {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #f8fafc;
    text-decoration: none;
    font-weight: 850;
}

.order-alert-badge.has-orders {
    color: white;
    border-color: #ef4444;
    background: #ef4444;
    box-shadow: 0 12px 24px rgba(239, 68, 68, .22);
}

.admin-toast {
    position: fixed;
    right: 24px;
    top: 88px;
    z-index: 3000;
    padding: 14px 18px;
    border-radius: 14px;
    color: white;
    background: #ef4444;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .24);
    font-weight: 850;
}

.admin-toast[hidden] {
    display: none;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 24px;
}

.admin-content {
    padding: 24px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel {
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.table th,
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: #f8fafc;
    color: #475467;
    font-size: 13px;
}

.table tr:last-child td {
    border-bottom: 0;
}

.row-pending td {
    background: #fff7ed;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 850;
    font-size: 12px;
}

.status-pending {
    color: #b45309;
    background: #fef3c7;
}

.status-preparing {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-completed {
    color: #047857;
    background: #d1fae5;
}

.status-ready {
    color: #0f766e;
    background: #ccfbf1;
}

.status-cancelled {
    color: #b91c1c;
    background: #fee2e2;
}

.status-in_progress {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-done {
    color: #047857;
    background: #d1fae5;
}

.call-type {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 850;
}

.call-bill {
    color: #047857;
    background: #d1fae5;
}

.call-cleaning {
    color: #0369a1;
    background: #e0f2fe;
}

.call-service {
    color: #b45309;
    background: #fef3c7;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.order-board {
    display: grid;
    gap: 14px;
}

.order-card {
    padding: 16px;
}

.order-card-head,
.order-card-foot,
.order-lines div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.order-card-head span,
.order-customer,
.order-customer span {
    color: var(--muted);
}

.order-customer {
    display: grid;
    gap: 4px;
    margin: 12px 0;
}

.order-lines {
    display: grid;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.order-card-foot {
    margin-top: 12px;
}

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

.report-card {
    padding: 18px;
}

.report-card h2 {
    margin: 0 0 14px;
}

.report-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.report-card div:last-child {
    border-bottom: 0;
}

.qr-print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.qr-print-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 420px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    text-align: center;
    box-shadow: var(--shadow);
}

.qr-print-card h2 {
    margin: 4px 0 0;
    font-size: 30px;
}

.qr-print-card p,
.qr-print-card small {
    margin: 0;
    color: var(--muted);
}

.qr-print-card small {
    word-break: break-all;
}

.qr-brand {
    font-weight: 900;
    color: var(--theme);
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (max-width: 960px) {
    .smart-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-body .order-board {
        grid-template-columns: 1fr;
    }

    .admin-body .order-card-foot {
        grid-template-columns: 1fr;
    }

    .category-editor-form,
    .category-editor-main {
        grid-template-columns: 1fr;
    }

    .admin-body .kitchen-kanban {
        grid-template-columns: 1fr;
    }

    .admin-body .report-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 1200px) {
    .category-editor-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .home-hero-header h1 {
        font-size: 38px;
    }

    .home-hero-header p {
        font-size: 16px;
    }

    .update-hero {
        grid-template-columns: 1fr;
    }

    .smart-form-grid,
    .upload-strip,
    .admin-body .order-card-foot .inline-form {
        grid-template-columns: 1fr;
    }

    .login-logo-link img {
        height: 68px;
    }
}

@media (max-width: 1200px) {
    .category-editor-form {
        grid-template-columns: 1fr !important;
    }
}

@media print {
    .sidebar,
    .admin-topbar,
    .toolbar,
    .admin-toast {
        display: none !important;
    }

    .admin-shell,
    .admin-main,
    .admin-content {
        display: block;
        padding: 0;
    }

    .qr-print-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12mm;
    }

    .qr-print-card {
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 14px;
}

.stat {
    padding: 20px;
}

.stat strong {
    color: var(--muted);
    font-size: 13px;
}

.stat h2 {
    margin: 8px 0 0;
    font-size: 32px;
}

@media (max-width: 860px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 260px;
    }

    .home-side-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wifi-layout {
        grid-template-columns: 1fr;
    }

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

    .sidebar {
        position: static;
        height: auto;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .product-card {
        grid-template-columns: 96px 1fr;
    }

    .menu-app-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu-head-actions {
        width: 100%;
        justify-content: space-between;
    }

    .qr-context-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .qr-context-card small {
        align-self: flex-start;
    }

    .menu-product-row {
        grid-template-columns: 96px 1fr;
        gap: 10px;
    }

    .menu-product-row img {
        height: 104px;
    }

    .card-foot,
    .order-card-foot,
    .order-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .inline-form,
    .actions-cell {
        width: 100%;
        flex-wrap: wrap;
    }

    .inline-form select,
    .inline-form button,
    .actions-cell a,
    .actions-cell button {
        flex: 1 1 140px;
    }
}

@media (max-width: 560px) {
    .home-side-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .menu-bottom-nav {
        width: calc(100% - 24px);
        max-width: 366px;
    }
}

/* Admin UX refresh */
.admin-body {
    --admin-bg: #eef2f7;
    --admin-sidebar: #111827;
    --admin-sidebar-soft: #1f2937;
    --admin-card: #ffffff;
    --admin-border: #d9e1ec;
    --admin-text: #111827;
    --admin-muted: #64748b;
    --admin-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    background:
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(238,242,247,.92)),
        var(--admin-bg);
}

.admin-body .admin-shell {
    grid-template-columns: 292px minmax(0, 1fr);
}

.admin-body .sidebar {
    padding: 16px 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
        var(--admin-sidebar);
    border-right: 1px solid rgba(255,255,255,.08);
}

.admin-body .sidebar-brand {
    min-height: 74px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
}

.admin-body .sidebar-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--theme), #0f766e);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
}

.admin-body .sidebar-brand h2 {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-body .sidebar-brand small {
    color: rgba(255,255,255,.62);
}

.admin-body .menu-group {
    margin-top: 14px;
}

.admin-body .menu-title {
    padding: 0 10px 8px;
    color: rgba(255,255,255,.42);
    letter-spacing: .06em;
}

.admin-body .sidebar a {
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.72);
    font-weight: 750;
}

.admin-body .sidebar a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.admin-body .sidebar a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(15,118,110,.92));
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.admin-body .sidebar-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 900;
}

.admin-body .sidebar-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-body .sidebar a.active .sidebar-icon {
    background: rgba(255,255,255,.18);
}

.admin-body .sidebar-shortcuts {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.admin-body .admin-main {
    min-width: 0;
}

.admin-body .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    min-height: 86px;
    padding: 14px 28px;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid var(--admin-border);
    backdrop-filter: blur(16px);
}

.admin-body .admin-kicker {
    display: inline-flex;
    margin-bottom: 4px;
    color: var(--theme);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-body .admin-topbar h1 {
    font-size: 26px;
    letter-spacing: 0;
}

.admin-body .admin-topbar small {
    color: var(--admin-muted);
}

.admin-body .admin-actions {
    justify-content: flex-end;
}

.admin-body .admin-content {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.admin-body .toolbar {
    min-height: 48px;
    margin-bottom: 18px;
}

.admin-body .toolbar h1 {
    margin: 0;
    font-size: 24px;
}

.admin-body .card,
.admin-body .table,
.admin-body .form-card,
.admin-body .report-card,
.admin-body .order-card,
.admin-body .qr-print-card {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-card);
    box-shadow: var(--admin-shadow);
}

.admin-body .card:not(.stat),
.admin-body .form-card,
.admin-body .report-card,
.admin-body .order-card,
.admin-body .dashboard-panel,
.admin-body .table {
    color: var(--admin-text);
}

.admin-body .card:not(.stat) h1,
.admin-body .card:not(.stat) h2,
.admin-body .card:not(.stat) h3,
.admin-body .card:not(.stat) strong,
.admin-body .form-card h1,
.admin-body .form-card h2,
.admin-body .form-card h3,
.admin-body .form-card strong,
.admin-body .report-card h2,
.admin-body .report-card strong,
.admin-body .dashboard-panel h2,
.admin-body .dashboard-panel strong,
.admin-body .order-card strong {
    color: var(--admin-text);
}

.admin-body .card:not(.stat) p,
.admin-body .card:not(.stat) small,
.admin-body .form-card p,
.admin-body .form-card small,
.admin-body .dashboard-panel span,
.admin-body .order-card span {
    color: var(--admin-muted);
}

.admin-body .form-card {
    max-width: none;
    padding: 22px;
}

.admin-body .form-card h2,
.admin-body .report-card h2,
.admin-body .card h2 {
    margin: 0 0 16px;
    color: var(--admin-text);
    font-size: 18px;
}

.admin-body .field {
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea,
.admin-body .inline-form select {
    min-height: 42px;
    border-color: var(--admin-border);
    border-radius: 8px;
    background: #fff;
    color: var(--admin-text);
}

.admin-body .field textarea {
    min-height: 96px;
    resize: vertical;
}

.admin-body .field-wide {
    grid-column: 1 / -1;
}

.admin-body select[multiple] {
    min-height: 180px;
}

.admin-body .primary-btn,
.admin-body .ghost-btn,
.admin-body .danger-btn {
    min-height: 40px;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 850;
}

.admin-body .ghost-btn {
    border: 1px solid var(--admin-border);
    background: #fff;
    color: #334155;
    box-shadow: none;
}

.admin-body .danger-btn {
    background: #dc2626;
    box-shadow: 0 10px 22px rgba(220, 38, 38, .16);
}

.admin-body .order-alert-badge {
    min-height: 38px;
    border-radius: 8px;
    background: #fff;
    color: #475569;
}

.admin-lang-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
}

.admin-lang-switch a {
    min-height: 30px;
    display: inline-grid;
    place-items: center;
    padding: 0 9px;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.admin-lang-switch a.active {
    color: #fff;
    background: var(--theme);
}

.admin-body .order-alert-badge span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 6px;
    background: #eef2ff;
    color: var(--theme);
}

.admin-body .order-alert-badge.has-orders {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
    box-shadow: 0 12px 28px rgba(225, 29, 72, .12);
}

.admin-body .order-alert-badge.has-orders span {
    color: #fff;
    background: #e11d48;
}

.admin-body .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.admin-body .stat {
    position: relative;
    min-height: 126px;
    padding: 18px;
    overflow: hidden;
}

.admin-body .stat::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .08);
}

.admin-body .stat strong {
    color: var(--admin-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-body .stat h2 {
    margin-top: 14px;
    font-size: 34px;
    line-height: 1;
}

.admin-body .table-wrap {
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
}

.admin-body .table {
    box-shadow: none;
}

.admin-body .table th {
    padding: 12px 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-body .table td {
    padding: 14px;
    color: #1f2937;
}

.admin-body .table tr:hover td {
    background: #f8fafc;
}

.admin-body .row-pending td,
.admin-body .row-pending {
    background: #fff7ed;
}

.admin-body .status-pill,
.admin-body .call-type,
.admin-body .main-image-badge {
    min-height: 28px;
    border-radius: 7px;
    font-size: 12px;
}

.admin-body .order-board {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
}

.admin-body .order-card {
    padding: 18px;
}

.admin-body .order-card-head strong {
    font-size: 17px;
}

.admin-body .order-lines {
    gap: 0;
    margin: 12px 0;
    padding: 0;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
}

.admin-body .order-lines div {
    padding: 10px 12px;
    border-bottom: 1px solid var(--admin-border);
    background: #fff;
}

.admin-body .order-lines div:last-child {
    border-bottom: 0;
}

.admin-body .order-card-foot > strong {
    color: var(--theme);
    font-size: 20px;
}

.admin-body .report-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.admin-body .report-card {
    padding: 20px;
}

.admin-body .report-card div {
    align-items: center;
    min-height: 42px;
}

.admin-body .image-admin-card {
    border-radius: 8px;
    background: #fff;
}

.admin-body .image-admin-card img {
    border-radius: 7px;
}

.admin-body .admin-thumb {
    width: 64px;
    height: 48px;
    display: block;
    border-radius: 7px;
    object-fit: cover;
    background: #eef2f7;
}

.admin-body .qr-print-card {
    box-shadow: var(--admin-shadow);
}

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

.admin-body .dashboard-panel {
    padding: 20px;
}

.admin-body .dashboard-panel .section-row {
    margin-bottom: 12px;
}

.admin-body .dashboard-panel .section-row a {
    color: var(--theme);
    font-weight: 850;
    text-decoration: none;
}

.admin-body .dashboard-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--admin-border);
}

.admin-body .dashboard-line:last-child {
    border-bottom: 0;
}

.admin-body .dashboard-line strong,
.admin-body .dashboard-line span {
    display: block;
}

.admin-body .dashboard-line div span {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-body .kitchen-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: white;
    background:
        linear-gradient(135deg, rgba(17,24,39,.96), rgba(15,118,110,.86)),
        url("https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=1400&q=80") center / cover;
    box-shadow: var(--admin-shadow);
}

.admin-body .kitchen-hero h1 {
    margin: 6px 0;
    font-size: 34px;
}

.admin-body .kitchen-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.76);
}

.admin-body .kitchen-hero .admin-kicker {
    color: rgba(255,255,255,.72);
}

.admin-body .kitchen-clock {
    min-width: 128px;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,.14);
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.admin-body .kitchen-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 16px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.license-grid div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
}

.license-grid span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.license-warning {
    padding: 12px;
    border-radius: 8px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 800;
}

.success-note {
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    background: #f0fdf4;
    font-weight: 800;
}

.license-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.license-module-card {
    display: grid;
    gap: 10px;
    min-height: 132px;
    padding: 15px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
}

.license-module-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.license-module-card strong {
    color: var(--admin-ink);
}

.license-module-card span {
    display: inline-flex;
    width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}

.license-module-card.is-licensed {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.license-module-card.is-licensed span {
    color: #075985;
    background: #dbeafe;
}

.license-module-card.is-locked {
    border-color: #e5e7eb;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.license-module-card.is-locked span {
    color: #92400e;
    background: #fef3c7;
}

.license-module-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.license-request-form {
    margin-top: auto;
}

.license-request-form .ghost-btn {
    width: 100%;
    justify-content: center;
}

.admin-body .report-card-wide {
    grid-column: span 2;
}

.admin-body .kitchen-kanban {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}

.admin-body .kitchen-column {
    min-height: 320px;
    padding: 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
}

.admin-body .kitchen-column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-body .kitchen-column-head h2 {
    margin: 0;
    font-size: 16px;
}

.admin-body .kitchen-column-head span {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #fff;
    background: var(--theme);
    font-weight: 900;
}

.admin-body .kitchen-column .kitchen-ticket {
    margin-bottom: 12px;
}

.admin-body .kitchen-ticket.is-urgent {
    border-color: #fb923c;
    box-shadow: 0 16px 35px rgba(249, 115, 22, .18);
}

.kitchen-empty {
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--admin-muted);
    background: #fff;
    font-weight: 800;
}

.admin-body .kitchen-ticket {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--admin-border);
    border-top: 5px solid var(--theme);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--admin-shadow);
}

.admin-body .status-ticket-pending {
    border-top-color: #f59e0b;
}

.admin-body .status-ticket-preparing {
    border-top-color: #2563eb;
}

.admin-body .status-ticket-ready {
    border-top-color: #0f766e;
}

.admin-body .kitchen-ticket header,
.admin-body .kitchen-ticket footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-body .kitchen-ticket header strong {
    display: block;
    font-size: 20px;
}

.admin-body .kitchen-ticket header span {
    display: block;
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-body .kitchen-items {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.admin-body .kitchen-items div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
}

.admin-body .kitchen-items b {
    display: inline-grid;
    place-items: center;
    min-height: 32px;
    border-radius: 7px;
    color: white;
    background: var(--theme);
}

.admin-body .kitchen-note {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 750;
}

.admin-body .kitchen-ready {
    color: #0f766e;
    font-weight: 900;
}

.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(120deg, rgba(17, 24, 39, .94), rgba(15, 118, 110, .78)),
        url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.admin-login-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    align-items: stretch;
}

.admin-login-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 520px;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    color: white;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
}

.admin-login-hero > span {
    margin-top: auto;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.login-product-scene {
    position: relative;
    min-height: 250px;
    margin: 0 0 24px;
    border-radius: 8px;
    overflow: hidden;
}

.login-product-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04)),
        radial-gradient(circle at 80% 20%, rgba(59,130,246,.22), transparent 36%),
        radial-gradient(circle at 20% 86%, rgba(20,184,166,.20), transparent 34%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.scene-card,
.scene-menu-lines,
.scene-module-rail {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, .34);
    box-shadow: 0 18px 44px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
}

.scene-card {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    color: white;
}

.scene-card span {
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.scene-card strong {
    font-size: 21px;
    line-height: 1;
}

.scene-card small {
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 700;
}

.scene-qr-card,
.scene-kitchen-card {
    left: 18px;
    top: 18px;
    width: 150px;
}

.scene-order-card,
.scene-pos-card {
    right: 18px;
    top: 54px;
    width: 185px;
}

.scene-call-card,
.scene-stock-card {
    left: 42px;
    bottom: 28px;
    width: 188px;
}

.scene-menu-lines {
    right: 28px;
    bottom: 30px;
    width: 180px;
    padding: 14px;
    display: grid;
    gap: 9px;
}

.scene-menu-lines i {
    display: block;
    height: 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
}

.scene-menu-lines i:nth-child(1) { width: 90%; }
.scene-menu-lines i:nth-child(2) { width: 68%; }
.scene-menu-lines i:nth-child(3) { width: 78%; }

.scene-module-rail {
    right: 28px;
    bottom: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 214px;
    padding: 14px;
}

.scene-module-rail i {
    min-width: 58px;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.admin-login-hero h1 {
    max-width: 520px;
    margin: 8px 0 12px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
}

.admin-login-hero p {
    max-width: 430px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 17px;
    line-height: 1.55;
}

.admin-login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

.admin-login-card .sidebar-brand-mark {
    margin-bottom: 18px;
}

.admin-login-card h2 {
    margin: 0;
    font-size: 26px;
}

.admin-login-card p {
    margin: 8px 0 22px;
    color: var(--muted);
}

.sarmal-admin-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 58px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    padding: 5px;
}

.admin-body .sidebar .sidebar-brand {
    color: #fff;
    text-decoration: none;
}

.admin-body .sidebar .sidebar-brand:hover {
    background: rgba(255, 255, 255, .08);
}

.login-logo-link {
    display: inline-flex;
    width: min(300px, 100%);
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.login-logo-link img {
    width: 100%;
    height: 82px;
    object-fit: contain;
}

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

.form-panel-head,
.settings-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.form-panel-head h2,
.settings-section-head h2 {
    margin-bottom: 4px;
}

.form-panel-head p,
.settings-section-head p,
.form-help,
.edit-image-manager p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.5;
}

.smart-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.smart-form-grid .field-wide {
    grid-column: 1 / -1;
}

.toggle-line {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 850;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-card form,
.settings-block {
    display: grid;
    gap: 18px;
}

.settings-block {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--admin-border);
}

.settings-block:last-of-type {
    border-bottom: 0;
}

.homepage-settings-card .field-hint {
    align-self: end;
    margin: 0;
    padding: 13px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
}

.home-toggle-grid {
    margin-bottom: 18px;
}

.update-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #0f172a, #0f766e);
    color: white;
}

.update-hero h2,
.update-hero p {
    margin: 6px 0 0;
    color: inherit;
}

.update-hero p {
    color: rgba(255, 255, 255, .78);
}

.update-version-box {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

.update-version-box span {
    display: block;
    color: rgba(255, 255, 255, .70);
    font-size: 12px;
    font-weight: 800;
}

.update-version-box strong {
    display: block;
    margin-top: 8px;
    color: white;
    font-size: 24px;
}

.update-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.update-package-card {
    padding: 18px;
}

.update-package-card h2 {
    margin: 12px 0 8px;
    font-size: 20px;
}

.update-package-card p {
    min-height: 42px;
    color: var(--muted);
}

.update-package-head,
.update-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.update-package-head span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.update-package-head strong {
    color: var(--theme);
}

.update-meta {
    flex-wrap: wrap;
    margin: 14px 0;
    color: #64748b;
    font-size: 13px;
}

.update-empty {
    grid-column: 1 / -1;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.module-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.module-toggle-card {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.module-toggle-card:has(input:checked) {
    border-color: rgba(37, 99, 235, .42);
    background: #eff6ff;
}

.module-toggle-card.is-locked {
    opacity: .72;
    cursor: not-allowed;
    background: #f8fafc;
}

.module-toggle-card.is-locked strong::after {
    content: "Kilitli";
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.module-toggle-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.module-toggle-card strong,
.module-toggle-card small {
    display: block;
}

.module-toggle-card small {
    margin-top: 4px;
    color: var(--admin-muted);
    line-height: 1.45;
}

.edit-image-manager {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--admin-border);
}

.upload-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.compact-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.image-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.image-actions form,
.actions-cell form {
    margin: 0;
}

.admin-body .stat {
    color: white;
    border: 0;
}

.admin-body .stat strong,
.admin-body .stat small,
.admin-body .stat h2 {
    position: relative;
    z-index: 1;
    color: inherit;
}

.admin-body .stat small {
    opacity: .78;
}

.admin-body .stat::after {
    background: rgba(255, 255, 255, .16);
}

.stat-tone-1 { background: linear-gradient(135deg, #2563eb, #0f766e); }
.stat-tone-2 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.stat-tone-3 { background: linear-gradient(135deg, #0f766e, #65a30d); }
.stat-tone-4 { background: linear-gradient(135deg, #ea580c, #dc2626); }
.stat-tone-5 { background: linear-gradient(135deg, #0891b2, #2563eb); }
.stat-tone-6 { background: linear-gradient(135deg, #475569, #111827); }

.admin-body .stat.card.stat-tone-1 { background: linear-gradient(135deg, #2563eb, #0f766e) !important; }
.admin-body .stat.card.stat-tone-2 { background: linear-gradient(135deg, #7c3aed, #db2777) !important; }
.admin-body .stat.card.stat-tone-3 { background: linear-gradient(135deg, #0f766e, #65a30d) !important; }
.admin-body .stat.card.stat-tone-4 { background: linear-gradient(135deg, #ea580c, #dc2626) !important; }
.admin-body .stat.card.stat-tone-5 { background: linear-gradient(135deg, #0891b2, #2563eb) !important; }
.admin-body .stat.card.stat-tone-6 { background: linear-gradient(135deg, #475569, #111827) !important; }

.admin-body .stat.card,
.admin-body .stat.card strong,
.admin-body .stat.card h2,
.admin-body .stat.card small {
    color: #fff !important;
}

.admin-body .stat.card small {
    opacity: .82;
}

.admin-body .order-board {
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    align-items: start;
}

.admin-body .order-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
}

.admin-body .order-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #cbd5e1;
}

.admin-body .order-card.row-pending::before {
    background: #f97316;
}

.admin-body .order-card-head,
.admin-body .order-card-foot {
    align-items: flex-start;
}

.admin-body .order-card-head strong {
    display: block;
    margin-bottom: 4px;
}

.admin-body .order-card-foot {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(220px, 1fr);
    align-items: end;
    gap: 10px;
}

.admin-body .order-card-foot .inline-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(112px, auto);
    gap: 8px;
}

.admin-body .order-card-foot > .ghost-btn {
    justify-content: center;
    min-width: 0;
    white-space: normal;
}

.admin-body .order-lines div {
    min-width: 0;
}

.admin-body .order-lines span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-body .order-lines strong {
    white-space: nowrap;
}

.category-editor-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.category-editor-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
}

.category-editor-main .field-wide {
    grid-column: 1 / -1;
}

.category-editor-side {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
}

.category-editor-side .primary-btn {
    width: 100%;
}

.admin-body .order-customer {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.login-error {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    background: #fef2f2;
    font-weight: 800;
}

.receipt-page {
    background: #f3f4f6;
    color: #111827;
}

.receipt {
    width: min(760px, calc(100% - 24px));
    margin: 24px auto;
    padding: 26px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.receipt header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #111827;
}

.receipt h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.receipt p {
    margin: 4px 0;
    color: #4b5563;
}

.receipt-order {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.receipt-order h2 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 16px;
}

.receipt-order h2 span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.receipt-line {
    display: grid;
    grid-template-columns: 1fr 82px 120px;
    gap: 10px;
    padding: 8px 0;
}

.receipt-line b,
.receipt-line strong {
    text-align: right;
}

.receipt-note {
    padding: 10px;
    border-radius: 8px;
    background: #fffbeb;
}

.receipt footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    font-size: 22px;
    font-weight: 900;
}

.receipt .no-print {
    margin-top: 18px;
    width: 100%;
}

.receipt-actions {
    display: flex;
    gap: 10px;
}

.receipt-actions .primary-btn,
.receipt-actions .ghost-btn {
    flex: 1;
}

.receipt-thermal .receipt {
    width: 80mm;
    padding: 10px;
    font-size: 12px;
}

.receipt-thermal .receipt h1 {
    font-size: 18px;
}

.receipt-thermal .receipt-line {
    grid-template-columns: 1fr 42px 70px;
    gap: 6px;
}

@media print {
    .receipt-page {
        background: white;
    }

    .receipt {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .receipt-thermal .receipt {
        width: 80mm;
    }

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

@media (max-width: 980px) {
    .public-detail-layout,
    .reviews-detail-layout {
        grid-template-columns: 1fr;
    }

    .public-hero-card h1 {
        font-size: 34px;
    }

    .menu-app-header {
        align-items: flex-start;
    }

    .menu-brand img {
        width: 38px;
        height: 38px;
    }

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

    .admin-body .sidebar {
        position: static;
        height: auto;
    }

    .admin-body .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .admin-body .admin-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-body .admin-content {
        padding: 18px;
    }

    .admin-body .order-board {
        grid-template-columns: 1fr;
    }

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

    .admin-body .kitchen-hero,
    .admin-body .kitchen-ticket header,
    .admin-body .kitchen-ticket footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .admin-login-hero {
        min-height: 260px;
    }

    .login-product-scene {
        min-height: 180px;
    }

    .scene-card strong {
        font-size: 17px;
    }

    .scene-order-card,
    .scene-pos-card {
        right: 14px;
        width: 160px;
    }

    .scene-menu-lines,
    .scene-module-rail {
        display: none;
    }
}

.admin-menu-toggle,
.admin-sidebar-close,
.admin-sidebar-backdrop {
    display: none;
}

@media (max-width: 980px) {
    .admin-body {
        overflow-x: hidden;
    }

    .admin-body .admin-shell {
        display: block;
        min-height: 100vh;
    }

    .admin-body .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 120;
        width: min(86vw, 320px);
        height: 100dvh;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 24px 0 60px rgba(15, 23, 42, .28);
    }

    .admin-body.admin-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .admin-menu-toggle {
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 110;
        display: inline-grid;
        place-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        border: 1px solid #dbe4f0;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    }

    .admin-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #172033;
    }

    .admin-sidebar-close {
        display: inline-grid;
        place-items: center;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 8px;
        color: #ffffff;
        background: rgba(255, 255, 255, .10);
        font-size: 26px;
        line-height: 1;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 115;
        background: rgba(15, 23, 42, .52);
        backdrop-filter: blur(2px);
    }

    .admin-body.admin-sidebar-open .admin-sidebar-backdrop {
        display: block;
    }

    .admin-body .admin-topbar {
        padding-left: 72px;
    }
}
