/* ===========================================
   ROOT & RESET
=========================================== */
:root {
    --cyan: #0eb2ad;
    --cyan-dk: #0a706c;
    --bg: #ffffff;
    --bg2: #f8fafc;
    --card: #ffffff;
    --accent: #f1f5f9;
    --border: rgba(0, 0, 0, 0.1);
    --muted: #64748b;
    --fg: #0f172a;
    --green: #25d366;
    --red: #ef4444;
    --r: 14px;
    --font: 'Quicksand', sans-serif;
    --fdisplay: 'Fredoka', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.cyan {
    color: var(--cyan);
}

.hidden {
    display: none !important;
}

.full-w {
    width: 100%;
}

.mt {
    margin-top: 1rem;
}

.mt-s {
    margin-top: .6rem;
}

/* ===========================================
   SCREENS
=========================================== */
.screen {
    min-height: 100vh;
    display: none;
    flex-direction: column;
}

.screen.active {
    display: flex;
    animation: fadeIn .4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   INSTALL & LANGUAGE SCREENS
=================================================== */
#lang-screen,
#install-screen {
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    min-height: 100vh;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, #e0f2fe 0%, var(--bg) 65%);
}

#lang-screen .signup-box,
#install-screen .signup-box {
    width: 100%;
    margin: 0 auto;
}

/* ===========================================
   SIGNUP SCREEN
=========================================== */
#signup-screen {
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    min-height: 100vh;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, #e0f2fe 0%, var(--bg) 65%);
}

.signup-wrap {
    width: 100%;
    max-width: 520px;
}

.signup-box {
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(14, 178, 173, .04);
}

/* Logo + heading */
.signup-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-logo img {
    height: 90px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 18px rgba(14, 178, 173, .4));
}

.signup-logo h1 {
    font-family: var(--fdisplay);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -.03em;
    margin-bottom: .4rem;
}

.signup-logo p {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
}

/* Fields */
.field {
    margin-bottom: 1.2rem;
}

.field label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .4rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--accent);
    border: 2px solid var(--border);
    border-radius: var(--r);
    padding: .75rem 1rem;
    color: var(--fg);
    font-family: var(--font);
    font-size: .92rem;
    font-weight: 500;
    transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus {
    border-color: var(--cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 178, 173, .1);
}

.field input::placeholder {
    color: var(--muted);
    opacity: .7;
}

.field select option {
    background: var(--bg2);
    color: var(--fg);
}

/* WhatsApp row */
.wa-row {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.wa-row input {
    flex: 1;
}

.same-check {
    display: flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.same-check input[type=checkbox] {
    accent-color: var(--cyan);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Pin btn */
.btn-pin {
    background: var(--accent);
    border: 2px dashed rgba(14, 178, 173, .35);
    color: var(--muted);
    width: 100%;
    padding: .75rem 1rem;
    border-radius: var(--r);
    cursor: pointer;
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    text-align: left;
    transition: border-color .2s, color .2s;
}

.btn-pin:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-pin.pinned {
    border-style: solid;
    border-color: #22c55e;
    color: #22c55e;
}

.loc-status {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .35rem;
    font-weight: 600;
}

/* Primary button */
.btn-primary {
    background: var(--cyan);
    color: var(--bg);
    border: none;
    border-radius: var(--r);
    padding: .9rem 2rem;
    cursor: pointer;
    font-family: var(--fdisplay);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 15px rgba(14, 178, 173, .3);
}

.btn-primary:hover {
    background: var(--cyan-dk);
    box-shadow: 0 6px 25px rgba(14, 178, 173, .5);
}

.btn-primary:active {
    transform: scale(.97);
}

.btn-primary:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

/* ===========================================
   NAVBAR
=========================================== */
#navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.nav-brand img {
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(14, 178, 173, .3));
}

.nav-brand span {
    font-family: var(--fdisplay);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -.04em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nav-greeting {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    display: block;
}

/* Cart Nav Row */
.cart-nav-row {
    display: flex;
    justify-content: center;
    padding: .75rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-cart {
    background: var(--bg2);
    border: 1px solid var(--cyan);
    border-radius: 2rem;
    padding: .65rem 1.5rem;
    color: var(--cyan);
    cursor: pointer;
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: all .2s;
    box-shadow: 0 4px 15px rgba(14, 178, 173, 0.1);
}

.btn-cart:hover {
    background: var(--cyan);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 178, 173, 0.2);
}

.badge {
    background: var(--fg);
    color: var(--bg);
    font-size: .7rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: .2rem;
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: .75rem;
    padding: .45rem .75rem;
    color: var(--muted);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
    transition: color .2s, border-color .2s;
}

.btn-logout:hover {
    color: var(--red);
    border-color: var(--red);
}

/* ===========================================
   MENU
=========================================== */
.menu-hdr {
    text-align: center;
    padding: 3.5rem 2rem 2rem;
}

.menu-hdr h2 {
    font-family: var(--fdisplay);
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: .4rem;
}

.menu-hdr p {
    color: var(--muted);
    font-weight: 500;
}

.menu-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Menu Card */
.menu-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
    border-color: rgba(14, 178, 173, .25);
}

.card-img-wrap {
    width: 100%;
    height: 155px;
    background: var(--accent);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: .9rem;
    transition: transform .3s;
}

.menu-card:hover .card-img-wrap {
    transform: scale(1.03);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .5rem;
}

.card-cat {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--cyan);
    background: rgba(14, 178, 173, .1);
    border: 1px solid rgba(14, 178, 173, .2);
    border-radius: 2rem;
    padding: 2px 8px;
    margin-bottom: .5rem;
}

