:root {
    --bg-gradient:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.16) 24%, transparent 54%),
        repeating-linear-gradient(0deg, rgba(96, 60, 36, 0.025) 0 1px, transparent 1px 9px),
        linear-gradient(180deg, #fbf4e4 0%, #f2e4c8 100%);
    --bg: #f5ead4;
    --surface: rgba(255, 250, 238, 0.92);
    --surface-raised: rgba(243, 230, 203, 0.95);
    --cream: #421915;
    --cream-muted: #846d5f;
    --gold: #b9922f;
    --gold-light: #d2af45;
    --gold-dim: rgba(185,146,47,0.15);
    --copper: #B87333;
    --border: rgba(85, 38, 29, 0.15);
    --border-strong: rgba(85, 38, 29, 0.28);
    --brand-red: #8c0c1b;
    --brand-red-bright: #c52922;
    --success: #2e7d32;
    --warning: #ff9800;
    --info: #2196f3;
    --radius: 16px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--cream);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body { padding: 0; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.08), transparent 38%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, rgba(0,0,0,0.035) 1px 3px);
    mix-blend-mode: soft-light;
    opacity: 0.5;
    z-index: 0;
}

button, input {
    font: inherit;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    background: none;
    transition: all .2s ease;
}

button:active:not(:disabled) { transform: scale(0.97); }
button:disabled { opacity: .4; cursor: not-allowed; }

input {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    width: 100%;
    color: var(--cream);
    font-size: 0.95rem;
}

input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}

input::placeholder { color: var(--cream-muted); opacity: .6; }

.hidden { display: none !important; }

/* ---------- Layout ---------- */
.page-shell {
    max-width: 520px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 120px;
}

/* ---------- Typography ---------- */
h1, h2, h3, .serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    margin: 0;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 18px;
    letter-spacing: 0.01em;
}

/* ---------- Header ---------- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 24px;
}

.brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.brand span {
    font-weight: 400;
    opacity: .7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cream-muted);
    padding: 6px 0;
    letter-spacing: 0.02em;
}

.btn-text:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
    display: none;
    text-align: center;
    padding: 0;
}

.hero-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 700;
    font-style: italic;
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: 0.9rem;
    color: var(--cream-muted);
    margin-bottom: 28px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    width: 100%;
    max-width: 320px;
}

.btn-gold {
    background: var(--gold);
    color: #0a0a0a;
}

.btn-gold:hover:not(:disabled) {
    background: var(--gold-light);
    box-shadow: 0 4px 20px rgba(201,162,39,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover:not(:disabled) {
    background: var(--gold-dim);
    border-color: var(--gold);
}

.btn-copper {
    background: var(--copper);
    color: #fff;
}

.btn-copper:hover:not(:disabled) { opacity: .9; }

.btn-sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.85rem;
    max-width: none;
    width: auto;
    flex: 1 1 auto;
}

/* ---------- Mesa Banner ---------- */
.mesa-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.mesa-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mesa-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    font-weight: 600;
}

.mesa-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cream);
}

/* ---------- Claim Section ---------- */
.claim-section {
    margin-bottom: 24px;
}

.claim-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.claim-form .field-grow { flex: 1 1 auto; margin: 0; }
.claim-form .btn { flex: 0 0 auto; white-space: nowrap; max-width: none; width: auto; }

.hint {
    font-size: 0.8rem;
    color: var(--cream-muted);
    margin: 10px 0 0;
    font-weight: 300;
}

/* ---------- Account Section ---------- */
.account-section {
    margin-bottom: 24px;
}

.account-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.account-user {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cream);
}

.account-balance {
    text-align: right;
}

.balance-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream-muted);
    margin-bottom: 2px;
}

.balance-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
}

.cashback-banner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(201,162,39,0.18);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, rgba(201,162,39,0.08), rgba(201,162,39,0.03)),
        var(--surface);
}

.cashback-banner p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--cream);
}

.cashback-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(201,162,39,0.12);
    border: 1px solid rgba(201,162,39,0.25);
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aba-lookup-status {
    margin: -4px 0 14px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(33,150,243,0.25);
    background: rgba(33,150,243,0.08);
    color: var(--cream);
    font-size: 0.82rem;
    line-height: 1.45;
}

.aba-lookup-status.ok {
    border-color: rgba(46,125,50,0.3);
    background: rgba(46,125,50,0.1);
}

