/* DESIGN SYSTEM - TOTEM TOUCHSCREEN SYSTEM */

:root {
    /* Color Palette */
    --primary-red: #e82c2a;
    --primary-orange: #ff6b00;
    --primary-yellow: #ffb800;
    --accent-color: #ff3e3e;
    
    --bg-main: #f5f6f8;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-dark: #121213;
    
    --text-primary: #1e2022;
    --text-secondary: #686d76;
    --text-light: #ffffff;
    
    --success-green: #00b894;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-active: 0 4px 10px rgba(0, 0, 0, 0.04);
    
    /* Rounded Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-round: 50%;
    
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    
    /* Animation Speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Bottom spacing for mobile browser/navigation bars */
    --android-nav-offset: 0px;
}

/* Reset and Core Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    background-color: #2c3e50; /* Sleek background for the kiosk demo */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 20px;
}

/* physical totem enclosure shell on desktop, full-screen on mobile */
.totem-device {
    background: #1e1e24;
    width: 480px;
    height: 960px;
    border-radius: 40px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5), inset 0 2px 8px rgba(255,255,255,0.1);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 4px solid #33363f;
}

/* Webcam or Kiosk sensor mock */
.totem-device::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    border: 2px solid #222;
}

/* The actual Kiosk Screen */
.totem-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* Base screen layers */
.screen-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
    pointer-events: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.screen-layer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* 1. SCREENSAVER SCREEN STYLING */
#screensaver {
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 24px;
    text-align: center;
    overflow: hidden;
}

.admin-quick-links {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.btn-admin-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 8px 14px;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
    backdrop-filter: blur(10px);
}

.btn-admin-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-admin-link:active {
    transform: scale(0.95);
}

.btn-admin-link i {
    width: 14px;
    height: 14px;
}

.screensaver-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.screensaver-images {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 380px;
    margin-top: 40px;
}

.image-wrapper {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: var(--radius-round);
    background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-img {
    left: -20px;
    animation: floating-left 6s ease-in-out infinite;
}

.right-img {
    right: -20px;
    top: 100px;
    animation: floating-right 6s ease-in-out infinite;
}

.image-wrapper img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.35));
}

.screensaver-logo {
    margin-top: 20px;
}

.logo-badge {
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow));
    color: var(--text-light);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    display: inline-block;
}

.screensaver-title {
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 10px;
}