.card-name {
    font-family: var(--fdisplay);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: .3rem;
}

.card-desc {
    font-size: .83rem;
    color: var(--muted);
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .85rem;
}

.card-price {
    font-family: var(--fdisplay);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan);
}

.card-tag {
    font-size: .7rem;
    color: var(--muted);
    font-weight: 600;
    opacity: .8;
}

.btn-add-card {
    background: var(--cyan);
    color: var(--bg);
    border: none;
    border-radius: var(--r);
    padding: .65rem 1rem;
    width: 100%;
    font-family: var(--fdisplay);
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .15s;
    letter-spacing: .04em;
}

.btn-add-card:hover {
    background: var(--cyan-dk);
}

.btn-add-card:active {
    transform: scale(.97);
}

/* ===========================================
   ITEM DETAIL MODAL
=========================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    transition: opacity .3s;
    cursor: pointer;
}

.modal-box {
    position: relative;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform .3s, opacity .3s;
    z-index: 1;
}

.modal-box.scale-down {
    transform: scale(.92);
    opacity: 0;
}

.modal-box.scale-up {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--card);
    border: none;
    color: var(--fg);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.modal-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: .5rem;
    background: var(--accent);
    border-radius: 1.5rem;
    margin-bottom: 1.25rem;
}

.modal-title {
    font-family: var(--fdisplay);
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: .3rem;
}

.modal-desc {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: .75rem;
}

.modal-min-note {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #fca5a5;
    font-size: .8rem;
    font-weight: 700;
    padding: .5rem .75rem;
    border-radius: .75rem;
    margin-bottom: 1rem;
}

/* Options */
.modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.opt-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .5rem;
}

.opt-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.opt-btn {
    background: var(--accent);
    border: 2px solid var(--border);
    color: var(--muted);
    padding: .5rem 1rem;
    border-radius: .75rem;
    cursor: pointer;
    font-weight: 700;
    font-size: .85rem;
    transition: all .15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}

.opt-btn:hover {
    border-color: rgba(14, 178, 173, .4);
    color: var(--fg);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, .15);
    border-color: #ef4444;
    color: #ef4444;
}


/* Back Plate Btn */
.btn-back {
    opacity: .35;
    cursor: not-allowed;
}

.opt-btn.active {
    background: rgba(14, 178, 173, .12);
    border-color: var(--cyan);
    color: var(--cyan);
}

.opt-btn.unavail {
    opacity: .35;
    cursor: not-allowed;
}

.size-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.size-btn {
    background: var(--accent);
    border: 2px solid var(--border);
    color: var(--muted);
    padding: .6rem .8rem;
    border-radius: .85rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .82rem;
    transition: all .15s;
    text-align: left;
}

.size-btn span.price {
    float: right;
    color: var(--red);
    font-weight: 700;
}

.size-btn:hover {
    border-color: rgba(14, 178, 173, .4);
    color: var(--fg);
}

.size-btn.active {
    background: rgba(14, 178, 173, .12);
    border-color: var(--cyan);
    color: var(--cyan);
}

.size-btn.unavail {
    opacity: .35;
    cursor: not-allowed;
}

/* Scheduled picker inside modal */
.modal-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: .5rem;
}

/* Qty + Price row */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: .3rem;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 3px 8px;
}

.btn-qty {
    background: transparent;
    color: var(--fg);
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.btn-qty:hover {
    background: rgba(0, 0, 0, .08);
}

.qty-val {
    font-family: var(--fdisplay);
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

.modal-price {
    font-family: var(--fdisplay);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
}

/* ===========================================
   CART DRAWER
=========================================== */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 600;
    visibility: hidden;
    pointer-events: none;
}

.drawer.open {
    visibility: visible;
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .3s;
    cursor: pointer;
}

.drawer.open .drawer-backdrop {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.25, .46, .45, .94);
    overflow: hidden;
}

.drawer.open .drawer-panel {
    transform: translateX(0);
}

