:root {
    --bg: #090705;
    --bg-soft: #17120a;
    --card: rgba(24, 18, 10, 0.92);
    --primary: #d8a236;
    --primary-soft: #f0c45c;
    --text: #fff6df;
    --muted: #d3bf92;
    --success: #58c27d;
    --warning: #ffcc66;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, #141008 100%);
    color: var(--text);
    min-height: 100vh;
}

.app-navbar {
    background: rgba(9, 7, 5, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(216, 162, 54, 0.28);
}

.app-navbar .navbar-brand {
    margin-right: auto;
}

.app-navbar .navbar-toggler {
    border-color: rgba(240, 196, 92, 0.35);
    box-shadow: none;
}

.app-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(216, 162, 54, 0.18);
}

@media (max-width: 991px) {
    .app-navbar .container {
        align-items: center;
    }

    .app-navbar .navbar-collapse {
        flex-basis: 100%;
        margin-top: 0.85rem;
        padding: 0.9rem;
        border: 1px solid rgba(216, 162, 54, 0.18);
        border-radius: 1rem;
        background: rgba(14, 10, 6, 0.96);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    }

    .app-navbar .navbar-nav {
        width: 100%;
        align-items: stretch !important;
        gap: 0.4rem !important;
    }

    .app-navbar .nav-item,
    .app-navbar .nav-item .btn,
    .app-navbar .navbar-nav > .btn,
    .app-navbar .navbar-nav > .nav-link,
    .app-navbar .navbar-nav > span {
        width: 100%;
    }

    .app-navbar .nav-link,
    .app-navbar .btn,
    .app-navbar [data-auth-user] {
        display: block;
        text-align: left;
    }

    .app-navbar .nav-link {
        padding: 0.75rem 0.85rem;
        border-radius: 0.8rem;
    }

    .app-navbar .btn {
        padding: 0.75rem 0.85rem;
    }

    .app-navbar [data-auth-user] {
        margin: 0.2rem 0 0;
        padding: 0.35rem 0.25rem;
    }
}

.hero-section {
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(circle at top right, rgba(216, 162, 54, 0.28), transparent 0 32%),
        radial-gradient(circle at left, rgba(240, 196, 92, 0.14), transparent 0 24%);
}

.glass-card,
.app-card,
.info-card {
    background: var(--card);
    border: 1px solid rgba(216, 162, 54, 0.16);
    color: var(--text);
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.info-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 196, 92, 0.45);
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.text-secondary,
small {
    color: var(--muted) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #b98217);
    border: none;
    color: #1a1205;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #1a1205;
}

.btn-outline-light {
    border-color: rgba(240, 196, 92, 0.55);
    color: var(--text);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(216, 162, 54, 0.14);
    color: var(--text);
    border-color: rgba(240, 196, 92, 0.8);
}

.list-group-item {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.08);
}

.badge-soft {
    background: rgba(216, 162, 54, 0.18);
    color: #ffe5a6;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.form-control,
.form-select {
    background: rgba(255, 248, 230, 0.05);
    border: 1px solid rgba(216, 162, 54, 0.18);
    color: var(--text);
}

.form-select option {
    background-color: #1a1208;
    color: var(--text);
}

.form-control::placeholder {
    color: rgba(158, 180, 211, 0.78);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 248, 230, 0.08);
    color: var(--text);
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 0.25rem rgba(216, 162, 54, 0.18);
}

.status-shell .alert {
    border: 1px solid rgba(216, 162, 54, 0.25);
    border-radius: 0.85rem;
    background-color: rgba(24, 18, 10, 0.92);
    color: var(--text);
}

.status-shell .alert-success {
    background-color: rgba(88, 194, 125, 0.12);
    border-color: rgba(88, 194, 125, 0.35);
    color: #a3f0bc;
}

.status-shell .alert-danger {
    background-color: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.35);
    color: #f5b8be;
}

.status-shell .alert-warning {
    background-color: rgba(255, 204, 102, 0.12);
    border-color: rgba(255, 204, 102, 0.35);
    color: var(--warning);
}

.status-shell .alert-info {
    background-color: rgba(13, 202, 240, 0.10);
    border-color: rgba(13, 202, 240, 0.30);
    color: #a8ecf5;
}

.btn-link.link-danger {
    text-decoration: none;
}

.receipt-box {
    background: rgba(255, 255, 255, 0.98);
    color: #111827;
    border-radius: 1rem;
    padding: 1rem;
}

.receipt-box small,
.receipt-box .text-secondary {
    color: #4b5563 !important;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed rgba(17, 24, 39, 0.2);
}