.screensaver-subtitle {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.tap-to-start {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-start {
    background: var(--text-light);
    color: var(--primary-orange);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 22px 30px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform var(--transition-fast);
    z-index: 5;
    animation: pulse-button 2s infinite;
}

.btn-start:active {
    transform: scale(0.96);
}

.pulse-ring {
    position: absolute;
    width: 102%;
    height: 102%;
    top: -1%;
    left: -1%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    animation: ripple 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

/* 2. MAIN MENU SCREEN STYLING */
#menu-screen {
    display: flex;
    flex-direction: column;
}

.kiosk-header {
    background: var(--bg-card);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    z-index: 10;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-emoji {
    font-size: 2rem;
    animation: swing-gently 3s ease-in-out infinite;
}

.header-logo h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.header-logo p {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.btn-cancel-order {
    background: #ffebeb;
    color: var(--primary-red);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.btn-cancel-order:active {
    transform: scale(0.95);
}

/* Sidebar Layout */
.kiosk-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.category-sidebar {
    width: 110px;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    padding: 12px 6px 110px 6px; /* Added bottom padding to prevent bottom cart overlap */
}

body.cardapiototem-page .category-sidebar {
    padding: 12px 6px calc(210px + var(--android-nav-offset)) 6px; /* Space for cart footer and Android navigation */
}

/* Hide Sidebar Scrollbar */
.category-sidebar::-webkit-scrollbar {
    width: 0px;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.category-item:active {
    transform: scale(0.9);
}

.category-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform var(--transition-fast);
}

.category-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Active Category item styles */
.category-item.active {
    background: linear-gradient(135deg, #fff0eb 0%, #ffe3d8 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255, 107, 0, 0.15);
}

.category-item.active .category-icon {
    transform: scale(1.18);
}

.category-item.active .category-name {
    color: var(--primary-orange);
    font-weight: 800;
}

/* Product Catalog List */
.product-catalog {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
}

.catalog-header {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.catalog-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.items-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-bottom: calc(100px + var(--android-nav-offset)); /* Space for the bottom footer cart */
}

/* Product Card Styling */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-active);
}

.product-card.unavailable {
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(0.85);
}

.product-card.unavailable::after {
    content: 'Indisponível';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    background: rgba(232, 44, 42, 0.95);
    color: white;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.product-img-container {
    width: 100%;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background: radial-gradient(circle, #f9f9fb 0%, #eceef2 100%);
    overflow: hidden;
}

.product-img-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.12));
    transition: transform var(--transition-fast);
}

.product-card:hover .product-img-container img {
    transform: scale(1.08);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    min-height: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: normal;
}

.product-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.btn-add-item {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-round);
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
    transition: transform var(--transition-fast);
}

.btn-add-item i {
    width: 20px;
    height: 20px;
}

.btn-add-item:active {
    transform: scale(0.85);
}

/* Floating Cart Footer Bar */
.cart-footer-bar {
    position: absolute;
    bottom: var(--android-nav-offset);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.08);
    transform: translateY(calc(100% + var(--android-nav-offset)));
    transition: transform var(--transition-medium) cubic-bezier(0.175, 0.885, 0.32, 1.1);
    z-index: 30;
}

.cart-footer-bar.visible {
    transform: translateY(0);
}

.footer-cart-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-badge-container {
    position: relative;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 12px;
}

.bag-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-orange);
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-red);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-round);
    min-width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-card);
    animation: pop-badge 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-price-details {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.summary-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-view-cart {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.3);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.btn-view-cart:active {
    transform: scale(0.95);
}

/* OVERLAYS & MODALS */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 19, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: calc(85% - var(--android-nav-offset));
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform var(--transition-medium) cubic-bezier(0.175, 0.885, 0.32, 1.05);
    padding: 24px 20px;
    margin-bottom: var(--android-nav-offset);
    box-shadow: 0 -15px 40px rgba(0,0,0,0.15);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid rgba(0,0,0,0.05);
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-modal {
    background: var(--bg-main);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-round);
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.btn-close-modal:active {
    transform: scale(0.9);
}

/* Cart Item Rows */
.scrollable-cart-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    position: relative;
    animation: fade-slide-in 0.3s ease-out;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
}

.cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 4px;
    border: 1px solid rgba(0,0,0,0.04);
}

.btn-qty {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-round);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.btn-qty:active {
    background: var(--bg-main);
}

.qty-val {
    min-width: 22px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-remove-item {
    background: #ffebeb;
    color: var(--primary-red);
    border: none;
    border-radius: var(--radius-round);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.btn-remove-item i {
    width: 18px;
    height: 18px;
}

/* Empty Cart State */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 240px;
    gap: 12px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-cart-state i {
    width: 60px;
    height: 60px;
    stroke-width: 1.5;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-cart-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1.5px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    margin-top: 16px;
}

.free-delivery-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    background: rgba(0, 184, 148, 0.10);
    border: 1px solid rgba(0, 184, 148, 0.22);
    color: var(--success-green, #00b894);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.25;
}

.free-delivery-message i {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    stroke-width: 2.5;
}

.free-delivery-message.is-pending {
    background: rgba(255, 107, 0, 0.08);
    border-color: rgba(255, 107, 0, 0.18);
    color: var(--primary-orange);
}

.modal-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-totals span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.modal-totals h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.modal-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 12px;
}

.btn-secondary {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.btn-secondary:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.25);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.btn-primary:active {
    transform: scale(0.96);
}

/* 3. PAYMENT SELECTION MODAL */
.payment-modal-content {
    max-height: 90%;
}

body.cardapiototem-page .payment-modal-content {
    max-height: calc(94% - var(--android-nav-offset));
}

.payment-selection-body {
    position: relative;
    min-height: 320px;
}

body.cardapiototem-page .payment-selection-body {
    overflow-y: auto;
    padding-bottom: calc(90px + var(--android-nav-offset));
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    transition: opacity var(--transition-fast);
    padding-bottom: 10px;
}

.payment-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.payment-card:active {
    transform: scale(0.97);
}

.payment-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.card-color {
    background: #eef3ff;
    color: #4834d4;
}

.debit-color {
    background: #fff2df;
    color: #e17000;
}

.pix-color {
    background: #e1fbf4;
    color: #00b894;
}

.payment-card i {
    width: 30px;
    height: 30px;
}

.payment-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.payment-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.tag-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.payment-card[data-payment="cartao"],
.payment-card[data-payment="credito"] {
    border-color: rgba(72, 52, 212, 0.1);
}
.payment-card[data-payment="debito"] {
    border-color: rgba(225, 112, 0, 0.14);
}
.payment-card[data-payment="pix"] {
    border-color: rgba(0, 184, 148, 0.1);
}
.payment-card[data-payment="dinheiro"] {
    border-color: rgba(72, 52, 212, 0.1);
}

.saved-address-options {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.saved-address-card {
    width: 100%;
    border: 1px solid rgba(255, 107, 0, 0.18);
    border-radius: var(--radius-md);
    background: rgba(255, 107, 0, 0.08);
    color: var(--text-white);
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.saved-address-card i {
    width: 22px;
    height: 22px;
    color: var(--primary-orange);
    flex: 0 0 22px;
}

.saved-address-card span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.saved-address-card strong {
    font-size: 0.9rem;
    font-weight: 800;
}

.saved-address-card small {
    color: var(--text-gray);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
}

/* Processing payment overlay */
.processing-payment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast);
    z-index: 60;
}

.processing-payment.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-main);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.pix-qr-container {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 16px 0;
    animation: fade-slide-in 0.4s ease-out;
}

