:root {
    --green: #00b14f;
    --green-dark: #008f40;
    --green-soft: #eafaf1;
    --orange: #ff7a00;
    --purple: #7057d9;
    --red: #d9363e;
    --blue: #2878d4;
    --ink: #202124;
    --muted: #687076;
    --line: #e7e9e8;
    --surface: #ffffff;
    --background: #f6f7f7;
    --admin-dark: #14231b;
    --shadow: 0 18px 50px rgba(25, 42, 33, 0.09);
    --shadow-small: 0 7px 24px rgba(25, 42, 33, 0.07);
    --radius: 18px;
    --radius-small: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: var(--background);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--green);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.brand-logo {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: var(--green);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    box-shadow: 0 10px 24px rgba(0, 177, 79, 0.23);
}

.primary-button,
.secondary-button,
.contact-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        opacity 160ms ease;
}

.primary-button {
    border: 0;
    color: #fff;
    background: var(--green);
}

.primary-button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.secondary-button {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.full-button {
    width: 100%;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.86rem;
    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.alert-success {
    color: #116b39;
    background: #eaf8f0;
    border-color: #c9efd9;
}

.alert-error {
    color: #a0212a;
    background: #fff0f1;
    border-color: #f4c8cb;
}

.alert-hide {
    transform: translateY(-5px);
    opacity: 0;
}

/* Customer frontend */

.customer-body {
    padding-bottom: 0;
}

.customer-header {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid rgba(231, 233, 232, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.customer-header-inner {
    display: flex;
    width: min(calc(100% - 32px), 1200px);
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-inline: auto;
}

.customer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.customer-brand strong,
.customer-brand small {
    display: block;
}

.customer-brand strong {
    font-size: 1rem;
}

.customer-brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.74rem;
}

.header-cart-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    font-size: 0.84rem;
    font-weight: 800;
}

.header-cart-button:hover {
    border-color: var(--green);
    color: var(--green);
}

.cart-counter {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding-inline: 5px;
    border-radius: 999px;
    color: #fff;
    background: var(--green);
    font-size: 0.7rem;
}

.restaurant-section {
    padding: 28px 16px 20px;
}

.restaurant-card {
    width: min(100%, 1200px);
    overflow: hidden;
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-small);
}

.restaurant-cover {
    position: relative;
    display: flex;
    min-height: 210px;
    align-items: flex-end;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(255, 255, 255, 0.25),
            transparent 25%
        ),
        linear-gradient(135deg, #007f3a, #00b14f);
}

.restaurant-cover::after {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 270px;
    height: 270px;
    border: 35px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.restaurant-cover-pattern {
    position: absolute;
    top: -80px;
    left: 25%;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
}

.restaurant-logo {
    position: relative;
    z-index: 2;
    display: grid;
    width: 116px;
    height: 116px;
    place-items: center;
    border: 7px solid #fff;
    border-radius: 28px;
    color: var(--green);
    background: #fff;
    font-size: 1.6rem;
    font-weight: 950;
    box-shadow: var(--shadow);
}

.restaurant-information {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 28px;
}

.restaurant-badge {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #13733e;
    background: var(--green-soft);
    font-size: 0.68rem;
    font-weight: 850;
}

.restaurant-information h1 {
    margin-bottom: 4px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.restaurant-information p {
    color: var(--muted);
}

.restaurant-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #4f5652;
    font-size: 0.79rem;
    font-weight: 700;
}

.contact-button {
    flex: 0 0 auto;
    color: var(--green);
    background: var(--green-soft);
}

.food-section {
    padding: 12px 16px 80px;
}

.food-layout {
    display: grid;
    width: min(100%, 1200px);
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 25px;
    margin-inline: auto;
}

.food-content {
    min-width: 0;
}

.food-toolbar {
    position: sticky;
    z-index: 25;
    top: 77px;
    padding: 15px 0 8px;
    background: var(--background);
}

.food-search {
    position: relative;
    display: block;
    margin-bottom: 13px;
}

.food-search span {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1.3rem;
}

.food-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px 0 48px;
    outline: none;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: #fff;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.food-search input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px var(--green-soft);
}

.category-list {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 7px;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-button {
    min-height: 39px;
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #555d58;
    background: #fff;
    font-size: 0.79rem;
    font-weight: 800;
}

.category-button:hover,
.category-button.active {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
}

.menu-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0 18px;
}

.menu-heading h2 {
    font-size: 1.55rem;
    letter-spacing: -0.035em;
}

.menu-heading > span {
    color: var(--muted);
    font-size: 0.79rem;
    font-weight: 750;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.food-card {
    display: grid;
    overflow: hidden;
    grid-template-columns: 155px minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 5px 18px rgba(28, 45, 36, 0.035);
    transition:
        transform 170ms ease,
        box-shadow 170ms ease,
        border-color 170ms ease;
}

.food-card:hover {
    transform: translateY(-3px);
    border-color: #d8dedb;
    box-shadow: var(--shadow-small);
}

.food-card-photo {
    min-height: 190px;
    background: #eef0ef;
}

.food-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-photo-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 190px;
    place-items: center;
    font-size: 3rem;
    background:
        radial-gradient(
            circle at top left,
            var(--green-soft),
            #f5f7f6 65%
        );
}

.food-card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 16px;
}