.receipt-line:last-child {
    border-bottom: 0;
}

.sticky-panel {
    position: sticky;
    top: 5.5rem;
}

.modal-content.app-card {
    background: linear-gradient(180deg, rgba(10, 22, 44, 0.98), rgba(8, 18, 38, 0.98));
}

@media print {
    body {
        background: #fff !important;
        color: #111 !important;
    }

    .app-navbar,
    .no-print,
    .status-shell,
    .card:not(.print-section) {
        display: none !important;
    }

    .print-section,
    .print-section * {
        display: block !important;
        visibility: visible !important;
    }

    .print-section {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
    }
}

.kpi-positive {
    color: var(--success);
}

.kpi-warning {
    color: var(--warning);
}

/* ==========================================
   SCROLLBAR PERSONALIZADA — tema Espetaria
   ========================================== */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-soft);
}

/* Chromium / Edge / Safari */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 2px solid var(--bg-soft);
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-soft);
}

::-webkit-scrollbar-corner {
    background: var(--bg-soft);
}

/* ==========================================
   CARDÁPIO DIGITAL – Tema Espetaria (fogo)
   ========================================== */

.cardapio-page {
    background: #0d0906;
    color: #fff;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ---- Hero / Banner ---- */

.cardapio-hero {
    position: relative;
    background:
        linear-gradient(180deg, rgba(13,9,6,0) 60%, #0d0906 100%),
        radial-gradient(circle at 50% 0%, rgba(255,120,20,0.25) 0%, transparent 60%),
        linear-gradient(180deg, #1a0c04, #0d0906);
    padding: 2rem 0 1.5rem;
    text-align: center;
}

.cardapio-hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff6a0020' fill-rule='evenodd'%3E%3Ccircle cx='2' cy='2' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cardapio-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cardapio-logo {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 12px rgba(255,100,0,0.5));
}

.cardapio-brand-sub {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffb347;
}

.cardapio-brand-name {
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 16px rgba(255,100,0,0.35);
    margin: 0;
}

.cardapio-brand-slogan {
    font-size: 0.65rem;
    color: #c9a26c;
    letter-spacing: 1px;
}

.cardapio-mesa-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255,160,50,0.15);
    border: 1px solid rgba(255,160,50,0.3);
    color: #ffc96b;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---- Body container ---- */

.cardapio-body {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem 4.5rem;
}

/* ---- Title ---- */

.cardapio-title-bar {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.cardapio-title {
    font-weight: 900;
    font-size: 1.75rem;
    letter-spacing: 3px;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(255,100,0,0.2);
}

/* ---- Status alerts ---- */

.cardapio-alert {
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cardapio-alert-success {
    background: rgba(88,194,125,0.15);
    color: #6ee09a;
    border: 1px solid rgba(88,194,125,0.25);
}

.cardapio-alert-danger {
    background: rgba(220,53,69,0.15);
    color: #ff7a85;
    border: 1px solid rgba(220,53,69,0.25);
}

.cardapio-alert-warning {
    background: rgba(255,193,7,0.15);
    color: #ffd866;
    border: 1px solid rgba(255,193,7,0.25);
}

.cardapio-alert-info {
    background: rgba(13,110,253,0.15);
    color: #7db8ff;
    border: 1px solid rgba(13,110,253,0.25);
}

.cardapio-alert-secondary {
    background: rgba(108,117,125,0.15);
    color: #b0b8c0;
    border: 1px solid rgba(108,117,125,0.25);
}

/* ---- Category Tabs (secondary) ---- */

.cardapio-other-tabs {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    padding: 0.75rem 0;
}

.cardapio-tabs-row {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    padding: 0.75rem 0;
}

.cardapio-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
    padding: 0.6rem 1.2rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255,160,50,0.2);
    background: rgba(25,17,10,0.85);
    color: #c9a26c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.cardapio-tab-btn:hover {
    border-color: rgba(255,160,50,0.4);
    color: #ffc96b;
}

.cardapio-tab-btn.is-active {
    background: linear-gradient(135deg, #c45e00, #e8820a);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(200,90,0,0.35);
}

.cardapio-tab-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.cardapio-tab-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cardapio-tab-count {
    font-size: 0.6rem;
    background: rgba(255,255,255,0.12);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

.cardapio-tab-btn.is-active .cardapio-tab-count {
    background: rgba(255,255,255,0.25);
}

/* ---- Expand section (secondary category) ---- */

.cardapio-expand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,160,50,0.15);
}

.cardapio-expand-title {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: #ffb347;
    margin: 0;
}

.cardapio-expand-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Product cards ---- */

.cardapio-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.cardapio-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, rgba(30,20,10,0.95), rgba(18,12,6,0.98));
    border: 1px solid rgba(255,160,50,0.12);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.cardapio-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,160,50,0.35);
    box-shadow: 0 8px 24px rgba(200,80,0,0.18);
}