.aba-lookup-status.warn {
    border-color: rgba(255,152,0,0.32);
    background: rgba(255,152,0,0.1);
}

.aba-lookup-status.error {
    border-color: rgba(211,47,47,0.32);
    background: rgba(211,47,47,0.1);
}

.summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.summary-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
}

.pill-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream-muted);
    margin-bottom: 4px;
}

.summary-pill strong {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
}

.pill-accent { border-color: var(--gold); background: rgba(201,162,39,0.06); }
.pill-accent strong { color: var(--gold); }

.account-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.account-actions-compact {
    margin-bottom: 0;
}

.table-account-panel {
    margin-top: 4px;
    padding: 14px;
    border: 1px solid rgba(201,162,39,0.18);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, rgba(201,162,39,0.07), rgba(20,2,4,0.18)),
        var(--surface);
}

.table-stage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.stage-kicker {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 700;
}

.stage-title {
    display: block;
    margin-top: 2px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cream);
}

.table-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.table-primary-actions .btn-sm {
    width: 100%;
    min-width: 0;
}

.table-account-details {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.table-account-details > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--cream);
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.table-account-details > summary::-webkit-details-marker {
    display: none;
}

.table-account-details > summary strong {
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.prepay-field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.prepay-field span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cream-muted);
    font-weight: 600;
}

.prepay-field input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--cream);
}

.area-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cream-muted);
    margin: 18px 0 10px;
    font-weight: 500;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--surface-raised);
    color: var(--cream-muted);
    border: 1px solid var(--border);
}

.badge-primary { background: rgba(201,162,39,0.12); color: var(--gold); border-color: rgba(201,162,39,0.25); }
.badge-success { background: rgba(46,125,50,0.12); color: #81c784; border-color: rgba(46,125,50,0.25); }

/* ---------- Lists ---------- */
.list-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-state {
    padding: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--cream-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    font-style: italic;
}

.order-entry, .payment-entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.entry-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.entry-row strong {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--cream);
}

.entry-meta {
    font-size: 0.8rem;
    color: var(--cream-muted);
    margin-top: 2px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot--sent    { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.status-dot--served  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot--active  { background: var(--info);    box-shadow: 0 0 6px var(--info); }

/* ---------- Transfer Box ---------- */
.transfer-box {
    background: rgba(201,162,39,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.transfer-box strong {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gold);
}

.checkout-link, .inline-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 8px 14px;
    background: var(--gold);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ---------- Categories Nav ---------- */
.categories-nav {
    margin-bottom: 28px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all .2s ease;
}

.category-card:hover {
    border-color: var(--gold);
    background: rgba(201,162,39,0.05);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 4px;
}

.category-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.category-desc {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 500;
}

/* ---------- Recomendados ---------- */
.recomendados {
    margin-bottom: 28px;
}

.product-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar { display: none; }

.product-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.product-card .product-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.product-card .product-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream);
}

.product-card .product-desc {
    font-size: 0.72rem;
    color: var(--cream-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
}

/* ---------- Menu ---------- */
.menu-section { margin-bottom: 32px; }

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-category {
    margin-bottom: 8px;
}

.menu-category-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item-card {
    display: flex;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    transition: all .2s ease;
}

.menu-item-card:hover {
    border-color: var(--border-strong);
}

.menu-item-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.menu-item-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-info strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
}

.menu-item-info small {
    font-size: 0.8rem;
    color: var(--cream-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
}

.menu-item-price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
}

.btn-add {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: #0a0a0a;
    font-size: 1.3rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

.btn-add:hover:not(:disabled) {
    background: var(--gold-light);
    box-shadow: 0 2px 12px rgba(201,162,39,0.3);
}

.btn-add:disabled {
    background: var(--surface-raised);
    color: var(--cream-muted);
    opacity: .4;
}

/* ---------- Connection Box ---------- */
.connection-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.connection-box summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--cream-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.field span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cream-muted);
}

/* ---------- Modal ---------- */
.modal, .drawer {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal.hidden, .drawer.hidden { display: none !important; }

.modal-backdrop, .drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
}

.modal-sheet {
    position: relative;
    background: var(--surface);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    padding: 24px;
    overflow-y: auto;
    animation: slideUp .3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--cream-muted);
    display: grid;
    place-items: center;
    font-size: 1rem;
    z-index: 10;
}

.modal-close:hover { color: var(--cream); border-color: var(--gold); }

.modal-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 8px;
}

