/* ============================================
   KRUMORA POS — Design System
   Premium dark theme for POS terminals
   ============================================ */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-input: #1e1e1e;
    --bg-glass: rgba(26, 26, 26, 0.85);
    --border: #2a2a2a;
    --border-focus: #e11d3a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --accent: #e11d3a;
    --accent-dim: rgba(225, 29, 58, 0.15);
    --accent-glow: rgba(225, 29, 58, 0.3);
    --danger: #FF4444;
    --danger-dim: rgba(255, 68, 68, 0.15);
    --warn: #FFB800;
    --warn-dim: rgba(255, 184, 0, 0.15);
    --info: #00BFFF;
    --info-dim: rgba(0, 191, 255, 0.15);
    --purple: #a855f7;
    --purple-dim: rgba(168, 85, 247, 0.15);
    --orange: #FF6B35;
    --orange-dim: rgba(255, 107, 53, 0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-h: 56px;
    --categories-h: 48px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior-y: contain;
}

/* ========== MODE SELECT SCREEN ========== */
.mode-select-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: radial-gradient(ellipse at center top, rgba(225,29,58,0.05) 0%, transparent 60%),
                var(--bg-primary);
}

.mode-select-header {
    text-align: center;
    margin-bottom: 40px;
}

.mode-logo {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.logo-k { color: var(--accent); }

.mode-select-header h1 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mode-select-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 400px;
    width: 100%;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-card:hover { transform: translateY(-4px); }
.mode-card:active { transform: scale(0.96); }

.mode-card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.mode-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.mode-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mode-kiosk { border-color: rgba(225,29,58,0.3); }
.mode-kiosk i { color: var(--accent); }
.mode-kiosk:hover { background: var(--accent-dim); border-color: var(--accent); box-shadow: 0 8px 32px var(--accent-glow); }

.mode-waiter { border-color: rgba(0,191,255,0.3); }
.mode-waiter i { color: var(--info); }
.mode-waiter:hover { background: var(--info-dim); border-color: var(--info); box-shadow: 0 8px 32px rgba(0,191,255,0.2); }

.mode-pos { border-color: rgba(168,85,247,0.3); }
.mode-pos i { color: var(--purple); }
.mode-pos:hover { background: var(--purple-dim); border-color: var(--purple); box-shadow: 0 8px 32px rgba(168,85,247,0.2); }

.mode-kitchen { border-color: rgba(255,107,53,0.3); }
.mode-kitchen i { color: var(--orange); }
.mode-kitchen:hover { background: var(--orange-dim); border-color: var(--orange); box-shadow: 0 8px 32px rgba(255,107,53,0.2); }

.mode-monitor:hover { background: var(--info-dim); border-color: var(--info); box-shadow: 0 8px 32px rgba(0,191,255,0.2); }

.mode-pagtickets { border-color: rgba(59,130,246,0.3); }
.mode-pagtickets i { color: #3b82f6; }
.mode-pagtickets:hover { background: rgba(59,130,246,0.1); border-color: #3b82f6; box-shadow: 0 8px 32px rgba(59,130,246,0.2); }

/* ========== HEADER ========== */
.pos-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
    z-index: 100;
}

.pos-logo {
    display: flex;
    align-items: center;
}

/* K Neon Icon — logoesk premium (kBreathe + kSheen + corner HUD) */
.k-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(160deg, #0c0c11 0%, #050507 100%);
    border: 1.5px solid #e11d3a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
    color: #e11d3a;
    box-shadow: 0 0 14px rgba(225,29,58,.32),
                inset 0 0 10px rgba(225,29,58,.10),
                0 4px 14px -4px rgba(0,0,0,.6);
    text-shadow: 0 0 6px rgba(225,29,58,.85), 0 0 14px rgba(225,29,58,.45);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    animation: kBreathe 3.6s ease-in-out infinite, kGlyphPulse 3.6s ease-in-out infinite;
    transition: transform .3s cubic-bezier(.2,.9,.3,1.2), border-color .3s, box-shadow .3s;
}
.k-icon::before {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255,255,255,.10) 45%,
        rgba(255,255,255,.22) 50%,
        rgba(255,255,255,.10) 55%,
        transparent 100%);
    transform: rotate(12deg);
    animation: kSheen 6s ease-in-out infinite;
    pointer-events: none;
}
.k-icon:hover {
    transform: translateY(-1px) scale(1.06);
    border-color: #3dff85;
    box-shadow: 0 0 22px rgba(225,29,58,.55),
                inset 0 0 14px rgba(225,29,58,.18),
                0 8px 20px -6px rgba(225,29,58,.32);
}

.k-icon-lg {
    width: 72px;
    height: 72px;
    font-size: 2.4rem;
    border-radius: 18px;
    border-width: 2px;
    box-shadow: 0 0 28px rgba(225,29,58,.42),
                inset 0 0 14px rgba(225,29,58,.14),
                0 14px 34px -10px rgba(0,0,0,.7);
    animation: kBreatheLg 3.6s ease-in-out infinite, kGlyphPulse 3.6s ease-in-out infinite, kFloat 5s ease-in-out infinite;
}

/* Mode select — center K with text */
.mode-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
}

@keyframes kBreathe {
    0%, 100% {
        box-shadow: 0 0 12px rgba(225,29,58,.28),
                    inset 0 0 8px rgba(225,29,58,.08),
                    0 4px 14px -4px rgba(0,0,0,.6);
    }
    50% {
        box-shadow: 0 0 20px rgba(225,29,58,.48),
                    inset 0 0 14px rgba(225,29,58,.18),
                    0 4px 14px -4px rgba(0,0,0,.6);
    }
}

@keyframes kBreatheLg {
    0%, 100% {
        box-shadow: 0 0 22px rgba(225,29,58,.35),
                    inset 0 0 12px rgba(225,29,58,.10),
                    0 14px 34px -10px rgba(0,0,0,.7);
    }
    50% {
        box-shadow: 0 0 38px rgba(225,29,58,.58),
                    inset 0 0 20px rgba(225,29,58,.20),
                    0 14px 34px -10px rgba(0,0,0,.7);
    }
}

@keyframes kGlyphPulse {
    0%, 100% { text-shadow: 0 0 5px rgba(225,29,58,.70), 0 0 12px rgba(225,29,58,.35); }
    50%      { text-shadow: 0 0 9px rgba(225,29,58,.95), 0 0 18px rgba(225,29,58,.55); }
}

@keyframes kSheen {
    0%, 65%, 100% { left: -60%; opacity: 0; }
    70%           { opacity: .85; }
    95%           { left: 120%; opacity: 0; }
}

