:root {
    --ink: #131110;
    --ink-2: #1c1916;
    --ink-3: #26221d;
    --paper: #F4EEDF;
    --paper-dim: #c9c2ac;
    --brass: #C9A227;
    --brass-soft: #e3c766;
    --green: #2C7A5B;
    --green-glow: #48C68C;
    --rust: #B3543C;
    --line: rgba(244, 238, 223, 0.12);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

#shara-root {
    font-family: 'Manrope', sans-serif;
    background: var(--ink);
    color: var(--paper);
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    isolation: isolate;
}

#shara-root .serif {
    font-family: 'Fraunces', serif;
}

#shara-root .mono {
    font-family: 'JetBrains Mono', monospace;
}

#shara-root button {
    font-family: inherit;
    cursor: pointer;
}

#shara-root ::selection {
    background: var(--brass);
    color: var(--ink);
}

/* ---------- WELCOME / LOADING / ERROR ---------- */
.screen {
    min-height: 100vh;
    display: none;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

#hotel-loading,
#hotel-error,
#welcome {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
    background:
        radial-gradient(circle at 50% 15%, rgba(201, 162, 39, 0.16), transparent 55%),
        var(--ink);
    position: relative;
}

.brand-mark {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1.5px solid var(--brass);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 26px;
    animation: seal-in 0.9s cubic-bezier(.2, .9, .25, 1.2) both;
}

.brand-mark::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.brand-mark span {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 30px;
    color: var(--brass);
    letter-spacing: 1px;
}

@keyframes seal-in {
    0% {
        opacity: 0;
        transform: scale(.4) rotate(-25deg);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brass-soft);
    margin-bottom: 10px;
    opacity: 0;
    animation: rise 0.7s .25s ease forwards;
}

#welcome h1,
#hotel-error h1 {
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 6px;
    font-weight: 600;
    opacity: 0;
    animation: rise 0.7s .38s ease forwards;
}

#welcome .sub,
#hotel-error .sub,
#hotel-loading .sub {
    color: var(--paper-dim);
    font-size: 14.5px;
    margin: 0 0 30px;
    max-width: 300px;
    opacity: 0;
    animation: rise 0.7s .5s ease forwards;
}

#hotel-loading .sub {
    margin-top: 18px;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.name-wrap {
    width: 100%;
    max-width: 320px;
    opacity: 0;
    animation: rise 0.7s .62s ease forwards;
}

.name-input {
    width: 100%;
    background: var(--ink-2);
    border: 1px solid var(--line);
    color: var(--paper);
    padding: 15px 16px;
    border-radius: 14px;
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color .2s;
}

.name-input:focus {
    border-color: var(--brass);
}

.name-input::placeholder {
    color: var(--paper-dim);
}

.btn-row {
    display: flex;
    gap: 10px;
}

.btn-primary {
    flex: 1;
    background: var(--brass);
    color: var(--ink);
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: .2px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 8px 24px -8px rgba(201, 162, 39, .55);
}

.btn-primary:active {
    transform: scale(.97);
}

.btn-ghost {
    background: transparent;
    color: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px 18px;
    font-weight: 600;
    font-size: 14.5px;
}

.powered-by {
    margin-top: 26px;
    font-size: 10.5px;
    letter-spacing: .8px;
    color: var(--paper-dim);
    opacity: 0;
    animation: rise 0.7s .74s ease forwards;
}

/* ---------- MENU ---------- */
#menu-screen {
    padding-bottom: 110px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, var(--ink) 78%, transparent);
    padding: 18px 20px 10px;
}

.topbar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.greet-small {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brass-soft);
}

.greet-name {
    font-family: 'Fraunces', serif;
    font-size: 21px;
    font-weight: 600;
    margin-top: 3px;
}

.table-pill {
    font-size: 11px;
    color: var(--ink);
    background: var(--brass);
    padding: 6px 12px;
    border-radius: 100px;
    font-weight: 700;
    white-space: nowrap;
    margin-top: 2px;
}

.cat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 20px 4px;
    scrollbar-width: none;
}