.food-category {
    margin-bottom: 5px;
    color: var(--green);
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.food-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.25;
}

.food-card p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.76rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.food-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
}

.food-card-footer > strong {
    color: #252925;
    font-size: 0.94rem;
}

.add-food-button {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--green);
    border-radius: 10px;
    color: var(--green);
    background: #fff;
    font-size: 0.73rem;
    font-weight: 850;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.add-food-button span {
    font-size: 1.05rem;
}

.add-food-button:hover,
.add-food-button.added {
    color: #fff;
    background: var(--green);
}

.empty-menu-state {
    padding: 70px 20px;
    border: 1px dashed #d8dcda;
    border-radius: var(--radius);
    text-align: center;
    background: #fff;
}

.empty-menu-state > span {
    display: block;
    margin-bottom: 10px;
    font-size: 3rem;
}

.empty-menu-state h3 {
    margin-bottom: 4px;
}

.empty-menu-state p {
    color: var(--muted);
    font-size: 0.86rem;
}

.cart-panel {
    position: sticky;
    top: 94px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-small);
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.cart-panel-header h2 {
    font-size: 1.25rem;
}

.cart-close-button {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    font-size: 1.25rem;
}

.cart-content {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
}

.cart-empty-state {
    display: grid;
    min-height: 330px;
    place-content: center;
    padding: 35px;
    text-align: center;
}

.cart-empty-state span {
    margin-bottom: 10px;
    font-size: 3rem;
}

.cart-empty-state h3 {
    margin-bottom: 4px;
}

.cart-empty-state p {
    color: var(--muted);
    font-size: 0.82rem;
}

.cart-item-list {
    padding: 5px 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item img,
.cart-item-placeholder {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 11px;
}

.cart-item-placeholder {
    display: grid;
    place-items: center;
    background: var(--green-soft);
    font-size: 1.5rem;
}

.cart-item-information {
    min-width: 0;
}

.cart-item-information > strong {
    display: block;
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-information > span {
    display: block;
    margin-top: 2px;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.quantity-control button {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green);
    background: #fff;
    font-size: 1rem;
    font-weight: 850;
}

.quantity-control strong {
    min-width: 18px;
    font-size: 0.76rem;
    text-align: center;
}

.cart-remove-button {
    align-self: start;
    border: 0;
    color: #8a908c;
    background: transparent;
    font-size: 1.2rem;
}

.cart-remove-button:hover {
    color: var(--red);
}

.cart-price-summary {
    padding: 18px;
    background: #fafbfa;
}

.cart-price-summary > div,
.checkout-price-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.79rem;
}

.cart-price-summary .cart-grand-total,
.checkout-price-summary .checkout-total {
    margin: 14px 0 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 850;
}

.cart-grand-total strong,
.checkout-total strong {
    color: var(--green);
    font-size: 1.08rem;
}

.mobile-cart-bar {
    position: fixed;
    z-index: 55;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 17px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 16px 40px rgba(0, 143, 64, 0.35);
}

.mobile-cart-bar span {
    text-align: left;
}

.mobile-cart-bar span strong,
.mobile-cart-bar span small {
    display: block;
}

.mobile-cart-bar span small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.68rem;
}