@keyframes kFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    .k-icon, .k-icon-lg, .k-icon::before { animation: none; }
}

@keyframes pulseText {
    0% { opacity: 0.5; transform: scale(0.98); text-shadow: 0 0 10px rgba(255,255,255,0.1); }
    100% { opacity: 1; transform: scale(1.02); text-shadow: 0 0 30px rgba(255,255,255,0.4); }
}

.header-left, .header-right, .header-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-mode-badge {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(225,29,58,0.3);
}

.badge-waiter { background: var(--info-dim); color: var(--info); border-color: rgba(0,191,255,0.3); }
.badge-kitchen { background: var(--orange-dim); color: var(--orange); border-color: rgba(255,107,53,0.3); }
.badge-pos { background: var(--purple-dim); color: var(--purple); border-color: rgba(168,85,247,0.3); }

.cart-btn {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-btn:hover { border-color: var(--accent); color: var(--accent); }

.cart-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-selector {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.table-selector:hover { border-color: var(--info); color: var(--info); }

.kitchen-stats {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.kitchen-clock {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* ========== CATEGORIES BAR ========== */
.categories-bar {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    height: var(--categories-h);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 90;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.categories-bar::-webkit-scrollbar { display: none; }

/* Category swipe animations */
.product-grid.slide-left {
    animation: slideOutLeft 150ms ease-in forwards;
}
.product-grid.slide-right {
    animation: slideOutRight 150ms ease-in forwards;
}
.product-grid.slide-in-right {
    animation: slideInRight 250ms ease-out forwards;
}
.product-grid.slide-in-left {
    animation: slideInLeft 250ms ease-out forwards;
}

@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-60px); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(60px); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

.cat-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-btn:hover { color: var(--text-primary); background: var(--bg-card); }

.cat-btn.active {
    background: var(--accent);
    color: #000;
}

/* Ícone minimalista (Font Awesome) da categoria — cor da plataforma, maior */
.cat-ico {
    font-size: 1.15rem;
    margin-right: 7px;
    color: var(--accent);
    vertical-align: -1px;
}
.cat-btn.active .cat-ico { color: #000; }

/* ========== PRODUCT GRID ========== */
.product-grid-container {
    padding-top: calc(var(--header-h) + var(--categories-h) + 8px + env(safe-area-inset-top, 0px));
    padding-bottom: 16px;
    min-height: 100vh;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 10px;
    max-width: 800px;
    margin: 0 auto;
}

.product-grid.compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 6px;
}

@media (max-width: 480px) {
    .product-grid,
    .product-grid.compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0 6px;
    }
    .product-card-price {
        font-size: 0.8rem;
    }
    .product-card-name {
        font-size: 0.55rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .product-card-info {
        padding: 4px 4px 6px;
    }
}

@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.product-card:active {
    transform: scale(0.95);
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-img .no-img {
    font-size: 2rem;
    color: var(--text-muted);
}

.product-card-info {
    padding: 6px 6px 8px;
    text-align: center;
}

.product-card-price {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 2px;
    white-space: nowrap;
}

.product-card-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    word-break: break-word;
    min-height: 1.8em;
}

/* Qty badge on product card */
.product-qty-badge {
    position: absolute;
    top: 6px; right: 6px;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(225,29,58,0.4);
    animation: popIn 0.2s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Fullscreen code blink animation */
@keyframes codeBlink {
    0%, 100% { opacity: 1; text-shadow: 0 0 40px rgba(225,29,58,0.6), 0 0 80px rgba(225,29,58,0.3); }
    50% { opacity: 0.3; text-shadow: 0 0 20px rgba(225,29,58,0.2); }
}

/* Waiter history order item */
.waiter-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.waiter-history-item:active {
    transform: scale(0.97);
    border-color: var(--accent);
}

.waiter-history-code {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent);
    min-width: 70px;
    text-align: center;
    font-family: var(--font);
}

.waiter-history-info {
    flex: 1;
    min-width: 0;
}

.waiter-history-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.waiter-history-total {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.waiter-history-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.waiter-history-status.status-new { background: rgba(255,193,7,0.15); color: #FFC107; }
.waiter-history-status.status-preparing { background: rgba(0,191,255,0.15); color: #00BfFF; }
.waiter-history-status.status-ready { background: rgba(0,230,118,0.15); color: #00E676; }
.waiter-history-status.status-delivered { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* Remove button on product card */
.product-remove-btn {
    position: absolute;
    top: 6px; left: 6px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(244, 67, 54, 0.9);
    border: 2px solid #F44336;
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(244,67,54,0.5);
    transition: all 0.15s;
    animation: popIn 0.2s ease;
    padding: 0;
}

.product-remove-btn:hover {
    background: #F44336;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(244,67,54,0.6);
}

.product-remove-btn:active {
    transform: scale(0.9);
}

/* ========== CART DRAWER ========== */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    animation: fadeIn 0.2s;
}

.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 210;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-header h2 i { color: var(--accent); }

.cart-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-close:hover { border-color: var(--danger); color: var(--danger); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.cart-item-controls button {
    width: 32px; height: 32px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cart-item-controls button:hover { color: var(--accent); }

.cart-item-controls .qty {
    width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.cart-item-total {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    white-space: nowrap;
}

.cart-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.cart-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; }

.cart-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.cart-total strong {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent);
}

.btn {
    font-family: var(--font);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
    padding: 12px 20px;
}

.btn-pay {
    width: 100%;
    background: var(--accent);
    color: #000;
    font-size: 1rem;
    padding: 16px;
    border-radius: var(--radius);
}

.btn-pay:hover { box-shadow: 0 4px 16px var(--accent-glow); }
.btn-pay:active { transform: scale(0.97); }

.btn-send {
    background: var(--info);
}

.btn-send:hover { box-shadow: 0 4px 16px rgba(0,191,255,0.3); }

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-pay-method {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 14px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    flex-direction: column;
    gap: 4px;
}

.btn-pay-method i { font-size: 1.2rem; color: var(--accent); }
.btn-pay-method:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ========== KITCHEN DISPLAY ========== */
.kitchen-sections {
    padding: calc(var(--header-h) + 12px) 16px 16px;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100vh;
}

.kitchen-section {
    flex: 1;
    min-height: 0;
}

.kitchen-section-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
}

.kitchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    min-height: 80px;
}

.kitchen-grid:empty::after {
    content: 'Sem pedidos nesta fila';
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
}

.kitchen-order {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    transition: transform 0.3s, box-shadow 0.3s;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.kitchen-order.status-new { border-color: var(--warn); }
.kitchen-order.status-preparing { border-color: var(--info); }
.kitchen-order.status-ready { border-color: var(--accent); }

/* ===== NEWEST ORDER HIGHLIGHT ===== */
.kitchen-order.newest-order {
    transform: scale(1.06);
    z-index: 10;
    position: relative;
    box-shadow: 0 0 20px rgba(255,193,7,0.35), 0 0 40px rgba(255,193,7,0.15);
    border-color: #FFC107 !important;
    animation: slideUp 0.3s ease, newestPulse 2s ease-in-out infinite;
}

@keyframes newestPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255,193,7,0.3), 0 0 30px rgba(255,193,7,0.1); }
    50% { box-shadow: 0 0 25px rgba(255,193,7,0.5), 0 0 50px rgba(255,193,7,0.2); }
}

.newest-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: #000;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 6px;
    animation: badgePulse 1.5s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== TERMINAL NAME ===== */
.kitchen-terminal-name {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kitchen-terminal-name.mode-kiosk {
    background: rgba(0,188,212,0.15);
    color: #00BCD4;
}

.kitchen-terminal-name.mode-waiter {
    background: rgba(255,193,7,0.15);
    color: #FFC107;
}

.kitchen-terminal-name.mode-pos {
    background: rgba(156,39,176,0.15);
    color: #CE93D8;
}

.kitchen-order-header {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.kitchen-order-code {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.kitchen-order-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.kitchen-order-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
}

.kitchen-order-items {
    padding: 10px 14px;
}

.kitchen-order-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.kitchen-order-item:last-child { border-bottom: none; }

.kitchen-order-item-qty {
    font-weight: 800;
    color: var(--accent);
    min-width: 30px;
}

.kitchen-order-item-name {
    flex: 1;
    font-weight: 500;
}

.kitchen-order-actions {
    padding: 10px 14px;
    display: flex;
    gap: 8px;
}

.btn-kitchen {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-preparing {
    background: var(--info);
    color: #000;
}

.btn-ready {
    background: var(--accent);
    color: #000;
}

.btn-delivered {
    background: #AB47BC;
    color: #fff;
}

.btn-kitchen:active { transform: scale(0.95); }

/* ========== Per-item Copa flow (split: producao vs entrega) ========== */
.kitchen-order-item {
    align-items: center;
    gap: 8px;
}
.kitchen-order-item-station {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.kitchen-order-item.item-delivered {
    opacity: 0.45;
    text-decoration: line-through;
}
.btn-kitchen-item {
    padding: 6px 10px;
    border-radius: 8px;
    color: #fff;
    border: none;
    font-family: var(--font);
    font-weight: 800;
    font-size: 0.72rem;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap;
    transition: all 0.15s;
}
.btn-ready-item { background: linear-gradient(135deg, #f59e0b, #d97706); }
.btn-ready-item:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(245,158,11,0.4); }
.btn-deliver-item { background: linear-gradient(135deg, #10b981, #059669); }
.btn-deliver-item:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(16,185,129,0.4); }
.btn-kitchen-item:active { transform: scale(0.95); }
.btn-kitchen-item:disabled { opacity: 0.6; cursor: not-allowed; }
.item-status-tag.ready {
    background: rgba(245,158,11,0.18);
    color: #fbbf24;
}
.kitchen-order-item.item-ready {
    background: rgba(245,158,11,0.04);
}
.kitchen-order-item.item-other-station {
    opacity: 0.55;
}
.item-status-tag.other {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 0.62rem;
    text-transform: lowercase;
}
.item-status-tag {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
}
.item-status-tag.delivered {
    background: rgba(168,85,247,0.15);
    color: #c084fc;
}
.item-status-tag.pending {
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
    text-transform: capitalize;
}

/* Bulk buttons — Pronto TODOS / Entregar TODOS */
.btn-kitchen-all {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    color: #fff;
    border: none;
    font-family: var(--font);
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}
.btn-bulk-ready { background: linear-gradient(135deg, #f59e0b, #d97706); }
.btn-bulk-ready:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(245,158,11,0.4); }
.btn-bulk-deliver { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.btn-bulk-deliver:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(6,182,212,0.4); }
.btn-kitchen-all:active { transform: scale(0.97); }
.btn-kitchen-all:disabled { opacity: 0.6; cursor: not-allowed; }

/* ========== TABLE GRID ========== */
.table-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.table-btn {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.table-btn:hover { border-color: var(--info); color: var(--info); background: var(--info-dim); }
.table-btn.active { background: var(--info); color: #000; border-color: var(--info); }
.table-btn.calling {
    border-color: #FF4D6A;
    color: #FF4D6A;
    background: rgba(255,77,106,0.15);
    animation: tableBtnPulse 1.2s infinite;
    font-weight: 900;
}
@keyframes tableBtnPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(255,77,106,0.3); }
    50% { box-shadow: 0 0 14px rgba(255,77,106,0.6); border-color: #ff6680; }
}

/* ========== MODALS ========== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal.compact { max-width: 360px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h2 i { color: var(--accent); }

.modal-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover { border-color: var(--danger); color: var(--danger); }

.modal-body { padding: 20px; }

/* Success Modal */
.success-modal {
    max-width: 360px;
    text-align: center;
}

.success-content { padding: 40px 24px; }

.success-check {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 16px;
    animation: popIn 0.4s ease;
}

.success-content h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.ticket-code {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 32px;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 4px;
    font-variant-numeric: tabular-nums;
}

.success-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    z-index: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: slideUp 0.3s ease;
    white-space: nowrap;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ========== PAYMENT PIX ========== */
.pix-container {
    text-align: center;
    padding: 20px;
}

.pix-qr {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: var(--radius);
    margin: 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #333;
}

.pix-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 8px;
}

.pix-copy-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 12px;
}

/* ========== PIN LOGIN SCREEN ========== */
.pin-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(225,29,58,0.04) 0%, var(--bg-primary) 70%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.pin-container {
    text-align: center;
    width: 320px;
    max-width: 90vw;
    position: relative;
}

/* Printer config modal — must be above pin-overlay (z-index 1000) */
#printerConfigModal {
    z-index: 1100 !important;
}


.pin-logo {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}

.login-logo {
    display: flex;
    justify-content: center;
}

.pin-mode {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--info);
    margin-bottom: 6px;
}

.pin-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pin-display {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.pin-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
}

.pin-dot.filled {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    animation: pinPulse 0.2s ease;
}

@keyframes pinPulse {
    0% { transform: scale(0.6); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pin-dot.error {
    border-color: var(--danger);
    background: var(--danger);
    box-shadow: 0 0 12px rgba(255,68,68,0.4);
    animation: pinShake 0.4s ease;
}

@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.pin-error {
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
    animation: fadeIn 0.2s;
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.pin-key {
    height: 64px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.pin-key:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.15);
}

.pin-key:active {
    transform: scale(0.92);
    background: rgba(255,255,255,0.1);
}

.pin-key-clear {
    color: var(--warn);
    font-size: 1.1rem;
}

.pin-key-enter {
    background: var(--accent-dim);
    border-color: rgba(225,29,58,0.3);
    color: var(--accent);
    font-size: 1.2rem;
}

.pin-key-enter:hover {
    background: var(--accent);
    color: #000;
}

.pin-name-display {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    animation: fadeIn 0.3s;
}

.pin-name-display i {
    margin-right: 4px;
}

/* ========== OPERATOR BADGE (header) ========== */
.operator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(225,29,58,0.08);
    border: 1px solid rgba(225,29,58,0.25);
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.operator-badge:hover {
    background: rgba(255,68,68,0.1);
    border-color: rgba(255,68,68,0.4);
    color: var(--danger);
}

.operator-badge .fa-repeat {
    opacity: 0.5;
    font-size: 0.55rem;
}

.operator-badge:hover .fa-repeat {
    opacity: 1;
}

/* ========== MODE CHAMADA CARD ========== */
.mode-chamada { border-color: rgba(255, 77, 106, 0.3); }
.mode-chamada i { color: #FF4D6A; }
.mode-chamada:hover { background: rgba(255,77,106,0.1); border-color: #FF4D6A; box-shadow: 0 8px 32px rgba(255,77,106,0.2); }

.mode-estoque { border-color: rgba(0,191,255,0.3); }
.mode-estoque i { color: var(--info); }
.mode-estoque:hover { background: var(--info-dim); border-color: var(--info); box-shadow: 0 8px 32px rgba(0,191,255,0.2); }

/* ========== MODE CTM CARD ========== */
.mode-ctm { border-color: rgba(0,230,200,0.3); }
.mode-ctm i { color: #00E6C8; }
.mode-ctm:hover { background: rgba(0,230,200,0.1); border-color: #00E6C8; box-shadow: 0 8px 32px rgba(0,230,200,0.2); }

/* ========== MODE PORTARIA CARD ========== */
.mode-portaria { border-color: rgba(225, 29, 58, 0.3); }
.mode-portaria i { color: #e11d3a; }
.mode-portaria:hover { background: rgba(225, 29, 58, 0.1); border-color: #e11d3a; box-shadow: 0 8px 32px rgba(225, 29, 58, 0.2); }

/* ========== MODE CORTESIA CARD ========== */
.mode-cortesia { border-color: rgba(168, 85, 247, 0.3); }
.mode-cortesia i { color: #A855F7; }
.mode-cortesia:hover { background: rgba(168, 85, 247, 0.1); border-color: #A855F7; box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2); }

/* ========== MODE ESTACIONAMENTO CARD ========== */
.mode-estacionamento { border-color: rgba(59, 130, 246, 0.3); }
.mode-estacionamento i { color: #3B82F6; }
.mode-estacionamento:hover { background: rgba(59, 130, 246, 0.1); border-color: #3B82F6; box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2); }

/* ========== MODE BILHETERIA CARD ========== */
.mode-bilheteria { border-color: rgba(6, 182, 212, 0.3); }
.mode-bilheteria i { color: #22D3EE; }
.mode-bilheteria:hover { background: rgba(6, 182, 212, 0.1); border-color: #22D3EE; box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2); }

/* ========== CTM SYSTEM ========== */
.ctm-mode {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-primary);
    font-family: var(--font);
}

/* CTM Login */
.ctm-login-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(0,230,200,0.05) 0%, transparent 70%);
}

.ctm-login-box {
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 360px;
    width: 90%;
}

.ctm-login-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ctm-login-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #00E6C8;
    margin: 0 0 6px;
}

.ctm-login-sub {
    color: var(--text-muted);
    margin: 0 0 20px;
    font-size: 0.85rem;
}

.ctm-pin-input {
    width: 100%;
    padding: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 12px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ctm-pin-input:focus {
    border-color: #00E6C8;
}

.ctm-login-error {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255,77,106,0.1);
    border-radius: 8px;
    color: #FF4D6A;
    font-size: 0.85rem;
}

/* CTM Header */
.ctm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.ctm-header-left, .ctm-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctm-back-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 6px;
}

.ctm-badge {
    background: linear-gradient(135deg, #00E6C8, #00B4D8);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.ctm-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ctm-user-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.ctm-user-role {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ctm-header-right {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00E676;
    letter-spacing: 1px;
}

.ctm-live-dot {
    width: 8px;
    height: 8px;
    background: #00E676;
    border-radius: 50%;
    display: inline-block;
    animation: ctmPulse 1.5s infinite;
}

@keyframes ctmPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* CTM Body */
.ctm-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ctm-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.ctm-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* CTM Role Groups */
.ctm-role-group {
    margin-bottom: 24px;
}

.ctm-role-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctm-role-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

/* CTM Call Button */
.ctm-call-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    background: rgba(255,255,255,0.03);
    border: 2px solid color-mix(in srgb, var(--role-color) 30%, transparent);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    position: relative;
    overflow: hidden;
}

.ctm-call-btn i {
    font-size: 1.5rem;
    color: var(--role-color);
}

.ctm-call-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.ctm-call-role {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ctm-call-btn:hover {
    background: color-mix(in srgb, var(--role-color) 12%, transparent);
    border-color: var(--role-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--role-color) 25%, transparent);
}

.ctm-call-btn:active {
    transform: scale(0.96);
}

/* CTM Incoming Call Overlay */
.ctm-incoming-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.ctm-incoming-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 3px solid #00E676;
    max-width: 380px;
    width: 90%;
    position: relative;
    animation: ctmIncomingBounce 0.5s ease;
}

@keyframes ctmIncomingBounce {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.ctm-incoming-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 120px; height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    background: rgba(0,230,118,0.1);
    animation: ctmIncomingPulseAnim 1.5s infinite;
    pointer-events: none;
}

@keyframes ctmIncomingPulseAnim {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.ctm-incoming-icon {
    font-size: 3rem;
    color: #00E6C8;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.ctm-incoming-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 12px;
    letter-spacing: 2px;
}

.ctm-incoming-from {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.ctm-incoming-category {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 24px;
}

.ctm-incoming-ack-btn {
    padding: 14px 36px;
    background: linear-gradient(135deg, #00E676, #00B4D8);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.2s;
}

.ctm-incoming-ack-btn:hover {
    transform: scale(1.05);
}

/* Incoming by category */
.ctm-incoming-urgencia {
    border-color: #FF4D6A;
    animation: ctmIncomingBounce 0.5s ease, ctmFlashRed 0.8s infinite;
}

@keyframes ctmFlashRed {
    0%, 100% { box-shadow: 0 0 30px rgba(255,77,106,0.3); }
    50% { box-shadow: 0 0 60px rgba(255,77,106,0.6); }
}

.ctm-incoming-advertencia {
    border-color: #FFD600;
}

.ctm-incoming-comunicacao {
    border-color: #5B8DEF;
}

/* CTM Category Modal */
.ctm-category-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(6px);
}

.ctm-category-box {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
    max-width: 360px;
    width: 90%;
}

.ctm-category-box h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0 0 6px;
}

.ctm-category-target {
    color: var(--text-muted);
    margin: 0 0 20px;
    font-size: 0.85rem;
}

.ctm-category-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.ctm-cat-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s;
}

.ctm-cat-comunicacao { border-color: rgba(91,141,239,0.3); }
.ctm-cat-comunicacao i { color: #5B8DEF; }
.ctm-cat-comunicacao:hover { background: rgba(91,141,239,0.1); border-color: #5B8DEF; }

.ctm-cat-advertencia { border-color: rgba(255,214,0,0.3); }
.ctm-cat-advertencia i { color: #FFD600; }
.ctm-cat-advertencia:hover { background: rgba(255,214,0,0.1); border-color: #FFD600; }

.ctm-cat-urgencia { border-color: rgba(255,77,106,0.3); }
.ctm-cat-urgencia i { color: #FF4D6A; }
.ctm-cat-urgencia:hover { background: rgba(255,77,106,0.1); border-color: #FF4D6A; }

.ctm-category-cancel {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.ctm-category-cancel:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* ========== CHAMADA PAGE (Customer QR Call) ========== */
.chamada-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, rgba(225,29,58,0.04) 0%, transparent 70%), var(--bg-primary);
}
.chamada-page[style*="display: none"] { display: none !important; }
.chamada-page:not([style*="display: none"]) { display: flex; }

.chamada-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 32px 20px;
    text-align: center;
    gap: 20px;
}

.chamada-logo {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.chamada-mesa-badge {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    padding: 8px 28px;
    border-radius: 30px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 2px solid rgba(225,29,58,0.3);
    text-transform: uppercase;
}

.chamada-status-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chamada-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4D6A, #FF2244);
    border: 4px solid rgba(255,77,106,0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(255,77,106,0.3);
    position: relative;
    font-family: var(--font);
}

.chamada-btn::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(255,77,106,0.2);
    animation: chamadaPulseRing 2s infinite;
}

.chamada-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(255,77,106,0.5);
}

.chamada-btn:active {
    transform: scale(0.92);
}

.chamada-btn-icon {
    font-size: 3rem;
    line-height: 1;
}

.chamada-btn-text {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
}

@keyframes chamadaPulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Feedback: Calling... */
.chamada-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeIn 0.3s;
}

.chamada-feedback-icon {
    font-size: 3rem;
    color: #FF4D6A;
}

.chamada-feedback-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chamada-cancel-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 28px;
    border-radius: 25px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chamada-cancel-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Acknowledged: Waiter coming */
.chamada-ack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s;
}

.chamada-ack-icon {
    font-size: 4rem;
    color: var(--accent);
    animation: chamadaCheck 0.5s ease;
}

@keyframes chamadaCheck {
    0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); }
}

.chamada-ack-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.chamada-ack-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.chamada-footer {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 20px;
    letter-spacing: 1px;
}

/* ========== WAITER CALL NOTIFICATION BANNER ========== */
@keyframes bannerBellShake {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

/* Waiter call toast — persistent, fixed at bottom, only dismissed by attending */
.waiter-call-toast {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 300;
    background: linear-gradient(135deg, rgba(30,10,15,0.98), rgba(20,5,10,0.98));
    border: 2px solid #FF4D6A;
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(255,77,106,0.5), 0 0 0 1px rgba(255,77,106,0.2);
    animation: toastSlideUp 0.35s cubic-bezier(0.34,1.56,0.64,1), toastPulse 2s ease 0.4s infinite;
    cursor: pointer;
}

@keyframes toastSlideUp {
    from { transform: translateY(110%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toastPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(255,77,106,0.35); }
    50% { box-shadow: 0 8px 40px rgba(255,77,106,0.7); }
}

.waiter-call-toast-icon {
    font-size: 2rem;
    animation: bannerBellShake 0.5s ease infinite alternate;
    flex-shrink: 0;
}

.waiter-call-toast-info {
    flex: 1;
    min-width: 0;
}

.waiter-call-toast-title {
    font-size: 1rem;
    font-weight: 800;
    color: #FF4D6A;
    display: block;
}

.waiter-call-toast-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    display: block;
}

.waiter-call-toast-ack {
    padding: 9px 16px;
    background: #FF4D6A;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-family: var(--font);
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}

.waiter-call-toast-ack:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255,77,106,0.5);
}

/* =============================================
   MOBILE RESPONSIVE — All Modes
   ============================================= */

/* === Tablet & small screens (≤768px) === */
@media (max-width: 768px) {
    :root {
        --header-h: 50px;
        --categories-h: 42px;
    }

    /* --- Headers --- */
    .main-header {
        padding: 0 10px;
        gap: 6px;
    }

    .main-header .header-logo {
        font-size: 1.1rem;
    }

    .header-mode-badge {
        font-size: 0.5rem;
        padding: 2px 7px;
        letter-spacing: 1px;
    }

    .operator-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        gap: 4px;
    }

    .operator-badge .fa-repeat { display: none; }

    .event-badge {
        padding: 5px 8px;
        font-size: 0.7rem;
        gap: 4px;
        flex-shrink: 0;
    }
    .event-badge .event-badge-label { max-width: 90px; }
    .waiter-header .event-badge .event-badge-label { display: none; }

    .header-left, .header-right { flex-shrink: 0; }
    .header-center { min-width: 0; }

    .table-selector {
        padding: 5px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .cart-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    /* --- Categories Bar --- */
    .categories-bar {
        padding: 0 4px;
    }

    .cat-btn {
        padding: 6px 12px;
        font-size: 0.72rem;
    }

    /* --- Product Grid --- */
    .product-grid-container {
        padding-top: calc(var(--header-h) + var(--categories-h) + 4px) !important;
        padding-bottom: 8px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .product-grid,
    .product-grid.compact {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .product-card-img {
        aspect-ratio: 1;
        height: auto !important;
    }

    .product-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-card-info {
        padding: 6px 6px 8px;
    }

    .product-card-price {
        font-size: 0.95rem;
    }

    .product-card-name {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    /* --- Cart Drawer --- */
    .cart-drawer {
        width: 100% !important;
        max-width: 100% !important;
    }

    .cart-header h2 {
        font-size: 0.95rem;
    }

    /* --- PIN Screen --- */
    .pin-container {
        max-width: 320px;
        padding: 20px;
    }

    .pin-display {
        font-size: 1.8rem;
        height: 50px;
    }

    .pin-pad {
        gap: 8px;
    }

    .pin-btn {
        width: 64px;
        height: 64px;
        font-size: 1.3rem;
    }

    /* --- Toast Notification --- */
    .waiter-call-toast {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
}

/* === Mobile phones (≤480px) === */
@media (max-width: 480px) {
    :root {
        --header-h: 46px;
        --categories-h: 38px;
    }

    /* --- Headers: Stack elements --- */
    .main-header {
        padding: 0 8px;
        gap: 4px;
    }

    .main-header .header-logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .header-mode-badge {
        font-size: 0.45rem;
        padding: 2px 5px;
        letter-spacing: 0.5px;
    }

    .operator-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .operator-badge-name {
        max-width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: middle;
    }

    .event-badge {
        padding: 4px 7px;
        font-size: 0.65rem;
    }
    .event-badge .event-badge-label { display: none; }

    .table-selector {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .cart-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
        top: -3px;
        right: -3px;
    }

    /* --- Categories Scrollable --- */
    .cat-btn {
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    /* --- Product Grid: 3 columns --- */
    .product-grid,
    .product-grid.compact {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }

    .product-card-img {
        aspect-ratio: 1;
        height: auto !important;
    }

    .product-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Smaller item text */
    .product-card-name {
        font-size: 0.6rem !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-card-price {
        font-size: 0.85rem !important;
    }

    /* --- Cart Drawer Full Screen --- */
    .cart-drawer {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }

    .cart-footer {
        padding: 12px !important;
    }

    .btn-send, .btn-pay {
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
    }

    /* --- Kiosk header --- */
    .kiosk-header-label {
        font-size: 0.6rem !important;
    }

    /* --- Chamada (Call) Page --- */
    .chamada-mesa-num {
        font-size: 4rem !important;
    }

    .chamada-btn {
        width: 120px !important;
        height: 120px !important;
        font-size: 0.85rem !important;
    }

    /* --- Estoque Bottom Nav --- */
    .estoque-bottom-nav,
    [class*="bottom-nav"] {
        height: auto !important;
        min-height: 50px;
    }

    .estoque-bottom-nav button,
    [class*="bottom-nav"] button {
        font-size: 0.55rem !important;
        padding: 6px 2px !important;
        gap: 2px !important;
    }

    .estoque-bottom-nav button i,
    [class*="bottom-nav"] button i {
        font-size: 0.95rem !important;
    }

    /* --- Mode Select Screen --- */
    .mode-select-screen {
        padding: 20px;
    }

    .mode-logo {
        font-size: 2.2rem;
    }

    .mode-select-header h1 {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .mode-grid {
        gap: 10px;
    }

    .mode-card {
        padding: 20px 10px;
    }

    .mode-card i {
        font-size: 1.6rem !important;
    }

    .mode-card span {
        font-size: 0.7rem;
    }
}

/* === Very small phones (≤360px) === */
@media (max-width: 360px) {
    .main-header .header-logo {
        font-size: 0.9rem;
    }

    .header-mode-badge {
        display: none;
    }

    .operator-badge-name {
        max-width: 35px;
    }

    .product-card-img {
        aspect-ratio: 1;
        height: auto !important;
    }

    .product-card-price {
        font-size: 0.8rem !important;
    }

    .pin-btn {
        width: 56px;
        height: 56px;
        font-size: 1.1rem;
    }
}

/* ========== PAGTICKETS DASHBOARD ========== */
.pag-event-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.pag-event-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: #3b82f6;
}

.pag-event-info h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
}

.pag-event-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

.pag-event-meta span i {
    margin-right: 5px;
    color: #3b82f6;
}

.pag-event-actions {
    display: flex;
    gap: 8px;
}

/* ─── KIOSK LOCK MODE ──────────────────────────────────────── */

.kiosk-lock-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.kiosk-lock-btn:active {
    transform: scale(0.9);
    color: var(--accent);
}
.kiosk-lock-btn.unlocked {
    color: var(--accent);
}

/* Admin toolbar shown when unlocked */
.kiosk-admin-bar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 44px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--accent);
    z-index: 9998;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    animation: slideDown 0.3s ease;
}
.kiosk-admin-bar.visible {
    display: flex;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.kiosk-admin-bar .admin-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kiosk-admin-bar .admin-bar-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.kiosk-admin-bar .admin-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
}
.kiosk-admin-bar .admin-back-btn:hover {
    filter: brightness(1.15);
}
.kiosk-admin-bar .admin-lock-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
}

/* Kiosk PIN Unlock Overlay */
.kiosk-unlock-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}
.kiosk-unlock-overlay.visible {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kiosk-unlock-box {
    text-align: center;
    padding: 32px;
    max-width: 320px;
    width: 90%;
}
.kiosk-unlock-box .unlock-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 12px;
}
.kiosk-unlock-box h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.kiosk-unlock-box p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-bottom: 20px;
}
.kiosk-unlock-input {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(225,29,58,0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font);
    text-align: center;
    letter-spacing: 12px;
    outline: none;
}
.kiosk-unlock-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(225,29,58,0.15);
}
.kiosk-unlock-error {
    color: #ff4d6a;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    display: none;
}
.kiosk-unlock-cancel {
    margin-top: 16px;
    padding: 8px 20px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-family: var(--font);
    cursor: pointer;
}

/* ========== FLOATING CHECKOUT BAR ========== */
.floating-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    padding: 0 12px 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    animation: checkoutBarSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkoutBarSlideUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.checkout-bar-inner {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 20px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(225, 29, 58, 0.25);
    border-radius: 18px;
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(225, 29, 58, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.checkout-bar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.checkout-bar-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-bar-total {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 20px rgba(225, 29, 58, 0.3);
}

.checkout-bar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #00ff6a, #00cc55);
    color: #000;
    border: none;
    border-radius: 14px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(225, 29, 58, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-bar-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(225, 29, 58, 0.45);
}

.checkout-bar-btn:active {
    transform: scale(0.97);
}

.checkout-bar-btn i {
    font-size: 0.85rem;
}

/* Pulse animation on the checkout bar when total changes */
@keyframes checkoutPulse {
    0% { box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(225, 29, 58, 0.08); }
    50% { box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.6), 0 0 50px rgba(225, 29, 58, 0.25); border-color: rgba(225, 29, 58, 0.5); }
    100% { box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(225, 29, 58, 0.08); }
}

.checkout-bar-inner.pulse {
    animation: checkoutPulse 0.5s ease;
}

/* Add padding to product grid when checkout bar is showing */
.product-grid-container.has-checkout-bar {
    padding-bottom: 90px;
}

/* ========== PAYMENT METHOD SELECTION MODAL ========== */
.pay-method-modal {
    width: calc(100% - 24px);
    max-width: 440px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    animation: payMethodModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* Kiosk: payment selection takes full screen for visibility on TVs/large displays */
.modal-overlay.pay-method-fullscreen {
    background: var(--bg-secondary);
    backdrop-filter: none;
}
.modal-overlay.pay-method-fullscreen .pay-method-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}
.modal-overlay.pay-method-fullscreen .pay-method-header {
    padding: 24px 32px;
}
.modal-overlay.pay-method-fullscreen .pay-method-header h2 {
    font-size: 1.4rem;
}
.modal-overlay.pay-method-fullscreen .pay-method-total {
    padding: 24px 32px;
}
.modal-overlay.pay-method-fullscreen .pay-method-total strong {
    font-size: 2.2rem;
}
.modal-overlay.pay-method-fullscreen .pay-method-grid {
    flex: 1;
    align-content: center;
    padding: 24px 48px;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.modal-overlay.pay-method-fullscreen .pay-method-option {
    padding: 36px 16px;
    gap: 14px;
}
.modal-overlay.pay-method-fullscreen .pay-method-icon {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
}
.modal-overlay.pay-method-fullscreen .pay-method-label {
    font-size: 1.1rem;
}
.modal-overlay.pay-method-fullscreen .pay-method-sub {
    font-size: 0.85rem;
}
.modal-overlay.pay-method-fullscreen .pay-method-items-summary {
    margin: 0 32px 24px;
}

/* ========== SPLIT PAYMENT BUILDER ========== */
.split-modal {
    width: calc(100% - 24px);
    max-width: 560px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    animation: payMethodModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.split-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.split-header h2 {
    font-size: 1.05rem; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.split-header h2 i { color: #06b6d4; }
.split-totals {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 1px; background: var(--border);
    border-bottom: 1px solid var(--border);
}
.split-total-cell {
    background: var(--bg-secondary);
    padding: 14px 12px; text-align: center;
    display: flex; flex-direction: column; gap: 4px;
}
.split-total-cell span {
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.split-total-cell strong { font-size: 1.15rem; font-weight: 800; }
.split-total-cell.paid strong { color: #10b981; }
.split-total-cell.remaining strong { color: #f59e0b; }
.split-total-cell.remaining.zero strong { color: #10b981; }
.split-quick {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    background: rgba(6,182,212,0.05);
}
.split-quick label {
    flex: 1; display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-secondary);
}
.split-quick input {
    width: 60px; padding: 6px 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px; color: #fff; font-size: 0.95rem;
    text-align: center; font-family: var(--font);
}
.btn-split-secondary {
    padding: 8px 14px;
    background: rgba(6,182,212,0.15);
    border: 1px solid rgba(6,182,212,0.3);
    border-radius: 8px; color: #22d3ee;
    font-weight: 700; cursor: pointer; font-family: var(--font);
    font-size: 0.85rem;
}
.split-payments {
    flex: 1; min-height: 80px; max-height: 220px;
    overflow-y: auto; padding: 12px 20px;
}
.split-empty {
    text-align: center; padding: 20px;
    color: var(--text-muted); font-size: 0.85rem;
}
.split-payment-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin-bottom: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.split-payment-row.paid { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.06); }
.split-payment-row.pending { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); }
.split-payment-row .spr-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff; font-size: 0.95rem;
}
.split-payment-row .spr-info { flex: 1; min-width: 0; }
.split-payment-row .spr-method { font-size: 0.85rem; font-weight: 700; }
.split-payment-row .spr-status { font-size: 0.7rem; color: var(--text-muted); }
.split-payment-row .spr-amount { font-size: 1rem; font-weight: 800; }
.split-payment-row .spr-remove {
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444; cursor: pointer; font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
}
.split-add {
    padding: 12px 20px; border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.split-add-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.split-add-label {
    font-size: 0.78rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.split-add-row input {
    flex: 1; padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 10px; color: #fff;
    font-size: 1.1rem; font-weight: 700; font-family: var(--font);
}
.split-method-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.split-method {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 10px 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; color: #fff; cursor: pointer;
    font-family: var(--font); transition: all 0.15s;
}
.split-method:hover { border-color: #06b6d4; background: rgba(6,182,212,0.08); }
.split-method:active { transform: scale(0.97); }
.split-method i { font-size: 1.1rem; color: #22d3ee; }
.split-method span { font-size: 0.7rem; font-weight: 600; }
.split-footer {
    display: flex; gap: 10px; padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.btn-split-cancel {
    flex: 1; padding: 12px; border-radius: 10px;
    background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444; font-weight: 700; cursor: pointer; font-family: var(--font);
}
.btn-split-finish {
    flex: 2; padding: 12px; border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none; color: #fff; font-weight: 800; cursor: pointer;
    font-family: var(--font); font-size: 0.95rem;
}
.btn-split-finish:disabled {
    background: rgba(255,255,255,0.06); color: var(--text-muted); cursor: not-allowed;
}

/* Kiosk fullscreen variant for split modal */
.modal-overlay.split-fullscreen .split-modal {
    width: 100%; max-width: 100%; height: 100%; max-height: 100%;
    border-radius: 0; border: none;
}

/* ========== EVENT BADGE (header) ========== */
.event-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(6, 182, 212, 0.10);
    border: 1px solid rgba(6, 182, 212, 0.30);
    border-radius: 8px;
    color: #22d3ee;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.event-badge:hover { background: rgba(6,182,212,0.18); border-color: rgba(6,182,212,0.5); }
.event-badge i { font-size: 0.85rem; }
.event-badge.no-event {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.3);
    color: #f87171;
}
.event-badge .event-badge-label { white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

/* Event selector list rows */
.event-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; margin-bottom: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer; transition: all 0.15s;
}
.event-row:hover { border-color: #06b6d4; background: rgba(6,182,212,0.06); }
.event-row.active { border-color: #06b6d4; background: rgba(6,182,212,0.12); }
.event-row .er-day {
    width: 56px; flex-shrink: 0; text-align: center;
    padding: 6px 0; border-radius: 8px;
    background: rgba(6,182,212,0.12);
}
.event-row .er-day .er-weekday { font-size: 0.62rem; text-transform: uppercase; color: #22d3ee; font-weight: 800; letter-spacing: 1px; }
.event-row .er-day .er-num { font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1; }
.event-row .er-info { flex: 1; min-width: 0; }
.event-row .er-name { font-size: 0.92rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-row .er-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.event-row .er-active-tag {
    background: #06b6d4; color: #000;
    font-size: 0.65rem; font-weight: 800; padding: 3px 8px;
    border-radius: 6px; text-transform: uppercase; letter-spacing: 1px;
}

/* Per-event summary table */
.event-summary-row {
    display: grid;
    grid-template-columns: 60px 1fr 90px 80px 90px;
    gap: 12px; align-items: center;
    padding: 10px 12px; margin-bottom: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
}
.event-summary-row.header {
    background: transparent; border: none;
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
    margin-bottom: 0;
}
.event-summary-row .es-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-summary-row .es-revenue { color: #10b981; font-weight: 800; text-align: right; }
.event-summary-row .es-count { text-align: right; color: var(--text-secondary); }
.event-summary-row .es-ticket { color: var(--text-muted); text-align: right; font-size: 0.78rem; }

@keyframes payMethodModalIn {
    0% { transform: scale(0.9) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.pay-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.pay-method-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pay-method-header h2 i {
    color: var(--accent);
}

.pay-method-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(225, 29, 58, 0.04);
    border-bottom: 1px solid var(--border);
}

.pay-method-total span {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.pay-method-total strong {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(225, 29, 58, 0.25);
}

.pay-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 20px;
}

.pay-method-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
    color: var(--text-primary);
}

.pay-method-option:hover {
    border-color: rgba(225, 29, 58, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pay-method-option:active {
    transform: scale(0.96);
}

.pay-method-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pay-method-label {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pay-method-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

.pay-method-items-summary {
    padding: 0 20px 16px;
    max-height: 120px;
    overflow-y: auto;
}

.pay-method-items-summary .pm-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pay-method-items-summary .pm-item-row:last-child {
    border-bottom: none;
}

.pay-method-items-summary .pm-item-qty {
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 6px;
}

/* ========== COPA BREAK (Sessão Intervalo) ========== */
.copa-break-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #f59e0b;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copa-break-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

.copa-break-btn.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    animation: breakBtnPulse 2s ease-in-out infinite;
}

@keyframes breakBtnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15); }
}

/* Break countdown banner */
.copa-break-banner {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 95;
    animation: bannerSlideDown 0.4s ease;
}

.copa-break-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.95), rgba(217,119,6,0.95));
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}

.copa-break-banner-icon {
    font-size: 1.2rem;
    color: #000;
}

.copa-break-banner-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #000;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.copa-break-banner-who {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
}

.copa-break-banner-timer {
    font-size: 1.4rem;
    font-weight: 900;
    color: #000;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
    letter-spacing: 2px;
}

.copa-break-cancel {
    padding: 6px 14px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 8px;
    color: #000;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copa-break-cancel:hover {
    background: rgba(0,0,0,0.3);
}

/* Push kitchen sections down when break banner is shown */
#kitchenSections.break-active {
    margin-top: 46px;
}

/* Break duration display in modal */
.copa-break-duration-display {
    font-size: 3.5rem;
    font-weight: 900;
    color: #f59e0b;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(245,158,11,0.3);
    letter-spacing: 4px;
    margin-top: 8px;
}

/* ========== WAITER NAVBAR (Copos + Observação) ========== */
:root {
    --waiter-navbar-h: 46px;
}

.waiter-navbar {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 91;
    display: flex;
    gap: 6px;
    padding: 5px 10px;
    height: var(--waiter-navbar-h);
    background: rgba(12, 12, 18, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
}

/* Push categories bar down to make room for navbar in waiter mode */
#waiterCategories {
    top: calc(var(--header-h) + var(--waiter-navbar-h) + env(safe-area-inset-top, 0px)) !important;
}

/* Push product grid down to account for navbar height in waiter mode */
#waiterMode .product-grid-container {
    padding-top: calc(var(--header-h) + var(--waiter-navbar-h) + var(--categories-h) + 8px + env(safe-area-inset-top, 0px)) !important;
}

.waiter-navbar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.5);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.waiter-navbar-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.waiter-navbar-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.waiter-navbar-btn:not(:disabled):active {
    transform: scale(0.97);
}

.waiter-navbar-btn i {
    font-size: 0.9rem;
}

.waiter-navbar-btn:first-child:not(:disabled) {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.06);
}

.waiter-navbar-btn:first-child:not(:disabled):hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.waiter-navbar-btn:last-child:not(:disabled) {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.06);
}

.waiter-navbar-btn:last-child:not(:disabled):hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.waiter-navbar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #f59e0b;
    color: #000;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.waiter-navbar-badge-obs {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* NavBar Modal Tabs */
.waiter-nav-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.waiter-nav-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: calc(var(--radius-sm) - 2px);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.waiter-nav-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.waiter-nav-tab:hover:not(.active) {
    color: var(--text-secondary);
}

/* Cups Counter */
.cups-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.cups-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: var(--font);
}

.cups-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    transform: scale(1.05);
}

.cups-btn:active {
    transform: scale(0.95);
}

.cups-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f59e0b;
    min-width: 60px;
    text-align: center;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.cups-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.cups-preset {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cups-preset:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.cups-preset:active {
    transform: scale(0.93);
}

/* Observation Textarea */
.waiter-obs-textarea {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.waiter-obs-textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.waiter-obs-textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Kitchen order — cups + observation display */
.kitchen-order-extras {
    padding: 6px 14px 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kitchen-order-cups {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f59e0b;
}

.kitchen-order-cups i {
    font-size: 0.75rem;
}

.kitchen-order-obs {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #93c5fd;
    line-height: 1.3;
}

.kitchen-order-obs i {
    font-size: 0.7rem;
    margin-top: 2px;
    flex-shrink: 0;
}