.cardapio-card:active {
    transform: scale(0.97);
}

.cardapio-card-left {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.cardapio-card-name {
    font-weight: 800;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
}

.cardapio-card-emoji {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.cardapio-card-price-box {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 1px;
    padding: 0.5rem 0.65rem;
    border-radius: 0.6rem;
    background: #f5a623;
    color: #1a0a00;
}

.cardapio-card-rs {
    font-size: 0.6rem;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 2px;
}

.cardapio-card-reais {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.cardapio-card-centavos {
    font-size: 0.7rem;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 2px;
}

/* ---- Order Bar (sticky bottom) ---- */

.cardapio-order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #1a0e06 0%, #2a1508 100%);
    border-top: 1px solid rgba(255,160,50,0.25);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cardapio-order-bar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffc96b;
    font-weight: 700;
    font-size: 0.85rem;
}

.cardapio-order-bar-left i {
    font-size: 1.2rem;
    color: #f5a623;
}

.cardapio-order-bar-btn {
    padding: 0.55rem 1.25rem;
    border: none;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #c45e00, #e8820a);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    pointer-events: none;
}

body.panel-open .cardapio-order-bar {
    display: none;
}

/* ---- Comanda Modal (floating box) ---- */

.cardapio-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn .2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cardapio-modal {
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: #1a0e06;
    border: 1px solid rgba(255,160,50,0.2);
    border-radius: 1.25rem;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 0 40px rgba(255,120,20,0.08);
    overflow: hidden;
    animation: modalSlideUp .25s ease;
}

.cardapio-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem 0.75rem;
    background: linear-gradient(180deg, #241408 0%, #1a0e06 100%);
    border-bottom: 1px solid rgba(255,160,50,0.15);
}

.cardapio-modal-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cardapio-modal-title i {
    color: #f5a623;
    font-size: 1.1rem;
}

.cardapio-modal-sub {
    color: #9e8a73;
    font-size: 0.75rem;
}

.cardapio-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cardapio-modal-close:hover {
    background: rgba(255,255,255,0.15);
}

.cardapio-modal-body {
    padding: 0.75rem 1.25rem;
    overflow-y: auto;
    flex: 1;
    display: grid;
    gap: 0.5rem;
    background: #130b05;
}

.cardapio-modal-footer {
    padding: 0.75rem 1.25rem 1.25rem;
    background: linear-gradient(0deg, #1a0e06 0%, #150c04 100%);
    border-top: 1px solid rgba(255,160,50,0.12);
}

.cardapio-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.cardapio-modal-total span {
    color: #9e8a73;
    font-weight: 600;
}

.cardapio-modal-total strong {
    color: #ffc96b;
    font-weight: 900;
    font-size: 1.3rem;
}

.cardapio-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

/* ---- Skewer Picker Modal ---- */

.picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn .2s ease;
}

.picker-modal {
    width: 100%;
    max-width: 380px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #1a0e06;
    border: 1px solid rgba(255,160,50,0.25);
    border-radius: 1.25rem;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 0 40px rgba(255,120,20,0.1);
    overflow: hidden;
    animation: modalSlideUp .25s ease;
}

.picker-header {
    text-align: center;
    padding: 1rem 1.25rem 0.75rem;
    background: linear-gradient(180deg, #241408 0%, #1a0e06 100%);
    border-bottom: 1px solid rgba(255,160,50,0.15);
}

.picker-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.picker-sub {
    color: #f5a623;
    font-size: 0.8rem;
    font-weight: 600;
}

.picker-body {
    padding: 0.75rem;
    overflow-y: auto;
    flex: 1;
    display: grid;
    gap: 0.45rem;
}

.picker-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255,160,50,0.12);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.picker-option:hover {
    background: rgba(255,160,50,0.1);
    border-color: rgba(255,160,50,0.35);
    transform: translateX(4px);
}

.picker-option:active {
    transform: scale(0.97);
    background: rgba(255,160,50,0.18);
}

.picker-option-emoji {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.picker-option-meta {
    display: block;
    margin-top: 0.15rem;
    color: #c9a26c;
    font-size: 0.75rem;
    font-weight: 600;
}

.picker-option-name {
    flex: 1;
}

.picker-footer {
    padding: 0.65rem 1rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255,160,50,0.1);
}

.picker-cancel {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255,160,50,0.25);
    border-radius: 0.65rem;
    background: transparent;
    color: #c9a26c;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.picker-cancel:hover {
    background: rgba(255,160,50,0.08);
}

/* ---- Itens da comanda no modal ---- */

.customer-line-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,160,50,0.1);
}

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