.modal-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.modal-product h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 4px;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--cream-muted);
    margin-bottom: 20px;
    line-height: 1.4;
    max-width: 280px;
}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 16px 0;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--cream);
    font-size: 1.4rem;
    font-weight: 300;
    display: grid;
    place-items: center;
    transition: all .2s ease;
}

.qty-btn:hover { border-color: var(--gold); color: var(--gold); }

.qty-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    color: var(--cream);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.modal-total {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

/* ---------- Drawer ---------- */
.drawer-panel {
    position: relative;
    background: var(--surface);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream);
}

.drawer-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-footer {
    padding: 16px 22px 24px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

.drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--cream-muted);
}

.drawer-total-row strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--gold);
}

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

.cart-line:last-child { border-bottom: none; }

.cart-line strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
}

.cart-line .cart-meta {
    font-size: 0.78rem;
    color: var(--cream-muted);
    margin-top: 2px;
    font-style: italic;
}

.cart-line .cart-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.cart-line .cart-actions button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    color: var(--cream);
}

.cart-line .cart-actions button:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- FAB ---------- */
.fab {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 800;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(201,162,39,0.35);
    border: 2px solid rgba(255,255,255,0.08);
    transition: transform .15s ease, box-shadow .2s ease;
}

/* ---------- Bottom Navigation ---------- */
.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    z-index: 820;
    width: min(calc(100% - 24px), 500px);
    min-height: 64px;
    padding: 7px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid rgba(245,240,232,0.14);
    border-radius: 18px;
    background: rgba(18, 1, 4, 0.92);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    backdrop-filter: blur(14px);
}

.bottom-nav-item {
    position: relative;
    min-width: 0;
    min-height: 50px;
    padding: 6px 3px 5px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--cream-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.bottom-nav-item:hover:not(:disabled),
.bottom-nav-item.is-active {
    color: var(--gold);
    background: rgba(201,162,39,0.08);
}

.bottom-nav-item:disabled {
    opacity: 0.45;
}

.bottom-nav-icon {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 22px;
    font-size: 1rem;
    line-height: 1;
}

.bottom-nav-cart-icon {
    font-size: 1.08rem;
}

.bottom-nav-count {
    position: absolute;
    top: -6px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: #090102;
    border: 2px solid rgba(18,1,4,0.96);
    font-size: 0.62rem;
    font-weight: 800;
}

.fab:hover { box-shadow: 0 8px 32px rgba(201,162,39,0.45); }
.fab:active { transform: scale(0.92); }

.fab-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #fff;
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid var(--gold);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    background: var(--surface-raised);
    color: var(--cream);
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ---------- Footer ---------- */
.app-footer {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.footer-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}

.footer-brand span { font-weight: 400; opacity: .7; }

.footer-address {
    font-size: 0.8rem;
    color: var(--cream-muted);
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover { text-decoration: underline; }

/* ---------- Identity / Brand Custom Header ---------- */
.identity-header {
    position: relative;
    isolation: isolate;
    overflow: visible;
    background: transparent;
    color: var(--cream);
    padding: 14px 56px 8px;
    border-radius: 0;
    box-shadow: none;
    margin: 0 -16px 14px;
    min-height: 112px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.identity-header::before, .identity-header::after {
    display: none;
}

.identity-header::before {
    z-index: -2;
    background:
        repeating-linear-gradient(96deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 8px),
        repeating-linear-gradient(4deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 6px);
    mix-blend-mode: soft-light;
    opacity: 0.7;
}

.identity-header::after {
    z-index: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.055), transparent),
        radial-gradient(ellipse at 50% 16%, rgba(255,255,255,0.1), transparent 46%);
    opacity: 0.85;
}

.identity-header .crop-corner {
    display: none;
}

.brand-wordmark {
    display: block;
    position: relative;
    z-index: 1;
    width: min(76vw, 290px);
    height: auto;
    max-height: 128px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.22));
}

.identity-script {
    display: none;
}

.identity-num {
    display: none;
}

.identity-sub {
    display: none;
}

.identity-side {
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20,2,4,0.7);
    border: 1px solid rgba(245,240,232,0.15);
    padding: 16px 6px;
    border-radius: 6px;
    display: none;
}
@media (min-width: 480px) {
    .identity-side { display: flex; }
}
.identity-side span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--cream-muted);
}

/* ---------- Map Selector Component ---------- */
.map-selector {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.map-selector-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.02em;
}

.floor-section {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
}
.floor-section:last-child { margin-bottom: 0; }