.drawer-backdrop,
.admin-mobile-backdrop {
    position: fixed;
    z-index: 75;
    inset: 0;
    visibility: hidden;
    background: rgba(15, 22, 18, 0.48);
    opacity: 0;
    backdrop-filter: blur(2px);
    transition:
        visibility 180ms ease,
        opacity 180ms ease;
}

.drawer-backdrop.open,
.admin-mobile-backdrop.open {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    overflow-y: auto;
    place-items: center;
    padding: 20px;
    background: rgba(15, 22, 18, 0.56);
    backdrop-filter: blur(4px);
}

.checkout-modal-card {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(17, 31, 23, 0.2);
}

.checkout-modal-card h2 {
    margin-bottom: 22px;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    font-size: 1.2rem;
}

.checkout-form,
.form-stack,
.admin-form {
    display: grid;
    gap: 15px;
}

.checkout-form label,
.form-stack label,
.admin-form label {
    display: grid;
    gap: 7px;
    color: #3d433f;
    font-size: 0.79rem;
    font-weight: 800;
}

.checkout-form input,
.checkout-form textarea,
.form-stack input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.inline-category-form input,
.order-status-form select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    outline: none;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: #fff;
}

.checkout-form textarea,
.admin-form textarea {
    min-height: 90px;
    resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.form-stack input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.inline-category-form input:focus,
.order-status-form select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px var(--green-soft);
}

.checkout-price-summary {
    margin-top: 6px;
    padding: 16px;
    border-radius: 13px;
    background: #f7f9f8;
}

.form-message {
    min-height: 20px;
    font-size: 0.79rem;
    text-align: center;
}

.form-message.error {
    color: var(--red);
}

.success-modal-card {
    text-align: center;
}

.success-icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    font-size: 2rem;
    font-weight: 900;
}

.success-modal-card p {
    margin-bottom: 12px;
}

.success-modal-card .primary-button {
    margin-top: 13px;
}

/* Installer and admin login */

.install-body,
.admin-login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(0, 177, 79, 0.16),
            transparent 28%
        ),
        #f5f7f6;
}

.install-card,
.admin-login-card {
    width: min(100%, 460px);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.install-card h1,
.admin-login-card h1 {
    margin: 14px 0 7px;
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.install-card > .muted,
.admin-login-heading > p {
    margin-bottom: 22px;
    font-size: 0.85rem;
}

.install-card .secondary-button {
    margin-top: 10px;
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-login-brand strong,
.admin-login-brand small {
    display: block;
}

.admin-login-brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-login-heading {
    margin-top: 30px;
}

/* Admin */

.admin-body {
    background: #f4f6f5;
}

.admin-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 245px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 20px 15px;
    color: #fff;
    background: var(--admin-dark);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 8px 23px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
    display: block;
}

.admin-sidebar-brand strong {
    font-size: 0.91rem;
}

.admin-sidebar-brand small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.67rem;
}

.admin-navigation {
    display: grid;
    gap: 5px;
    margin-top: 24px;
}

.admin-navigation a {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 11px;
    padding: 0 13px;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-navigation a:hover,
.admin-navigation a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.admin-navigation a.active {
    box-shadow: inset 3px 0 var(--green);
}

.admin-sidebar-footer {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-footer a,
.admin-sidebar-footer button {
    display: flex;
    width: 100%;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.76rem;
    font-weight: 750;
}

.admin-sidebar-footer a:hover,
.admin-sidebar-footer button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    z-index: 35;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 26px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(14px);
}

.admin-topbar > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar strong,
.admin-topbar small {
    display: block;
}

.admin-topbar strong {
    font-size: 0.92rem;
}

.admin-topbar small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.68rem;
}

.admin-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    font-size: 0.82rem;
    font-weight: 900;
}