.customer-line-item strong {
    display: block;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}

.customer-line-item small {
    color: #9e8a73;
    font-size: 0.78rem;
}

.customer-line-item.sent strong {
    color: #c9a26c;
}

.customer-line-item .text-end {
    text-align: right;
    flex-shrink: 0;
}

.customer-line-item .text-end strong {
    color: #ffc96b;
}

.customer-qty-actions {
    display: flex;
    gap: 0.3rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.customer-qty-actions button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255,160,50,0.25);
    background: rgba(255,255,255,0.05);
    color: #c9a26c;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}

.customer-qty-actions button:hover {
    background: rgba(255,80,0,0.2);
    border-color: rgba(255,80,0,0.4);
    color: #fff;
}

/* ---- Closed Screen (aguardando pagamento) ---- */

.closed-screen {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(13,9,6,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn .3s ease;
}

.closed-screen-box {
    text-align: center;
    max-width: 360px;
}

.closed-screen-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    animation: closedPulse 2s ease-in-out infinite;
}

.closed-screen-title {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: #f5a623;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 16px rgba(245,166,35,0.3);
}

.closed-screen-sub {
    color: #c9a26c;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.closed-screen-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background: rgba(255,160,50,0.08);
    border: 1px solid rgba(255,160,50,0.2);
    margin-bottom: 1.5rem;
}

.closed-screen-total span {
    color: #9e8a73;
    font-weight: 600;
    font-size: 0.95rem;
}

.closed-screen-total strong {
    color: #ffc96b;
    font-weight: 900;
    font-size: 1.5rem;
}

.closed-screen-pulse {
    color: #c9a26c;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    animation: closedPulse 2s ease-in-out infinite;
}

@keyframes closedPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.cardapio-line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.7rem;
    background: rgba(255,255,255,0.04);
}

.cardapio-line.sent {
    border-left: 3px solid #58c27d;
}

.cardapio-line.cart-item {
    border-left: 3px solid #f5a623;
}

.cardapio-line-info {
    min-width: 0;
}

.cardapio-line-info strong {
    display: block;
    font-size: 0.85rem;
    color: #fff;
}

.cardapio-line-info small {
    display: block;
    color: #9e8a73;
    font-size: 0.75rem;
}

.cardapio-line-right {
    text-align: right;
    flex-shrink: 0;
}

.cardapio-line-right strong {
    display: block;
    color: #ffc96b;
    font-size: 0.85rem;
}

.cardapio-line-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #8cc8a5;
    background: rgba(88,194,125,0.1);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    margin-top: 0.2rem;
    text-transform: capitalize;
}

.cardapio-line-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
    margin-top: 0.2rem;
}

.cardapio-remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: rgba(220,53,69,0.2);
    color: #ff7a85;
    font-weight: 800;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cardapio-remove-btn:hover {
    background: rgba(220,53,69,0.4);
}

.cardapio-qty-btns {
    display: inline-flex;
    gap: 0.3rem;
    margin-top: 0.25rem;
}

.cardapio-qty-btns button {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: rgba(255,160,50,0.15);
    color: #ffc96b;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-cardapio-primary {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #c45e00, #e8820a);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-cardapio-primary:hover {
    opacity: 0.9;
}

.btn-cardapio-outline {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255,160,50,0.3);
    border-radius: 0.7rem;
    background: transparent;
    color: #ffc96b;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cardapio-outline:hover {
    background: rgba(255,160,50,0.08);
}

/* ---- Footer ---- */

.cardapio-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #c9a26c;
    font-size: 0.95rem;
}

.cardapio-footer em {
    color: #ffb347;
    font-style: italic;
    font-weight: 700;
}