.floor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.floor-badge {
    display: inline-flex;
    align-items: center;
    background: var(--brand-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(189,19,39,0.3);
}

.floor-meta {
    font-size: 0.7rem;
    color: var(--cream-muted);
    font-weight: 500;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 8px;
    justify-items: center;
}

.table-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-raised);
    border: 2px solid rgba(255,255,255,0.12);
    color: var(--cream);
    font-size: 0.85rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.table-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.05);
}

.table-btn.selected {
    background: var(--success);
    color: #fff;
    border-color: #81c784;
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(46,125,50,0.6);
    z-index: 2;
}

.table-btn.selected::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--gold-light);
}

.map-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.claim-identity-panel {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(245,240,232,0.1);
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.18);
}

.claim-identity-status {
    margin: 0 0 10px;
    color: var(--cream-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
}

.claim-identity-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.claim-identity-actions .btn {
    width: 100%;
    min-width: 0;
}

/* ---------- Cream / menu refresh ---------- */
body::before {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.34), transparent 42%),
        repeating-linear-gradient(90deg, rgba(85, 38, 29, 0.024) 0 1px, transparent 1px 4px);
    mix-blend-mode: normal;
    opacity: 0.76;
}

input {
    background: rgba(255, 252, 244, 0.94);
}

.page-shell {
    position: relative;
    z-index: 1;
}

.section-title,
.menu-category-title,
.footer-brand,
.brand {
    color: var(--brand-red);
}

.identity-header {
    min-height: 214px;
    margin: 0 -16px 22px;
    padding: 30px 22px 24px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.06), transparent 20%, transparent 80%, rgba(0,0,0,0.14)),
        repeating-linear-gradient(96deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 8px),
        repeating-linear-gradient(4deg, rgba(0,0,0,0.15) 0 1px, transparent 1px 6px),
        radial-gradient(circle at 50% 12%, rgba(255,255,255,0.12), transparent 36%),
        linear-gradient(145deg, #93091b 0%, #6e0614 50%, #4a030b 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    border-bottom: 1px solid rgba(78, 20, 17, 0.28);
    box-shadow: 0 18px 42px rgba(72, 23, 17, 0.2);
}

.identity-header::before,
.identity-header::after {
    content: '';
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}

.identity-header::before {
    z-index: -1;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.026) 0 1px, transparent 1px 4px),
        radial-gradient(ellipse at 50% 18%, rgba(255,255,255,0.12), transparent 50%);
    opacity: 0.8;
}

.identity-header::after {
    z-index: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 62%, rgba(0,0,0,0.08));
}

.brand-wordmark {
    width: min(84vw, 380px);
    max-height: none;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.22));
}

.account-head,
.cashback-banner,
.table-account-panel,
.map-selector,
.category-card,
.product-card,
.menu-item-card,
.order-entry,
.payment-entry,
.summary-pill,
.transfer-box,
.modal-sheet,
.drawer-panel {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 10px 28px rgba(86, 43, 24, 0.08);
}

.floor-section,
.claim-identity-panel {
    background: rgba(255, 252, 244, 0.58);
    border-color: rgba(85, 38, 29, 0.14);
}

.floor-header,
.menu-category-title,
.table-account-details,
.drawer-header,
.drawer-footer,
.cart-line,
.connection-box,
.app-footer {
    border-color: rgba(85, 38, 29, 0.14);
}

.floor-badge {
    background: var(--brand-red);
    color: #fff7e8;
    box-shadow: none;
}

.btn-gold,
.btn-add {
    color: #2a130d;
}

.btn-outline {
    color: var(--brand-red);
    border-color: rgba(140, 12, 27, 0.22);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(140, 12, 27, 0.06);
    border-color: rgba(140, 12, 27, 0.34);
}

.badge-success {
    color: #2e7d32;
}