.qr-code-placeholder {
    width: 160px;
    height: 160px;
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

/* A neat vector QR representation */
.qr-pattern {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: radial-gradient(var(--text-primary) 30%, transparent 30%);
    background-size: 8px 8px;
}

.qr-square {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 8px solid var(--text-primary);
}

.qr-square::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
}

.qr-tl { top: 0; left: 0; }
.qr-tr { top: 0; right: 0; }
.qr-bl { bottom: 0; left: 0; }

.qr-timer {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-red);
    background: #ffebeb;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
}

.processing-payment .btn-secondary {
    margin-top: 20px;
    width: 80%;
}

/* 4. SUCCESS SCREEN SCREEN STYLING */
#success-screen {
    background: linear-gradient(135deg, #0f1011 0%, #1d1e22 100%);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 24px;
    text-align: center;
}

.success-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.success-animation {
    margin-top: 20px;
}

.checkmark-circle {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-round);
    background: var(--success-green);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.4);
    animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.checkmark-circle i {
    width: 50px;
    height: 50px;
    stroke-width: 3.5;
    color: var(--text-light);
}

.success-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-top: 10px;
}

.success-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 10px;
}

/* realistic Ticket Stub */
.order-ticket {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fade-slide-up-ticket 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

/* Zigzag Ticket Cut on Bottom */
.order-ticket::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 12px;
    background-image: linear-gradient(135deg, var(--bg-card) 25%, transparent 25%), 
                      linear-gradient(225deg, var(--bg-card) 25%, transparent 25%);
    background-size: 16px 20px;
    background-position: 0 0;
    transform: rotate(180deg);
}

.ticket-header {
    background: #fff6eb;
    padding: 16px;
    border-bottom: 2px dashed rgba(255, 107, 0, 0.15);
}

.ticket-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-orange);
    letter-spacing: 2px;
}

.ticket-number {
    padding: 24px;
    background: var(--bg-card);
}

.ticket-number h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -2px;
    line-height: 1;
}

.ticket-footer {
    padding: 16px 24px 28px 24px;
    background: var(--bg-card);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-top: 1px solid #f1f2f6;
}

.success-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.auto-close-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.auto-close-msg span {
    font-weight: 700;
    color: var(--primary-yellow);
}

.success-footer .btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}


/* ANIMATIONS */
@keyframes floating-left {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(-8deg); }
}

@keyframes floating-right {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(15px) rotate(8deg); }
}

@keyframes pulse-button {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.06); opacity: 0; }
}

