/* =========================================================
   SmartDine - stylesheet (mobile first)
   Colours follow the UI design in the report (Figures 3.7 - 3.13)
   ========================================================= */
:root {
    --ink:        #1d1d1b;   /* dark header */
    --gold:       #f0b232;   /* main buttons */
    --gold-dark:  #d8991b;
    --gold-soft:  #fdf1cc;
    --bg:         #efefec;   /* page background */
    --card:       #ffffff;
    --line:       #e4e4df;
    --text:       #222220;
    --muted:      #7d7d76;
    --green:      #1f8a46;
    --green-dark: #17703a;
    --green-soft: #ddf2e3;
    --orange:     #e9773a;
    --orange-soft:#fde3d4;
    --error-bg:   #fdecea;
    --error-text: #a12a1b;
    --olive-dark: #2f2e1c;   /* table entry page */
    --olive:      #4a4a30;
    --olive-light:#6b6c4c;
    --radius:     14px;
    --radius-sm:  10px;
    --app-width:  480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { height: 100%; background: #d6d6d1; }

body {
    font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* hide number spinner arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- App shell (phone-width column) ---------- */
.app {
    max-width: var(--app-width);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

.page-body { padding: 20px 16px; }

/* ---------- Dark header ---------- */
.app-header {
    background: var(--ink);
    color: #fff;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 22px;
    border-radius: 0 0 26px 26px;
}
.app-header.flat { border-radius: 0; }
.app-header h1 { font-size: 1.4rem; font-weight: 800; margin-top: 6px; }
.app-header .sub { font-size: 0.8rem; opacity: 0.8; margin-top: 2px; }

.hello-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.table-pill {
    border: 1.5px solid var(--gold);
    color: var(--gold);
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.search { position: relative; margin-top: 16px; }
.search input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    font: inherit;
    font-size: 16px;                 /* stops iPhone zoom */
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.search input::placeholder { color: rgba(255, 255, 255, 0.6); }
.search input:focus { border-color: var(--gold); }
.search svg {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    fill: none; stroke: #fff; stroke-width: 2;
    pointer-events: none;
}

.chips {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    border: none;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #bdbdb6;
    color: var(--ink);
}
.chip.active { background: var(--gold); }

/* ---------- Messages ---------- */
.section-title { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }

.flash {
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.track-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gold-soft);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.track-banner span:last-child { text-decoration: underline; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 0.9rem; }

/* ---------- Menu grid (Figure 3.8) ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.menu-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 8px 12px;
}
.menu-card a { display: block; text-decoration: none; }
.menu-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #eee; }
.menu-card h3 { font-size: 0.85rem; font-weight: 700; line-height: 1.25; margin-top: 8px; }
.menu-card .price { font-size: 0.8rem; font-weight: 600; margin: 2px 0 8px; }
.menu-card form { margin-top: auto; }
.menu-card.unavailable img { filter: grayscale(1); opacity: 0.6; }

.btn-mini {
    border: none;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}
.sold-out { margin-top: auto; font-size: 0.75rem; font-weight: 700; color: var(--muted); }

/* ---------- Bottom bar + buttons ---------- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-width);
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 10;
}

.view-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 700;
}
.cart-pill {
    background: var(--gold);
    color: var(--ink);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.75rem;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:not(:disabled):hover, .btn-gold:not(:disabled):active { background: var(--gold-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:not(:disabled):hover, .btn-green:not(:disabled):active { background: var(--green-dark); }

/* Back button - same on every page (topRow() in functions.php) */
.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 34px;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 16px 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}
.back-btn span { font-size: 1.1rem; line-height: 1; }
.back-btn:hover, .back-btn:active { background: rgba(255, 255, 255, 0.24); }
.app-header .top-row + h1 { margin-top: 16px; }

/* dark strip for pages without a big header */
.top-bar { background: var(--ink); padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px; }

/* ---------- Item details (Figure 3.9) ---------- */
.detail-top { background: var(--ink); padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; }
.detail-img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; background: #eee; }
.detail-body { padding: 20px; }

.tag-best {
    display: inline-block;
    background: var(--gold-soft);
    color: #9a6400;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.detail-body h1 { font-size: 1.3rem; font-weight: 800; }
.detail-desc { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.detail-price { font-size: 1.3rem; font-weight: 800; color: var(--gold-dark); margin: 14px 0 6px; }

.field-label { display: block; font-size: 0.78rem; font-weight: 700; margin: 18px 0 8px; }

.addon {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #dcdcd7;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}
.addon .name { flex: 1; font-weight: 600; }
.addon .add-price { font-size: 0.8rem; font-weight: 600; }
.addon input { width: 18px; height: 18px; accent-color: var(--gold-dark); }

/* special request (Figure 3.9) */
.remark-box {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;                 /* stops iPhone zoom */
    border: 1.5px solid #8d8d86;
    border-radius: 8px;
    background: #fff;
    resize: vertical;
}
.remark-box:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 178, 50, 0.3); }
.remark-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.remark-chip {
    border: 1.5px solid #c9c9c3;
    background: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}
.remark-chip.on { background: var(--gold-soft); border-color: var(--gold); }
.remark-note { font-size: 0.75rem; font-style: italic; color: #9a6400; }

.qty-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.qty-row .field-label { margin: 0; }

.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 1rem;
    font-weight: 700;
}
.stepper input, .stepper .qty {
    width: 40px;
    text-align: center;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    background: transparent;
}

/* ---------- Cart (FR05) ---------- */
.cart-line {
    display: flex;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
}
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.cart-info { flex: 1; min-width: 0; }
.cart-info h3 { font-size: 0.95rem; font-weight: 700; }
.cart-addons { font-size: 0.75rem; color: var(--muted); }
.cart-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.line-total { font-weight: 700; }
.unavailable-note { font-size: 0.75rem; font-weight: 600; color: var(--error-text); }
.link-remove {
    border: none;
    background: none;
    padding: 0;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--error-text);
    text-decoration: underline;
}

/* ---------- Cards and summaries ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-bottom: 16px;
}
.card-label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }

.sum-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 4px 0;
}
.sum-row.dark { color: var(--text); font-weight: 600; }
.sum-row.total {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 12px;
}

.sum-row.total:first-child { border-top: none; margin-top: 0; padding-top: 4px; }

/* ---------- Order confirmation (Figure 3.10) ---------- */
.center-page { padding: 48px 24px 24px; text-align: center; }

.check-circle {
    width: 96px; height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--green-soft);
    display: grid;
    place-items: center;
}
.check-circle span {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 4px solid var(--green);
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    font-weight: 800;
}
.center-page h1 { font-size: 1.5rem; font-weight: 800; }
.center-page .lead { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.order-no-box {
    background: var(--gold-soft);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin: 24px 0;
}
.order-no-box small { font-size: 0.75rem; color: var(--muted); }
.order-no-box strong { display: block; font-size: 2rem; font-weight: 800; color: var(--gold-dark); }

.info-card {
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 6px 16px;
    text-align: left;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row.total { font-size: 1rem; font-weight: 800; }
.status-text { color: var(--gold-dark); }

/* ---------- Payment (Figure 3.11) ---------- */
.amount-card {
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    padding: 18px;
    margin-bottom: 22px;
}
.amount-card small { font-size: 0.78rem; color: var(--muted); }
.amount-card strong { display: block; font-size: 1.8rem; font-weight: 800; }

.pay-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
}
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-icon { width: 36px; font-size: 1.6rem; text-align: center; }
.pay-text { flex: 1; }
.pay-text strong { display: block; font-size: 0.9rem; }
.pay-text small { font-size: 0.72rem; color: var(--muted); }
.tick {
    flex: none;
    width: 20px; height: 20px;
    border: 1.5px solid #999;
    border-radius: 4px;
    display: grid;
    place-items: center;
}
.pay-option.selected { border-color: var(--gold); background: var(--gold-soft); }
.pay-option.selected .tick { background: var(--gold); border-color: var(--gold-dark); }
.pay-option.selected .tick::after { content: '\2713'; font-size: 0.8rem; font-weight: 800; color: var(--ink); }
.pay-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Order tracking (Figure 3.12) ---------- */
.big-order { font-size: 1.6rem; font-weight: 800; }

.badge {
    display: inline-block;
    margin-top: 6px;
    background: var(--gold-soft);
    color: #9a6400;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
.badge.green { background: var(--green-soft); color: var(--green-dark); }

.timeline { list-style: none; margin-top: 20px; }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px; top: 28px; bottom: 2px;
    width: 2px;
    background: var(--line);
}
.timeline li.done:not(:last-child)::before { background: var(--green); }

.dot {
    flex: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #cfcfca;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}
.timeline li.done .dot { background: var(--green); }
.timeline li.current .dot { background: var(--orange); box-shadow: 0 0 0 5px var(--orange-soft); }
.step-title { font-size: 0.85rem; font-weight: 700; }
.step-detail { font-size: 0.72rem; color: var(--muted); }
.timeline li.todo .step-title { color: var(--muted); }

.live-note { text-align: center; font-size: 0.72rem; color: var(--muted); }
.text-link { display: block; text-align: center; font-size: 0.85rem; font-weight: 600; margin-top: 12px; }

/* ---------- E-receipt (Figure 3.13) ---------- */
.receipt {
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.receipt-head { background: var(--ink); color: #fff; text-align: center; padding: 20px; }
.receipt-head small { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.receipt-head h1 { color: var(--gold); font-size: 1.6rem; font-weight: 800; }
.receipt-head p { font-size: 0.75rem; opacity: 0.85; }
.receipt-body { padding: 16px 18px 20px; }

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-size: 0.8rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.meta-grid small { display: block; font-size: 0.68rem; color: var(--muted); }
.meta-grid .right { text-align: right; }

.r-section { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.r-item { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; font-weight: 600; padding: 3px 0; }
.r-item small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); }

.total-paid {
    display: flex;
    justify-content: space-between;
    background: #ececea;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 14px 0;
    font-weight: 800;
}
.method-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    padding: 10px 14px;
}
.method-box .card-label { margin-bottom: 0; }
.paid-badge {
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.barcode {
    width: 60%;
    height: 44px;
    margin: 22px auto 6px;
    background: repeating-linear-gradient(90deg,
        var(--ink) 0 2px, transparent 2px 4px,
        var(--ink) 4px 5px, transparent 5px 8px,
        var(--ink) 8px 11px, transparent 11px 13px);
}
.barcode-text { text-align: center; font-size: 0.7rem; letter-spacing: 2px; color: var(--muted); }

/* ---------- Online banking simulator (bank.php) - fictional "MyBank2U", demo only ---------- */
.bank-page { background: #ffffff; }
.bank-shell { max-width: var(--app-width); margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: #ffffff; padding-bottom: 20px; }
.demo-ribbon {
    background: #ffe08a;
    color: #5c4300;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px;
}

/* black header with yellow brand */
.bank-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    color: #fff;
    padding: 12px 16px;
}
.bank-brand { font-size: 1.3rem; font-weight: 800; color: #f5c518; letter-spacing: 0.2px; }
.demo-tag {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    vertical-align: middle;
}
.bank-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bank-lang { font-size: 0.68rem; opacity: 0.85; }
.bank-cancel { border: none; background: none; color: #fff; font-size: 0.78rem; font-weight: 600; text-decoration: underline; padding: 0; }

.bank-body { padding: 18px 18px 0; }
.bank-welcome { text-align: center; font-size: 1.3rem; font-weight: 700; color: #222; margin-bottom: 16px; }

/* grey login panel */
.bank-panel { background: #f0f0f0; border: 1px solid #e0e0e0; border-radius: 6px; padding: 18px 16px; }
.bank-panel-title { font-size: 0.95rem; font-weight: 700; color: #222; margin-bottom: 14px; }

.bank-secure-note { background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 10px 12px; margin-bottom: 16px; font-size: 0.82rem; }
.bank-secure-note ul { margin: 4px 0 0 18px; }

.bank-login-form label { display: block; font-size: 0.85rem; font-weight: 700; margin: 12px 0 6px; color: #333; }
.bank-login-form input {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;
    border: 1px solid #b9b9b9;
    border-radius: 3px;
    background: #fff;
}
.bank-login-form input:focus { outline: none; border-color: #f5c518; box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.4); }
.bank-user-row { display: flex; gap: 8px; }
.bank-user-row input { flex: 1; }

.bank-next {
    flex: none;
    border: none;
    background: #f5c518;
    color: #111;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 20px;
    border-radius: 3px;
    cursor: pointer;
}
.bank-next:hover, .bank-next:active { background: #e0b50f; }
.bank-next.full { width: 100%; padding: 13px; font-size: 1rem; }

.bank-demo-hint { font-size: 0.72rem; color: #7a5b00; background: #fff6d6; border-radius: 4px; padding: 8px 10px; margin-top: 14px; }
.bank-page .alert-error { margin: 0 0 12px; }

/* security tips under the panel */
.bank-security { padding: 18px 2px 0; font-size: 0.8rem; color: #333; }
.bank-security-title { font-weight: 700; margin-bottom: 6px; }
.bank-security ul { margin: 0 0 12px 18px; }
.bank-security li { padding: 2px 0; }
.bank-security li.link { color: #1a5fb4; text-decoration: underline; }
.bank-help { color: #444; }

/* confirm step */
.bank-merchant { border-bottom: 1px solid #ddd; padding-bottom: 12px; margin-bottom: 12px; }
.bank-merchant div { margin-bottom: 8px; }
.bank-merchant small { display: block; font-size: 0.7rem; color: #777; }
.bank-merchant strong { font-size: 0.9rem; }

.bank-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e2e2e2; font-size: 0.85rem; }
.bank-summary span { color: #777; }
.bank-summary .total { border-bottom: none; font-size: 1.1rem; padding-top: 12px; }
.bank-summary .total strong { color: #111; font-weight: 800; }

.bank-actions { margin-top: 16px; }
.bank-reject {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: 1.5px solid #c4482b;
    border-radius: 3px;
    background: #fff;
    color: #c4482b;
    font-size: 0.95rem;
    font-weight: 700;
}
.bank-link { display: block; margin: 14px auto 0; border: none; background: none; color: #1a5fb4; font-size: 0.85rem; font-weight: 600; text-decoration: underline; }
.bank-foot { text-align: center; font-size: 0.7rem; color: #999; margin: 18px 24px 0; }

/* ---------- Table Number Entry (Figure 3.7) ---------- */
.entry-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: var(--app-width);
    margin: 0 auto;
    background: linear-gradient(180deg, var(--olive-dark) 0%, var(--olive) 55%, var(--olive-light) 100%);
    color: #fff;
}

.entry-header { text-align: center; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 8px; }
.brand { color: var(--gold); font-size: 2rem; font-weight: 800; }
.brand-sub { font-size: 0.8rem; font-weight: 500; opacity: 0.85; margin-top: 4px; }

/* Put a food photo at assets/img/hero.jpg */
.entry-hero {
    width: 62vw;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    margin: 24px auto;
    border-radius: 50%;
    /* Dapo Penyek logo in a round badge; the logo's own black background fills the circle */
    background: #000 url('../img/logo.png') center / 94% no-repeat;
    border: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.entry-form { flex: 1; display: flex; flex-direction: column; padding: 0 24px; }

.entry-hint {
    text-align: center;
    font-size: 0.85rem;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.entry-form label { font-size: 0.75rem; font-weight: 600; margin: 12px 0 6px; }

/* table number locked from the QR code */
.entry-form .table-label { font-size: 0.75rem; font-weight: 600; margin: 12px 0 6px; }
.table-fixed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius);
    background: rgba(240, 178, 50, 0.12);
}
.table-fixed strong { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.table-fixed span { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }

.entry-form input {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    outline: none;
}
.entry-form input:last-of-type { margin-bottom: 32px; }
.entry-form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.entry-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 178, 50, 0.35); }

.entry-action {
    margin: auto -24px 0;
    padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 26px 26px 0 0;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--gold);
    border: none;
    border-radius: 999px;
    transition: background 0.15s;
}
.btn-primary:hover, .btn-primary:active { background: var(--gold-dark); }
.btn-primary:focus-visible { outline: 3px solid var(--olive-dark); outline-offset: 3px; }