.admin-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.admin-content {
    padding: 27px;
}

.admin-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 23px;
}

.admin-page-heading h1 {
    margin-bottom: 4px;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.admin-page-heading > div > p:last-child {
    color: var(--muted);
    font-size: 0.84rem;
}

.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.metric-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 39, 30, 0.035);
}

.metric-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 14px;
    font-size: 1.25rem;
}

.metric-icon.green {
    background: var(--green-soft);
}

.metric-icon.orange {
    background: #fff0df;
}

.metric-icon.purple {
    background: #f0edff;
}

.metric-card small {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.71rem;
    font-weight: 750;
}

.metric-card strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.metric-card .metric-money {
    font-size: 1.25rem;
}

.metric-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 39, 30, 0.03);
}

.admin-panel-header {
    display: flex;
    min-height: 67px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.admin-panel-header h2 {
    margin-bottom: 2px;
    font-size: 0.96rem;
}

.admin-panel-header p {
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-panel-header > a {
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.admin-table th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    background: #fafbfa;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 0.77rem;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: #fcfdfc;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 850;
}

.status-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-success {
    color: #14703d;
    background: #e9f8f0;
}

.status-warning {
    color: #996000;
    background: #fff4d8;
}

.status-info {
    color: #2469ad;
    background: #e9f2ff;
}

.status-purple {
    color: #5a46ba;
    background: #f0edff;
}

.status-orange {
    color: #ac5600;
    background: #fff0df;
}

.status-danger {
    color: #b52e37;
    background: #ffeded;
}

.status-neutral {
    color: #666d69;
    background: #eff1f0;
}

.admin-empty-state {
    padding: 55px 20px;
    text-align: center;
}

.admin-empty-state > span {
    display: block;
    margin-bottom: 9px;
    font-size: 2.8rem;
}

.admin-empty-state h3 {
    margin-bottom: 3px;
}

.admin-empty-state p {
    color: var(--muted);
    font-size: 0.78rem;
}

.menu-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.65fr);
    gap: 18px;
    margin-bottom: 18px;
}

.admin-form {
    padding: 20px;
}

.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    min-height: auto;
    accent-color: var(--green);
}

.current-menu-image {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfa;
}

.current-menu-image img {
    width: 72px;
    height: 60px;
    object-fit: cover;
    border-radius: 9px;
}

.current-menu-image span {
    color: var(--muted);
    font-size: 0.72rem;
}

.inline-category-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 17px;
    border-bottom: 1px solid var(--line);
}

.category-admin-list {
    display: grid;
    gap: 8px;
    padding: 15px;
}

.category-admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.category-admin-item strong,
.category-admin-item small {
    display: block;
}

.category-admin-item strong {
    font-size: 0.78rem;
}

.category-admin-item small {
    color: var(--muted);
    font-size: 0.67rem;
}

.icon-danger-button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #f1c5c7;
    border-radius: 9px;
    color: var(--red);
    background: #fff4f4;
    font-size: 1rem;
}

.admin-menu-product {
    display: flex;
    min-width: 240px;
    align-items: center;
    gap: 10px;
}

.admin-menu-product img,
.admin-image-placeholder {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border-radius: 10px;
}

.admin-image-placeholder {
    display: grid;
    place-items: center;
    background: var(--green-soft);
    font-size: 1.3rem;
}

.admin-menu-product strong,
.admin-menu-product small {
    display: block;
}

.admin-menu-product small {
    max-width: 280px;
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.67rem;
    text-overflow: ellipsis;
}