@keyframes swing-gently {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scale-up {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fade-slide-in {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-slide-up-ticket {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pop-badge {
    0% { transform: scale(0.5); }
    80% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.icon-pulse {
    animation: icon-move 1.5s infinite;
}

@keyframes icon-move {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-3px, -3px); }
}


/* MOBILE RESPONSIVENESS */
/* On actual mobile/touchscreen portrait displays, strip the totem outer bezels and go edge-to-edge */
@media (max-width: 500px), (max-height: 900px) {
    body.cardapiototem-page {
        --android-nav-offset: 72px;
        --android-nav-offset: max(72px, env(safe-area-inset-bottom));
    }

    body {
        padding: 0;
        background-color: var(--bg-main);
    }
    
    .totem-device {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        border: none;
        padding: 0;
        box-shadow: none;
    }
    
    .totem-screen {
        border-radius: 0;
    }

    body.cardapiototem-page .ident-header-row span {
        color: #fff !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    }

    body.cardapiototem-page .ident-main-content {
        justify-content: flex-start;
        padding: 24px 24px calc(92px + var(--android-nav-offset));
        gap: 14px;
    }

    body.cardapiototem-page .ident-glass-panel {
        margin: 0;
    }

    body.cardapiototem-page .ident-skip-wrapper {
        margin-top: 14px;
        padding-bottom: 0;
    }

    body.cardapiototem-page .payment-methods-grid {
        gap: 12px;
    }

    body.cardapiototem-page .payment-card {
        padding: 14px;
    }

    body.cardapiototem-page .payment-card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    body.cardapiototem-page .payment-card h3 {
        font-size: 1rem;
    }

    body.cardapiototem-page .payment-card p {
        font-size: 0.76rem;
        margin-bottom: 8px;
    }
}

/* Logo Styling */
.kiosk-logo-large {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    margin-bottom: 10px;
}

.kiosk-logo-small {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

.screensaver-logo-container {
    margin-top: 10px;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* MILK SHAKE CUSTOMIZATION MODAL STYLES */
.milkshake-modal-content {
    max-height: calc(90% - var(--android-nav-offset));
}

.customization-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.custom-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.selected-size-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-orange);
    text-align: center;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--primary-orange);
}

.section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.required-tag {
    font-size: 0.7rem;
    color: var(--primary-red);
    background: #ffebeb;
    padding: 4px 8px;
    border-radius: var(--radius-xl);
    font-weight: 700;
}

.price-hint {
    font-size: 0.8rem;
    color: var(--success-green);
    font-weight: 700;
}

/* Flavor Navigation Tabs */
.flavor-tabs {
    display: flex;
    background: var(--bg-main);
    padding: 4px;
    border-radius: var(--radius-sm);
    gap: 4px;
}

.flavor-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.flavor-tab-btn.active {
    background: var(--bg-card);
    color: var(--primary-orange);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Flavor grid views */
.flavors-grid-container {
    position: relative;
    min-height: 200px;
}

.flavors-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    animation: fade-slide-in 0.3s ease-out;
}

.flavors-grid.active {
    display: grid;
}

/* Obsolete .flavor-option style removed to match additional-option layout */
.flavor-option {
    /* Styles inherited from .additional-option */
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-round);
    flex-shrink: 0;
}



/* Flavor option selected state */


/* Additionals vertical grid layout */
.additional-options-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 4px 2px 8px 2px;
    width: 100%;
}

.additional-option {
    position: relative;
    aspect-ratio: 1 / 1.15;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
    border: 1.5px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.additional-option:active {
    transform: scale(0.95);
}

/* Background image layer */
.additional-option .add-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.additional-option .add-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}
.additional-option .add-bg .add-icon {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* Dark gradient overlay */
.additional-option .add-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.0) 0%,
        rgba(0,0,0,0.00) 30%,
        rgba(0,0,0,0.00) 55%,
        rgba(0,0,0,0.0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Name centered in card */
.additional-option .add-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 90%;
    font-size: 0.76rem;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    text-shadow:
        0 1px 3px rgba(0,0,0,1),
        0 -1px 3px rgba(0,0,0,1),
        1px 0 3px rgba(0,0,0,1),
        -1px 0 3px rgba(0,0,0,1),
        0 0 8px rgba(0,0,0,0.9);
    line-height: 1.2;
    word-break: break-word;
    pointer-events: none;
}

/* Price bar at bottom */
.additional-option .add-price {
    position: relative;
    z-index: 3;
    background: #ffd32c;
    color: #000000;
    font-weight: 900;
    font-size: 0.7rem;
    text-align: center;
    padding: 5px 2px;
    width: 100%;
    border-top: 2px solid rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
}

/* Selected state */
.additional-option.selected {
    border: 2px solid #ffd32c !important;
    box-shadow: 0 0 12px rgba(255, 211, 44, 0.45);
}

/* Selected checkmark badge */
.additional-option .add-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 4;
    background: #ffd32c;
    color: #000;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.additional-option .add-badge::before {
    content: "\2713";
    line-height: 1;
}
.additional-option.selected .add-badge {
    display: flex;
}