.menu-category-title {
    align-items: baseline;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-item-image,
.modal-image {
    background: #f0e2c6;
    border-color: rgba(85, 38, 29, 0.12);
}

.menu-item-info small,
.product-card .product-desc {
    color: #796457;
}

.table-btn {
    background: #fff9ed;
    border-color: rgba(140, 12, 27, 0.34);
    color: var(--brand-red);
    font-weight: 800;
}

.table-btn:hover {
    border-color: var(--gold);
    color: #6c130f;
}

.table-btn.selected {
    color: #fff;
}

.bottom-nav {
    border-color: rgba(85, 38, 29, 0.16);
    background: rgba(255, 250, 238, 0.94);
    box-shadow: 0 12px 36px rgba(86, 43, 24, 0.2);
}

.bottom-nav-item {
    color: #846d5f;
}

.bottom-nav-item:hover:not(:disabled),
.bottom-nav-item.is-active {
    color: var(--brand-red);
    background: rgba(140, 12, 27, 0.06);
}

.bottom-nav-count {
    border-color: rgba(255, 250, 238, 0.98);
}

.drawer-footer {
    background: rgba(243, 230, 203, 0.72);
}

.modal-backdrop,
.drawer-backdrop {
    background: rgba(42, 19, 13, 0.58);
}

.toast {
    background: #6e0614;
    color: #fff8e9;
    border-color: rgba(255,255,255,0.12);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
    .page-shell { padding: 24px; max-width: 480px; }
    .modal-sheet, .drawer-panel { max-width: 440px; border-radius: var(--radius); margin-bottom: 24px; }
    .drawer-panel { max-height: 70vh; }
    .hero-quote { font-size: 2.4rem; }
}

/* ---------- Burgundy legibility pass ---------- */
:root {
    --bg-gradient:
        radial-gradient(ellipse at 50% 0%, rgba(255, 234, 198, 0.16), transparent 36%),
        repeating-linear-gradient(96deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px),
        repeating-linear-gradient(4deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 7px),
        linear-gradient(180deg, #7d0718 0%, #50030d 44%, #240006 100%);
    --bg: #50030d;
    --surface: rgba(255, 249, 235, 0.96);
    --surface-raised: rgba(249, 237, 210, 0.98);
    --cream: #35100f;
    --cream-muted: #735b50;
    --gold: #caa33a;
    --gold-light: #dfbd52;
    --gold-dim: rgba(202, 163, 58, 0.18);
    --border: rgba(86, 23, 20, 0.18);
    --border-strong: rgba(86, 23, 20, 0.34);
    --brand-red: #8b0718;
    --brand-red-bright: #b91025;
    --radius: 14px;
    --radius-sm: 10px;
}

html,
body {
    background: var(--bg-gradient);
    color: var(--cream);
}

body::before {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.045), transparent 24%, transparent 76%, rgba(0,0,0,0.14)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.08) 0 1px, transparent 1px 6px);
    mix-blend-mode: soft-light;
    opacity: 0.68;
}

.identity-header {
    min-height: 186px;
    margin: 0 -16px 18px;
    padding: 28px 20px 22px;
    background:
        radial-gradient(ellipse at 50% 6%, rgba(255, 236, 198, 0.18), transparent 48%),
        repeating-linear-gradient(96deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 8px),
        repeating-linear-gradient(4deg, rgba(0,0,0,0.14) 0 1px, transparent 1px 7px),
        linear-gradient(145deg, #9c0a1d 0%, #6b0413 52%, #3a0109 100%);
    border-bottom: 1px solid rgba(255, 231, 179, 0.16);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 18px 46px rgba(21, 0, 5, 0.34);
}

.brand-wordmark {
    width: min(78vw, 360px);
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.36));
}

.mini-logo {
    position: fixed;
    top: 10px;
    left: 50%;
    z-index: 860;
    width: 156px;
    min-height: 42px;
    padding: 5px 14px;
    transform: translate(-50%, -18px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 232, 180, 0.18);
    border-radius: 999px;
    background:
        repeating-linear-gradient(96deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px),
        linear-gradient(145deg, rgba(126, 7, 24, 0.96), rgba(55, 1, 9, 0.96));
    box-shadow: 0 12px 34px rgba(16, 0, 4, 0.42);
    backdrop-filter: blur(10px);
    transition: opacity .26s ease, transform .26s ease;
}

.mini-logo.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

.mini-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.mini-logo.is-popping img {
    animation: miniLogoPop .82s ease both;
}

@keyframes miniLogoPop {
    0% { opacity: 0; transform: scale(0.76) translateY(-8px); }
    48% { opacity: 1; transform: scale(1.08) translateY(0); }
    100% { opacity: 1; transform: scale(1); }
}

.account-head,
.cashback-banner,
.table-account-panel,
.map-selector,
.category-card,
.product-card,
.menu-item-card,
.order-entry,
.payment-entry,
.summary-pill,
.transfer-box,
.modal-sheet,
.drawer-panel {
    background: var(--surface);
    border-color: var(--border);
    color: var(--cream);
    box-shadow: 0 14px 36px rgba(24, 0, 5, 0.18);
}