.cat-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--ink-2);
    color: var(--paper-dim);
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}

.cat-btn.active {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

.item-list {
    padding: 14px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.item-card {
    display: flex;
    gap: 14px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.item-img-wrap {
    width: 92px;
    height: 92px;
    border-radius: 13px;
    overflow: hidden;
    flex: 0 0 auto;
    position: relative;
}

.item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.veg-dot {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    background: rgba(20, 18, 16, .7);
    border: 1.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
}

.veg-dot.veg {
    border-color: #4CAF6D;
}

.veg-dot.veg::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CAF6D;
}

.veg-dot.nonveg {
    border-color: var(--rust);
}

.veg-dot.nonveg::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rust);
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.item-name {
    font-family: 'Fraunces', serif;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.25;
}

.item-tag {
    font-size: 11px;
    color: var(--paper-dim);
    margin-top: 2px;
}

.item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.item-price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--brass-soft);
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.item-price .strike {
    font-size: 11px;
    color: var(--paper-dim);
    text-decoration: line-through;
    font-weight: 500;
}

.offer-badge {
    background: var(--rust);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: .3px;
}

.gst-note {
    font-size: 9.5px;
    color: var(--paper-dim);
    margin-top: 1px;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--ink-3);
    border-radius: 100px;
    padding: 3px;
    border: 1px solid var(--line);
}

.stepper button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--paper);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.stepper button.plus {
    background: var(--brass);
    color: var(--ink);
}

.stepper .qty-num {
    width: 22px;
    text-align: center;
    font-weight: 700;
    font-size: 13.5px;
    font-family: 'JetBrains Mono', monospace;
}

.add-btn {
    background: transparent;
    border: 1.5px solid var(--brass);
    color: var(--brass-soft);
    border-radius: 100px;
    padding: 6px 18px;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .3px;
    transition: transform .15s;
}

.add-btn:active {
    transform: scale(.93);
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

.pop {
    animation: pop .28s ease;
}

/* ---------- BOTTOM NAV ---------- */
.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    width: calc(100% - 32px);
    max-width: 448px;
    background: rgba(28, 25, 22, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 40;
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6);
}

.nav-icon-btn {
    background: none;
    border: none;
    color: var(--paper-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
}

.nav-icon-btn.on {
    color: var(--paper);
}

.cart-fab {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--ink-3);
    color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 11px 16px 11px 13px;
    transition: all .35s cubic-bezier(.2, .9, .25, 1);
    position: relative;
}

.cart-fab.filled {
    background: linear-gradient(135deg, var(--green), var(--green-glow));
    border-color: transparent;
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(72, 198, 140, 0.16), 0 12px 28px -10px rgba(44, 122, 91, .8);
    animation: cart-glow 1.8s ease-in-out infinite;
}

@keyframes cart-glow {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(72, 198, 140, 0.16), 0 12px 28px -10px rgba(44, 122, 91, .8);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(72, 198, 140, 0.08), 0 12px 34px -8px rgba(44, 122, 91, 1);
    }
}

.cart-fab .count {
    background: var(--ink);
    color: var(--paper);
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
}

.cart-fab.filled .count {
    background: var(--ink);
    color: var(--green-glow);
}

.cart-fab .amt {
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* ---------- CART DRAWER ---------- */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 9, 8, 0.6);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.sheet-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.sheet {
    position: fixed;
    left: 50%;
    transform: translate(-50%, 100%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--ink-2);
    border-radius: 26px 26px 0 0;
    z-index: 60;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    transition: transform .38s cubic-bezier(.2, .9, .25, 1);
    border: 1px solid var(--line);
    border-bottom: none;
}

.sheet.show {
    transform: translate(-50%, 0);
}

.sheet-handle {
    width: 38px;
    height: 4px;
    background: var(--line);
    border-radius: 10px;
    margin: 12px auto 4px;
}