/* Keep .add-name backward compat outside of .additional-option if needed */
.add-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Additional option selected state (legacy fallback) */
.additional-option.selected .add-name {
    color: #fff;
}

/* Hamburgers Split View Layout */
.split-burgers-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 8px;
}

.burgers-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-col-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    padding-bottom: 4px;
    border-bottom: 3px solid var(--primary-orange);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.special-col {
    background: var(--bg-dark); /* Dark background as requested */
    padding: 14px 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.special-col .split-col-title {
    color: #ffffff;
    border-bottom-color: var(--primary-red);
    margin-left: 4px;
    margin-right: 4px;
}

.burgers-split-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Beautiful 2-column grid for traditional burgers */
    gap: 12px;
}

.burgers-split-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Special Burger Card (Row Layout, Dark Theme) */
.special-burger-card.product-card {
    background: #1e1e24; /* Dark card background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: row; /* Row layout: image next to description */
    align-items: center;
    gap: 10px;
    text-align: left;
    min-height: 100px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.special-burger-card.product-card:active {
    background: #2a2a35;
    transform: scale(0.97);
}

.special-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.special-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff !important; /* White title as requested */
    line-height: 1.2;
}

.special-card-desc {
    font-size: 0.65rem;
    color: #b2bec3 !important; /* Smaller white description as requested */
    line-height: 1.3;
}

.special-card-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ff3e3e !important; /* Red price as requested */
}

.special-card-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: radial-gradient(circle, #f9f9fb 0%, #eceef2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    flex-shrink: 0;
    overflow: hidden;
}

.special-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

/* Cascão Section Layouts */
.cascao-sections-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 8px;
    padding-bottom: 80px;
}

.cascao-section {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cascao-sec-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    padding-bottom: 6px;
    border-bottom: 3px solid var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cascao-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cascao-price-tag-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 4px 0;
}

.yellow-price-tag-circular {
    background: var(--primary-yellow); /* Bright Yellow */
    color: var(--bg-dark); /* Dark text */
    font-size: 1.15rem;
    font-weight: 900;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
    border: 3px solid #ffffff;
    font-family: var(--font-primary);
    position: relative;
    animation: pulse-button 2s infinite;
}

#cascao-sec-3 {
    border-left: 5px solid var(--primary-yellow);
}



/* Custom premium modal styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-card {
    background: rgba(28, 28, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 400px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Outfit', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-modal-overlay.active .custom-modal-card {
    transform: scale(1) translateY(0);
}

.custom-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.custom-modal-icon.warning-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.custom-modal-icon.alert-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.custom-modal-icon.success-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.custom-modal-icon.money-icon {
    background: rgba(255, 107, 0, 0.16);
    color: var(--primary-orange);
}

.custom-modal-icon i {
    width: 32px;
    height: 32px;
}

.custom-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.custom-modal-message {
    font-size: 0.95rem;
    color: #e4e4e7;
    line-height: 1.6;
    margin-bottom: 28px;
}

.custom-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.custom-modal-actions.single-action {
    grid-template-columns: 1fr;
}

.custom-money-card {
    max-width: 420px;
}

.custom-money-card .custom-modal-message {
    margin-bottom: 16px;
}

.custom-money-card .custom-modal-message strong {
    color: var(--primary-yellow);
}

.custom-money-label {
    width: 100%;
    color: #f4f4f5;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 8px;
}

.custom-money-input-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 2px solid rgba(255, 107, 0, 0.35);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 22px rgba(255, 107, 0, 0.18);
}

.custom-money-input-wrap span {
    color: var(--primary-orange);
    font-size: 1.25rem;
    font-weight: 900;
}

.custom-money-input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.45rem;
    font-weight: 900;
    text-align: left;
}

.custom-money-input-wrap input::placeholder {
    color: #b7bdc8;
}

.btn-custom-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-custom-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-custom-confirm {
    background: linear-gradient(135deg, var(--primary-orange), #ff4d4d);
    border: none;
    color: var(--text-white);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
    transition: all var(--transition-fast);
}

.btn-custom-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 77, 0.5);
}

.btn-custom-confirm:active {
    transform: translateY(0);
}

/* Additional option with image (legacy, handled via .add-bg now) */
.additional-option .add-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   ESTADO DE ADICIONAL ESGOTADO / EM FALTA (ICE DRAGON)
   ========================================================================== */