.drawer-hdr {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.drawer-hdr h3 {
    font-family: var(--fdisplay);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
}

.btn-close {
    background: var(--card);
    border: none;
    color: var(--fg);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.btn-close:hover {
    background: #374151;
}

.drawer-view {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}


.cart-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--border);
}

.ci-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: var(--accent);
    border-radius: .75rem;
    padding: 3px;
    flex-shrink: 0;
}

.ci-info {
    flex: 1;
    min-width: 0;
}

.ci-name {
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ci-sub {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 600;
    margin-top: 1px;
}

.ci-meta {
    font-size: .8rem;
    color: var(--red);
    font-weight: 700;
    margin-top: 1px;
}

.ci-right {
    text-align: right;
    flex-shrink: 0;
}

.ci-total {
    font-weight: 700;
    font-size: .95rem;
}

.ci-remove {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    transition: color .2s, background .2s;
    margin-top: 2px;
}

.ci-remove:hover {
    color: var(--red);
    background: rgba(239, 68, 68, .1);
}

.cart-empty {
    text-align: center;
    color: var(--muted);
    padding: 3rem 0;
}

.cart-empty span {
    font-size: 2.8rem;
    display: block;
    margin-bottom: .75rem;
}

/* Order details view */
.prefilled-info {
    background: rgba(14, 178, 173, .06);
    border: 1px solid rgba(14, 178, 173, .15);
    border-radius: var(--r);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: .85rem;
    line-height: 1.8;
}

.prefilled-info strong {
    color: var(--cyan);
    font-weight: 700;
}

/* ── Info card: READ mode ── */
.info-read {
    padding: 0;
}

.info-rows {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: .85rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .85rem;
    gap: .5rem;
}

.info-row span:last-child {
    text-align: right;
    font-weight: 600;
    word-break: break-all;
}

.info-lbl {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cyan);
    white-space: nowrap;
    flex-shrink: 0;
}

.loc-saved {
    color: #22c55e;
    font-weight: 700;
    font-size: .82rem;
}

.btn-edit-info {
    width: 100%;
    background: transparent;
    border: 1px dashed rgba(14, 178, 173, .35);
    color: var(--muted);
    border-radius: var(--r);
    padding: .5rem;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
    transition: border-color .2s, color .2s;
}

.btn-edit-info:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ── Info card: EDIT mode ── */
.edit-heading {
    font-family: var(--fdisplay);
    font-size: .95rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.info-edit .field {
    margin-bottom: .9rem;
}

.info-edit .field label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .35rem;
}

.info-edit input {
    width: 100%;
    background: var(--accent);
    border: 2px solid var(--border);
    border-radius: var(--r);
    padding: .65rem .9rem;
    color: var(--fg);
    font-family: var(--font);
    font-size: .88rem;
    font-weight: 500;
    transition: border-color .2s;
}

.info-edit input:focus {
    border-color: var(--cyan);
    outline: none;
}

.section-label {
    font-family: var(--fdisplay);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

.btn-pair {
    display: flex;
    gap: .5rem;
    margin-top: .4rem;
}

.pair-btn {
    flex: 1;
    background: var(--accent);
    border: 2px solid var(--border);
    color: var(--muted);
    padding: .65rem .5rem;
    border-radius: var(--r);
    cursor: pointer;
    font-weight: 700;
    font-size: .88rem;
    transition: all .15s;
    text-align: center;
}

.pair-btn:hover {
    border-color: rgba(14, 178, 173, .4);
    color: var(--fg);
}

.pair-btn.active-btn {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(14, 178, 173, .08);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

/* Drawer footer */
.drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg2);
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
}

.total-row.grand {
    font-family: var(--fdisplay);
    font-size: 1.35rem;
    color: var(--fg);
    font-weight: 700;
}

.total-row.grand span:last-child {
    color: var(--cyan);
}

.btn-wa {
    background: var(--green);
    color: #000;
    border: none;
    border-radius: var(--r);
    padding: .9rem 1rem;
    font-family: var(--fdisplay);
    font-size: .96rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.btn-wa img {
    width: 22px;
}

.btn-wa:hover {
    background: #1db954;
}

.btn-wa:active {
    transform: scale(.97);
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: .83rem;
    font-weight: 700;
    text-align: center;
    transition: color .2s;
    padding: .2rem;
}

.btn-back:hover {
    color: var(--fg);
}

/* ===========================================
   TOAST
=========================================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.25rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: .87rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    animation: toastIn .3s ease;
}

.toast-out {
    animation: toastOut .3s ease forwards;
}

.toast-success {
    background: #166534;
    color: #bbf7d0;
}

.toast-error {
    background: #7f1d1d;
    color: #fecaca;
}

.toast-info {
    background: #1e3a5f;
    color: #bfdbfe;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ===========================================
   FOOTER
=========================================== */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 500;
}