.sheet-head {
    padding: 10px 22px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.sheet-head h3 {
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 600;
    margin: 0;
}

.sheet-close {
    background: var(--ink-3);
    border: none;
    color: var(--paper-dim);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 15px;
}

.sheet-body {
    overflow-y: auto;
    padding: 14px 22px;
    flex: 1;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cart-row img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-row-info {
    flex: 1;
}

.cart-row-name {
    font-weight: 700;
    font-size: 14px;
}

.cart-row-price {
    color: var(--paper-dim);
    font-size: 12px;
    margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: var(--paper-dim);
}

.empty-cart .serif {
    font-size: 17px;
    color: var(--paper);
    display: block;
    margin-top: 10px;
}

.sheet-foot {
    padding: 16px 22px 22px;
    border-top: 1px solid var(--line);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.total-row .lbl {
    color: var(--paper-dim);
    font-size: 13px;
}

.total-row .amt {
    font-family: 'Fraunces', serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--brass-soft);
}

.confirm-btn {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 17px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 26px -8px rgba(44, 122, 91, .7);
}

.confirm-btn:active {
    transform: scale(.98);
}

/* ---------- CONFIRMATION ---------- */
.confirm-sheet .sheet-body {
    padding: 6px 22px 10px;
    text-align: center;
}

.check-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(72, 198, 140, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px auto 14px;
    animation: pop .5s ease;
}

.order-id {
    font-family: 'JetBrains Mono', monospace;
    color: var(--paper-dim);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.bill-card {
    background: var(--ink-3);
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    margin-bottom: 16px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;
    color: var(--paper-dim);
}

.bill-row.item {
    color: var(--paper);
}

.bill-row.total {
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 800;
    color: var(--brass-soft);
    font-size: 15px;
}

.pay-block {
    margin-bottom: 16px;
}

.pay-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--paper-dim);
    margin-bottom: 6px;
}

.pay-id-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pay-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--brass-soft);
}

.copy-btn {
    background: var(--ink);
    border: 1px solid var(--line);
    color: var(--paper);
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-btn {
    background: var(--brass);
    color: var(--ink);
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wa-btn {
    background: #25D366;
    color: #062b12;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.track-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--paper-dim);
    padding: 13px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
}

.toast {
    position: fixed;
    left: 50%;
    top: 24px;
    transform: translate(-50%, -140%);
    background: var(--paper);
    color: var(--ink);
    padding: 11px 18px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    z-index: 90;
    transition: transform .35s cubic-bezier(.2, .9, .25, 1.4);
}

.toast.show {
    transform: translate(-50%, 0);
}

/* ---------- STAFF VIEW ---------- */
#staff-screen {
    background: var(--ink);
    padding-bottom: 30px;
}

.staff-head {
    padding: 20px 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--ink);
    z-index: 10;
}

.staff-head h2 {
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 600;
    margin: 0;
}

.staff-head .live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--green-glow);
    font-weight: 700;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-glow);
    animation: blink 1.4s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .25;
    }
}

.ticket-rail {
    padding: 18px 16px 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket {
    background: repeating-linear-gradient(var(--ink-2), var(--ink-2));
    background-color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    position: relative;
    animation: ticket-drop .55s cubic-bezier(.17, .9, .32, 1.28) both;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7);
}

.ticket::before,
.ticket::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--ink);
    border-radius: 50%;
    top: 50%;
    margin-top: -8px;
}

.ticket::before {
    left: -8px;
}

.ticket::after {
    right: -8px;
}

@keyframes ticket-drop {
    0% {
        opacity: 0;
        transform: translateY(-26px) scale(.9) rotate(-2deg);
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.ticket.aging {
    opacity: .72;
    transform: scale(.985);
}

.ticket.old {
    opacity: .5;
    transform: scale(.97);
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
}

.ticket-table {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 17px;
}

.ticket-table span {
    color: var(--brass-soft);
}

.ticket-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--paper-dim);
}

.ticket-guest {
    font-size: 12px;
    color: var(--paper-dim);
    margin-top: 2px;
}

.ticket-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.ticket-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

.ticket-item-row .q {
    color: var(--brass-soft);
    font-weight: 700;
}

.ticket-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 14px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    margin-bottom: 12px;
}