/* Aplica opacidade, efeito cinzento e bloqueia o clique do cliente */
.additional-option.unavailable, .flavor-option.unavailable {
    opacity: 0.4 !important;
    pointer-events: none !important; /* Impede completamente o toque/clique */
    filter: grayscale(100%);
    position: relative;
    user-select: none;
}

/* Cria a tarja vermelha de "ESGOTADO" centralizada sobre o card */
.additional-option.unavailable::after, .flavor-option.unavailable::after {
    content: "ESGOTADO";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 62, 62, 0.95); /* Vermelho destacado */
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 99; /* Garante que fica por cima da imagem e do texto */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}
/* Custom Modal Themes */
.btn-custom-confirm.btn-theme-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}
.btn-custom-confirm.btn-theme-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}


/* ==========================================================================
   VIRTUAL KEYBOARD AND IDENTIFICATION SCREEN
   ========================================================================== */
#identification-screen {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #08090b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ident-glass-panel {
    background: rgba(255, 255, 255, 0.70); /* Mais claro (menos transparente) */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.25); /* Bordas mais marcadas */
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px; /* Mais largo para o teclado respirar */
    padding: 24px 2px; /* Menos padding horizontal para dar mais espaço às teclas */
    box-sizing: border-box;
    box-shadow: 0 20px 45px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    z-index: 1;
    margin: auto;
}

.ident-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 24px 20px;
    box-sizing: border-box;
    width: 100%;
    z-index: 1;
}

.ident-skip-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 14px auto 0;
    padding: 0 15px;
    box-sizing: border-box;
    flex-shrink: 0;
}

#keyboard-alpha .keyboard-row {
    gap: 2px; /* Espaço reduzido entre as teclas de letras */
}

#keyboard-alpha .keyboard-key {
    height: 52px;
    font-size: 1.15rem; /* Ajustado para caber perfeitamente */
    border-radius: 6px;
}

.virtual-keyboard-wrapper {
    width: 100%;
    max-width: 500px;
    margin-top: auto;
    padding: 0 16px;
    box-sizing: border-box;
    z-index: 1;
}

.virtual-keyboard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.keyboard-key {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    color: #0b09ad; /* Dark blue contrasting nicely */
    font-size: 1.35rem;
    font-weight: 900;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.05s ease;
    flex: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2), inset 0 -2px 0 rgba(0,0,0,0.15);
}

.keyboard-key:active {
    background: #ffb800 !important; /* Yellow highlights visual active state */
    border-color: #ffb800 !important;
    color: #000000 !important;
    transform: scale(0.92) translateY(2px);
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.6);
}

.keyboard-key.wide {
    flex: 2.5;
    font-size: 1rem;
    text-transform: uppercase;
}

.keyboard-key.backspace {
    background: #ffe5e5;
    border-color: #ffcccc;
    color: #ff3e3e;
}

.keyboard-key.backspace:active {
    background: #ff3e3e !important;
    border-color: #ff3e3e !important;
    color: #ffffff !important;
}

.keyboard-key.clear {
    background: #ffe5e5;
    border-color: #ffcccc;
    color: #ff3e3e;
    font-size: 0.85rem;
}

.keyboard-key.clear:active {
    background: #ff3e3e !important;
    border-color: #ff3e3e !important;
    color: #ffffff !important;
}

#ident-input-whatsapp, #ident-input-name {
    background: #ffffff !important;
    color: #1e2022 !important;
    border: 3px solid var(--primary-orange) !important;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35) !important;
    border-radius: var(--radius-md) !important;
    transition: transform 0.2s ease;
}

#ident-input-whatsapp::placeholder, #ident-input-name::placeholder {
    color: #a8aeb7 !important;
}

@keyframes welcomePulse {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