.admin-action-row {
    display: flex;
    gap: 6px;
}

.small-action-button {
    display: inline-flex;
    min-height: 33px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #505753;
    background: #fff;
    font-size: 0.68rem;
    font-weight: 750;
}

.small-action-button:hover {
    border-color: var(--green);
    color: var(--green);
}

.small-action-button.danger:hover {
    border-color: #efbfc2;
    color: var(--red);
    background: #fff5f5;
}

.order-admin-list {
    display: grid;
    gap: 15px;
}

.order-admin-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 39, 30, 0.03);
}

.order-admin-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.order-code-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.order-code-line > strong {
    font-size: 0.95rem;
}

.order-admin-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.7rem;
}

.order-total {
    color: var(--green);
    font-size: 1.08rem;
}

.order-customer-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr 0.45fr;
    gap: 20px;
    padding: 17px 0;
}

.order-customer-grid small,
.order-customer-grid strong,
.order-customer-grid a {
    display: block;
}

.order-customer-grid small {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 750;
    text-transform: uppercase;
}

.order-customer-grid strong,
.order-customer-grid p {
    font-size: 0.78rem;
}

.order-customer-grid a {
    margin-top: 3px;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 750;
}

.order-note {
    padding: 11px 13px;
    border-radius: 10px;
    color: #855100;
    background: #fff6e5;
    font-size: 0.74rem;
}

.order-items-details {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.order-items-details summary {
    padding: 11px 13px;
    cursor: pointer;
    color: var(--green);
    font-size: 0.73rem;
    font-weight: 800;
}

.order-item-list {
    padding: 0 13px 12px;
}

.order-item-list > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.73rem;
}

.order-item-list > div:last-child {
    border-bottom: 0;
}

.order-item-list .order-grand-total {
    padding-top: 12px;
    font-size: 0.84rem;
}

.order-item-list .order-grand-total strong {
    color: var(--green);
}

.order-status-form {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 15px;
}

.order-status-form label {
    display: grid;
    min-width: 220px;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 800;
}