.status-row {
    display: flex;
    gap: 7px;
}

.status-btn {
    flex: 1;
    padding: 9px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--paper-dim);
    font-size: 11.5px;
    font-weight: 700;
}

.status-btn.active-new {
    background: var(--rust);
    color: #fff;
    border-color: transparent;
}

.status-btn.active-prep {
    background: var(--brass);
    color: var(--ink);
    border-color: transparent;
}

.status-btn.active-done {
    background: var(--green);
    color: #fff;
    border-color: transparent;
}

.staff-empty {
    text-align: center;
    padding: 80px 30px;
    color: var(--paper-dim);
}

.sync-note {
    padding: 0 20px 4px;
    font-size: 11px;
    color: var(--paper-dim);
    text-align: center;
}

.logout-btn {
    background: var(--ink-3);
    border: 1px solid var(--line);
    color: var(--paper-dim);
    font-size: 11px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 9px;
}

/* ---------- STAFF TABS ---------- */
.staff-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 20px 4px;
}

.staff-tab {
    flex: 1;
    padding: 10px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--ink-2);
    color: var(--paper-dim);
    font-size: 12.5px;
    font-weight: 700;
}

.staff-tab.active-tab {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

/* ---------- SERVED / DISABLED TICKET STATE ---------- */
.ticket-done {
    opacity: .65;
}

.status-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.served-note {
    text-align: center;
    font-size: 11px;
    color: var(--green-glow);
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: .5px;
}

/* ---------- TRACK ORDERS progress ---------- */
.progress-track {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.progress-step {
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--paper-dim);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--line);
    position: relative;
}

.progress-step.done {
    color: var(--green-glow);
    border-bottom-color: var(--green-glow);
}

/* ---------- MENU MANAGER ---------- */
.mm-toolbar {
    padding: 14px 20px 4px;
    display: flex;
    justify-content: flex-end;
}

.mm-add-btn {
    background: var(--brass);
    color: var(--ink);
    border: none;
    padding: 9px 16px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 12.5px;
}

.mm-list {
    padding: 12px 16px 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
}

.mm-row.mm-inactive {
    opacity: .5;
}

.mm-thumb {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--ink-3);
}

.mm-info {
    flex: 1;
    min-width: 0;
}

.mm-name {
    font-weight: 700;
    font-size: 13.5px;
}

.mm-off-tag {
    font-size: 9px;
    background: var(--rust);
    color: #fff;
    padding: 2px 6px;
    border-radius: 5px;
    margin-left: 6px;
    font-weight: 800;
}

.mm-meta {
    font-size: 11px;
    color: var(--paper-dim);
    margin-top: 2px;
}

.mm-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mm-edit,
.mm-del {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--ink-3);
    color: var(--paper);
}

.mm-del {
    color: var(--rust);
}

.mm-field {
    margin-bottom: 12px;
    text-align: left;
}

.mm-field label {
    display: block;
    font-size: 11px;
    color: var(--paper-dim);
    margin-bottom: 5px;
    letter-spacing: .3px;
}

.mm-field-row {
    display: flex;
    gap: 8px;
}

.mm-field-row .mm-field {
    flex: 1;
}

.mm-veg-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--paper-dim);
    margin-top: 4px;
}

/* ---------- STAFF LOGIN ---------- */
#staff-login {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
    background: var(--ink);
}

.staff-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--ink-3);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--brass-soft);
}

#staff-login h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
}

#staff-login .sub {
    color: var(--paper-dim);
    font-size: 13.5px;
    margin: 0 0 28px;
}

.shake {
    animation: shake .4s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-9px);
    }

    40% {
        transform: translateX(9px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

.staff-name-label {
    font-size: 11px;
    color: var(--brass-soft);
    font-weight: 600;
    margin-top: 2px;
}

/* ---------- NO-TABLE / HOTEL-ERROR GUARD ---------- */
.no-table-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--brass-soft);
}

.manual-table-toggle {
    margin-top: 22px;
    font-size: 11.5px;
    color: var(--paper-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.manual-table-wrap {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: center;
}