.map-selector {
    padding: 18px 14px;
}

.floor-section,
.claim-identity-panel {
    background: rgba(255, 249, 235, 0.78);
    border-color: rgba(86, 23, 20, 0.16);
}

.floor-header {
    border-color: rgba(86, 23, 20, 0.14);
}

.floor-meta,
.hint,
.claim-identity-status,
.modal-desc,
.entry-meta,
.product-card .product-desc,
.menu-item-info small {
    color: #735b50;
}

.section-title,
.menu-category-title,
.footer-brand,
.brand,
.floor-badge,
.mesa-label {
    color: var(--brand-red);
}

.floor-badge {
    background: var(--brand-red);
    color: #fff6e6;
}

.table-state-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0 2px;
    color: #5d4038;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.table-state-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.legend-free { background: #fff9ed; border: 1px solid rgba(139, 7, 24, 0.45); }
.legend-occupied { background: #7a3b3b; }
.legend-mine { background: var(--gold); }

.table-btn {
    width: 46px;
    height: 46px;
    background: #fff9ed;
    border: 2px solid rgba(139, 7, 24, 0.42);
    color: #7b0717;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 4px 10px rgba(58, 1, 9, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.table-btn::before {
    display: none;
}

.table-btn:hover:not(:disabled) {
    border-color: var(--gold);
    background: #fff3d2;
    color: #4f020d;
    transform: translateY(-1px) scale(1.04);
}

.table-btn.selected,
.table-btn.is-my-table {
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    border-color: #fff1bf;
    color: #280206;
    box-shadow: 0 0 0 3px rgba(202, 163, 58, 0.2), 0 8px 18px rgba(45, 0, 6, 0.18);
}

.table-btn.selected::after,
.table-btn.is-my-table::after {
    background: #2e7d32;
    box-shadow: 0 0 0 2px #fff7df;
}

.table-btn.is-occupied {
    background: #815050;
    border-color: rgba(255, 230, 212, 0.26);
    color: rgba(255, 249, 235, 0.9);
    box-shadow: none;
}

.table-btn.is-checkout {
    background: #6b4a2c;
}

.table-btn:disabled {
    opacity: 0.72;
}

.table-btn.is-my-table:disabled {
    opacity: 1;
}

.modal-kicker {
    margin: 0 0 4px;
    color: var(--brand-red);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.table-confirm-sheet {
    text-align: center;
    padding-top: 22px;
}

.table-confirm-brand {
    width: 148px;
    margin: 0 auto 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(96deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px),
        linear-gradient(145deg, #8f0719, #4d020c);
    box-shadow: 0 10px 26px rgba(45, 0, 6, 0.18);
    animation: confirmBrandIn .42s ease both;
}

.table-confirm-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.table-confirm-sheet h3 {
    margin: 0 0 6px;
    font-size: 1.9rem;
    color: #2f0d0e;
}

.table-confirm-sheet .modal-desc {
    margin: 0 auto 16px;
    max-width: 320px;
    font-size: 0.95rem;
}

.table-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.table-confirm-actions .btn,
.table-confirm-sheet .claim-identity-actions .btn {
    width: 100%;
    max-width: none;
}

@keyframes confirmBrandIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.btn-gold,
.btn-add {
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    color: #260a05;
}

.btn-outline {
    color: var(--brand-red);
    border-color: rgba(139, 7, 24, 0.34);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(139, 7, 24, 0.08);
    border-color: rgba(139, 7, 24, 0.5);
}

.bottom-nav {
    border-color: rgba(255, 232, 180, 0.16);
    background:
        repeating-linear-gradient(96deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px),
        rgba(40, 0, 7, 0.94);
    box-shadow: 0 14px 40px rgba(12, 0, 3, 0.58);
}

.bottom-nav-item {
    color: rgba(255, 246, 229, 0.72);
}

.bottom-nav-item:hover:not(:disabled),
.bottom-nav-item.is-active {
    color: var(--gold-light);
    background: rgba(255, 246, 229, 0.08);
}

.toast {
    background: #4f020d;
    color: #fff8e8;
}

@media (min-width: 640px) {
    .page-shell { padding: 24px; max-width: 500px; }
    .identity-header { margin-left: -24px; margin-right: -24px; }
    .table-confirm-actions { grid-template-columns: 1fr 1fr; }
}