.site-footer img {
    height: 48px;
    object-fit: contain;
    opacity: .4;
    display: block;
    margin: 0 auto 1rem;
}

/* ===========================================
   EXTRAS (Raita / Salad add-ons)
=========================================== */
.extras-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: .5rem;
}

.extras-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.extra-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent);
    border: 2px solid var(--border);
    border-radius: var(--r);
    padding: .55rem 1rem;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    transition: border-color .15s, background .15s;
    flex: 1;
    min-width: 130px;
}

.extra-check input[type=checkbox] {
    accent-color: var(--cyan);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.extra-check:hover {
    border-color: rgba(14, 178, 173, .4);
}

.extra-check.checked {
    border-color: var(--cyan);
    background: rgba(14, 178, 173, .08);
}

.extra-price {
    margin-left: auto;
    color: var(--cyan);
    font-weight: 700;
    font-size: .82rem;
}

/* Ramzan discount row */
.total-row.discount {
    color: #fcd34d;
    font-weight: 700;
}

.discount-val {
    color: #22c55e;
    font-weight: 700;
}

/* ===========================================
   RESPONSIVE
=========================================== */

/* --- TABLETS & SMALL DESKTOPS (< 1024px) --- */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

/* --- LARGE MOBILE & TABLETS (< 768px) --- */
@media (max-width: 768px) {
    .nav-right {
        gap: .5rem;
    }

    .menu-hdr h2 {
        font-size: 2.2rem;
    }

    .drawer-panel {
        width: 100%;
        border-left: none;
    }

    .modal-box {
        padding: 1.5rem;
        max-width: 95%;
    }
}

/* --- STANDARD MOBILE (< 600px) --- */
@media (max-width: 600px) {
    .nav-brand span {
        font-size: 1.1rem;
    }

    .nav-brand img {
        height: 28px;
    }

    .btn-cart {
        padding: .45rem .85rem;
        font-size: .82rem;
    }

    .btn-logout {
        padding: .4rem .6rem;
        font-size: .75rem;
    }

    .menu-hdr {
        padding: 2.5rem 1rem 1.5rem;
    }

    .menu-hdr h2 {
        font-size: 1.8rem;
    }

    .menu-hdr p {
        font-size: .85rem;
    }

    .menu-grid {
        padding: 1rem .75rem 3rem;
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }

    .menu-card {
        padding: .75rem;
        border-radius: 1rem;
    }

    .card-img-wrap {
        height: 110px;
        margin-bottom: .6rem;
    }

    .card-name {
        font-size: 1rem;
        margin-bottom: .2rem;
    }

    .card-desc {
        display: none;
        /* Hide desc on 2-col mobile to keep it tidy */
    }

    .card-footer {
        margin-bottom: .25rem;
    }

    .card-price {
        font-size: .9rem;
    }

    .btn-add-card {
        padding: .4rem .6rem;
        font-size: .75rem;
    }

    .signup-box {
        padding: 1.75rem 1.25rem;
        border-radius: 1.5rem;
    }

    .signup-logo h1 {
        font-size: 1.6rem;
    }

    .modal-img {
        height: 160px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .size-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .modal-price {
        font-size: 1.35rem;
    }

    .extras-row {
        flex-direction: column;
    }
}

/* --- VERY SMALL MOBILE (< 360px) --- */
@media (max-width: 360px) {
    .nav-brand span {
        display: none;
    }

    /* Show only logo if too tight */
    .nav-right {
        gap: .35rem;
    }

    .btn-cart {
        padding: .4rem .6rem;
        font-size: .75rem;
        gap: .2rem;
    }

    .btn-logout {
        padding: .35rem .5rem;
        font-size: .7rem;
    }

    .signup-logo h1 {
        font-size: 1.4rem;
    }

    .card-name {
        font-size: 1.1rem;
    }

    .btn-add-card {
        font-size: .8rem;
    }
}

/* ===========================================
   ONLINE PAYMENT ACCOUNT SELECTOR
=========================================== */
.account-selector {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: .6rem;
}

.account-group {
    background: rgba(0, 0, 0, .03);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: .85rem;
    transition: background .2s;
}

.account-group:hover {
    background: rgba(0, 0, 0, .05);
}

.account-desc {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: .5rem;
}

.account-group .select-btn {
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: .85rem;
    padding: .65rem 1rem;
    color: var(--fg);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .65rem;
    transition: all .2s;
}

.account-group .select-btn:hover {
    border-color: rgba(14, 178, 173, .3);
}

.account-group .select-btn.selected {
    background: rgba(14, 178, 173, .1);
    border-color: var(--cyan);
    color: var(--cyan);
}

.account-group .select-btn i {
    font-size: 1rem;
    opacity: .6;
}

.account-group .select-btn.selected i {
    opacity: 1;
}