/* ---- Mobile single column ---- */
@media (max-width: 400px) {
    .cardapio-product-grid {
        grid-template-columns: 1fr;
    }

    .cardapio-card-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .cardapio-hero {
        padding: 1.2rem 0 1rem;
    }

    .cardapio-brand {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .cardapio-logo {
        font-size: 2rem;
    }

    .cardapio-brand-name {
        font-size: 1.45rem;
    }

    .cardapio-brand-sub {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .cardapio-brand-slogan {
        display: block;
        margin-top: 0.15rem;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .cardapio-mesa-pill {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .cardapio-body {
        padding: 0 0.75rem 5.5rem;
    }

    .cardapio-title {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }

    .cardapio-other-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.65rem 0 0.9rem;
        margin-inline: -0.1rem;
        scrollbar-width: none;
    }

    .cardapio-other-tabs::-webkit-scrollbar {
        display: none;
    }

    .cardapio-tab-btn {
        flex: 0 0 auto;
        min-width: 110px;
        padding: 0.7rem 0.9rem;
    }

    .cardapio-product-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .cardapio-card {
        padding: 0.85rem;
        gap: 0.75rem;
    }

    .cardapio-card-name {
        font-size: 0.82rem;
    }

    .cardapio-card-price-box {
        padding: 0.5rem 0.55rem;
    }

    .cardapio-card-reais {
        font-size: 1.25rem;
    }

    .cardapio-order-bar {
        padding: 0.75rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
        gap: 0.75rem;
    }

    .cardapio-order-bar-left {
        min-width: 0;
        gap: 0.35rem;
        flex-wrap: wrap;
        font-size: 0.78rem;
    }

    .cardapio-order-bar-btn {
        flex-shrink: 0;
        padding: 0.55rem 0.85rem;
        font-size: 0.78rem;
        text-align: center;
        white-space: nowrap;
    }

    .cardapio-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .cardapio-modal {
        max-width: none;
        width: 100%;
        max-height: 88vh;
        border-radius: 1.25rem 1.25rem 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .cardapio-modal-header,
    .cardapio-modal-body,
    .cardapio-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cardapio-modal-actions {
        grid-template-columns: 1fr;
    }
}

/* ---- Wider screens ---- */
@media (min-width: 640px) {
    .cardapio-body {
        max-width: 700px;
    }

    .cardapio-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

/* ---- Modal flutuante de confirmação (pedido / fechamento) ---- */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: modalFadeIn .2s ease;
}

.confirm-modal {
    width: 100%;
    max-width: 320px;
    background: #1a0e06;
    border: 1px solid rgba(255, 160, 50, 0.28);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(255, 120, 20, 0.12);
    animation: modalSlideUp .25s ease;
}

.confirm-modal-icon {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.confirm-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.45rem;
}

.confirm-modal-msg {
    font-size: 0.93rem;
    color: #c9a26c;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.confirm-modal-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f5a623, #d4820a);
    color: #1a0e06;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.confirm-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(245, 166, 35, 0.4);
}

/* ---- Kitchen board ---- */
.kitchen-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.kitchen-column {
    background: rgba(24, 18, 10, 0.9);
    border: 1px solid rgba(216, 162, 54, 0.18);
    border-radius: 1rem;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.kitchen-column header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kitchen-column h2 {
    font-size: 1rem;
    margin: 0;
}

.kitchen-column header span {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(216, 162, 54, 0.18);
    color: #ffe5a6;
    font-weight: 800;
}

.kitchen-list {
    padding: 0.85rem;
    display: grid;
    gap: 0.75rem;
    overflow: auto;
}

.kitchen-card {
    border: 1px solid rgba(216, 162, 54, 0.22);
    border-radius: 0.9rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 991px) {
    .kitchen-board {
        grid-template-columns: 1fr;
    }
}

.qr-print-page {
    background: #edf1f6;
    color: #14253d;
    min-height: 100vh;
}

.qr-print-page .text-secondary {
    color: #5f7088 !important;
}

.qr-a4-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 2rem;
    padding: 8mm;
    background: #ffffff;
    border-radius: 0.8rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8mm;
}

.qr-card {
    border: 1px dashed rgba(20, 37, 61, 0.24);
    border-radius: 0.85rem;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 62mm;
    break-inside: avoid;
}

.qr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.qr-card-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.qr-card-number {
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #0d1a35;
    color: #fff;
    font-weight: 800;
}

.qr-card-body {
    display: grid;
    place-items: center;
    padding: 0.5rem 0;
}

.qr-card-body img {
    width: 42mm;
    height: 42mm;
    object-fit: contain;
}

.qr-card-footer {
    display: grid;
    gap: 0.15rem;
    text-align: center;
}

.qr-card-footer strong {
    color: #0d1a35;
}

.qr-card-footer small {
    color: #5f7088 !important;
    word-break: break-all;
}

@page {
    size: A4 portrait;
    margin: 8mm;
}

@media print {
    .qr-print-page {
        background: #fff !important;
        color: #111 !important;
    }

    .qr-print-page .no-print,
    .qr-print-page .navbar {
        display: none !important;
    }

    .qr-a4-sheet {
        width: auto;
        min-height: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        gap: 6mm;
    }

    .qr-card {
        min-height: 64mm;
    }
}