@media (max-width: 1080px) {
    .food-layout {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        position: fixed;
        z-index: 80;
        top: 0;
        right: 0;
        width: min(100%, 410px);
        height: 100vh;
        max-height: none;
        transform: translateX(105%);
        border-radius: 0;
        transition: transform 220ms ease;
    }

    .cart-panel.open {
        transform: translateX(0);
    }

    .cart-close-button {
        display: grid;
    }

    .cart-content {
        max-height: calc(100vh - 83px);
    }

    .dashboard-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        z-index: 90;
        top: 0;
        left: 0;
        width: 245px;
        transform: translateX(-105%);
        transition: transform 200ms ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-menu-toggle {
        display: grid;
        place-items: center;
    }

    .menu-admin-layout {
        grid-template-columns: 1fr;
    }

    .order-customer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .customer-header-inner {
        width: min(calc(100% - 24px), 1200px);
        min-height: 68px;
    }

    .customer-brand small {
        display: none;
    }

    .header-cart-button > span:nth-child(2) {
        display: none;
    }

    .restaurant-section {
        padding: 14px 12px;
    }

    .restaurant-cover {
        min-height: 150px;
        padding: 18px;
    }

    .restaurant-logo {
        width: 86px;
        height: 86px;
        border-width: 5px;
        border-radius: 22px;
        font-size: 1.2rem;
    }

    .restaurant-information {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .contact-button {
        width: 100%;
    }

    .food-section {
        padding: 5px 12px 95px;
    }

    .food-toolbar {
        top: 68px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .food-card {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .food-card-photo,
    .food-photo-placeholder {
        min-height: 180px;
    }

    .admin-content {
        padding: 18px 12px 35px;
    }

    .admin-topbar {
        padding-inline: 13px;
    }

    .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-page-heading .primary-button {
        width: 100%;
    }

    .dashboard-card-grid {
        grid-template-columns: 1fr;
    }

    .form-two-columns {
        grid-template-columns: 1fr;
    }

    .order-customer-grid {
        grid-template-columns: 1fr;
    }

    .order-status-form {
        align-items: stretch;
        flex-direction: column;
    }

    .order-status-form label {
        min-width: 0;
    }

    .checkout-modal-card {
        padding: 25px 18px;
    }
}

@media (max-width: 470px) {
    .food-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .food-card-photo,
    .food-photo-placeholder {
        min-height: 175px;
    }

    .food-card-content {
        padding: 13px;
    }

    .food-card p {
        -webkit-line-clamp: 2;
    }

    .food-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .add-food-button {
        width: 100%;
        justify-content: center;
    }

    .install-card,
    .admin-login-card {
        padding: 25px 18px;
    }
}

/*
|--------------------------------------------------------------------------
| Rounded Images
|--------------------------------------------------------------------------
*/

/* Logo header frontend dan sidebar admin */
.brand-logo {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(20, 25, 22, 0.14);
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}

/* Logo besar pada informasi restoran */
.restaurant-main-logo {
    display: block;
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 12px 30px rgba(20, 25, 22, 0.14);
}

/* Gambar menu frontend */
.food-card {
    overflow: hidden;
}

.food-card-photo {
    min-height: 170px;
    overflow: hidden;
    margin: 10px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    background: #eef0ef;
}

.food-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    transition: transform 220ms ease;
}

.food-card:hover .food-card-photo img {
    transform: scale(1.04);
}

/* Placeholder jika menu belum memiliki gambar */
.food-photo-placeholder {
    min-height: 170px;
    overflow: hidden;
    border-radius: inherit;
}

/* Gambar di keranjang */
.cart-item img {
    width: 62px;
    height: 62px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
}

/* Preview gambar pada formulir edit menu */
.current-menu-image img {
    width: 76px;
    height: 64px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
}

/* Gambar menu pada tabel admin */
.admin-menu-product img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
}

/* Logo di sidebar admin */
.admin-sidebar-brand .brand-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 16px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 720px) {
    .brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
    }

    .restaurant-main-logo {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
        border-radius: 20px;
    }

    .food-card-photo {
        min-height: 160px;
        margin: 8px;
        border-radius: 14px;
    }

    .food-card-photo img,
    .food-photo-placeholder {
        min-height: 160px;
    }
}

@media (max-width: 470px) {
    .food-card-photo {
        min-height: 150px;
        border-radius: 13px;
    }

    .food-card-photo img,
    .food-photo-placeholder {
        min-height: 150px;
    }
}
/*
|--------------------------------------------------------------------------
| Menu card dengan gambar landscape
|--------------------------------------------------------------------------
*/

.food-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border-radius: 18px;
}

/* Gambar berada di atas dan melebar ke samping */
.food-card-photo {
    width: calc(100% - 24px);
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 12px 12px 0;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    background: #eef0ef;
}

.food-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    transition: transform 220ms ease;
}

.food-card:hover .food-card-photo img {
    transform: scale(1.04);
}

/* Placeholder jika tidak ada foto */
.food-photo-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    place-items: center;
    border-radius: inherit;
}

/* Informasi menu berada di bawah gambar */
.food-card-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.food-card-footer {
    margin-top: 18px;
}

/* Tablet */
@media (max-width: 720px) {
    .food-card-photo {
        aspect-ratio: 16 / 9;
        min-height: 0;
        border-radius: 14px;
    }

    .food-card-photo img,
    .food-photo-placeholder {
        min-height: 0;
    }
}

/* Handphone */
@media (max-width: 470px) {
    .food-card-photo {
        width: calc(100% - 20px);
        aspect-ratio: 16 / 9;
        margin: 10px 10px 0;
        border-radius: 13px;
    }

    .food-card-photo img,
    .food-photo-placeholder {
        min-height: 0;
    }

    .food-card-footer {
        align-items: center;
        flex-direction: row;
    }

    .add-food-button {
        width: auto;
    }
}