/* ==========================================================================
   Global TransKiosk - Premium Glassmorphism Style Sheet
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #030f0a;
    --bg-card: rgba(8, 25, 18, 0.7);
    --border-glass: rgba(52, 211, 153, 0.12);
    --border-glass-active: rgba(52, 211, 153, 0.35);
    
    --neon-blue: #34d399;
    --neon-blue-rgb: 52, 211, 153;
    --neon-purple: #10b981;
    --neon-purple-rgb: 16, 185, 129;
    --neon-pink: #ecd06f;
    --neon-pink-rgb: 236, 208, 111;
    --neon-green: #00ff87;
    
    --text-main: #ffffff;
    --text-muted: #a7f3d0;
    --text-dark: #020a06;
    
    /* Fonts & Transitions */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(52, 211, 153, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 45%);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Top Control Bar */
.app-header {
    height: 60px;
    background: rgba(11, 12, 22, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(52, 211, 153, 0.15);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.peanut-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--neon-blue);
    object-fit: cover;
    background: rgba(52, 211, 153, 0.1);
}

.welcome-avatar-img {
    width: 48px;
    height: 48px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo small {
    font-size: 11px;
    font-weight: 400;
    color: var(--neon-blue);
    background: rgba(0, 242, 254, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.neon-icon-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.global-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Preset & Layout buttons */
.preset-selector, .layout-toggle {
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    display: flex;
    gap: 4px;
}

.preset-btn, .layout-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.preset-btn:hover, .layout-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.preset-btn.active, .layout-btn.active {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #030f0a;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.control-btn:hover {
    background: rgba(255, 0, 127, 0.15);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

/* Split Layout System */
.kiosk-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Face-to-Face Mode (Split top & bottom, top rotated 180deg) */
.layout-face-to-face {
    flex-direction: column;
}

.layout-face-to-face .customer-panel {
    transform: rotate(180deg);
    border-bottom: 1px solid var(--border-glass);
}

.layout-face-to-face .view-panel {
    height: 50%;
    width: 100%;
}

/* Side-by-Side Mode (Split left & right) */
.layout-side-by-side {
    flex-direction: row;
}

.layout-side-by-side .view-panel {
    width: 50%;
    height: 100%;
}

.layout-side-by-side .customer-panel {
    border-left: 1px solid var(--border-glass);
}

/* View Panel Base */
.view-panel {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Panel Headers */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.customer-panel .avatar {
    color: var(--neon-pink);
    border-color: rgba(255, 0, 127, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.1) inset;
}

.staff-panel .avatar {
    color: var(--neon-blue);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1) inset;
}

.badge-text h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Language Selection dropdown styling */
.lang-select-wrapper {
    position: relative;
}

.lang-select {
    background: rgba(2, 16, 10, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-select:hover {
    background: rgba(2, 16, 10, 0.95);
    border-color: var(--neon-blue);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.2);
}

/* Chat Feed Area */
.chat-feed {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.welcome-card {
    margin: auto;
    text-align: center;
    max-width: 340px;
    padding: 20px;
    opacity: 0.85;
}

.welcome-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--neon-purple);
    filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.4));
}

.welcome-card h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Bubble Message Styling */
.msg-bubble {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.msg-bubble.outgoing {
    align-self: flex-end;
    background: rgba(16, 44, 32, 0.95);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-bottom-right-radius: 4px;
}

.msg-bubble.incoming {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(8, 38, 28, 0.95), rgba(12, 50, 36, 0.95));
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-bottom-left-radius: 4px;
}

/* Original vs Translation styles in Bubble */
.msg-original {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    font-size: 13px;
    margin-bottom: 4px;
}

.msg-translation {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.customer-panel .msg-bubble.incoming {
    background: linear-gradient(135deg, rgba(46, 38, 16, 0.95), rgba(30, 25, 10, 0.95));
    border-color: rgba(236, 208, 111, 0.4);
}

.customer-panel .msg-translation {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.tts-speaker-btn {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.tts-speaker-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Interactive Widgets Layout */
.kiosk-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    border-left: 3px solid var(--neon-purple);
    padding-left: 8px;
}

.customer-panel .widget-title {
    border-left-color: var(--neon-pink);
}

/* Menu Grid (Kiosk Style) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.menu-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-card:hover {
    background: rgba(255, 0, 127, 0.08);
    border-color: var(--neon-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.15);
}

.menu-card-icon {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--neon-pink);
}

.menu-card-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.menu-card-price {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Shopping Cart Container */
.cart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 140px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 6px;
}

.empty-cart-msg {
    margin: auto;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
}

.cart-item-name {
    font-weight: 500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-qty-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: var(--neon-blue);
    color: var(--bg-dark);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row {
    font-size: 13px;
    font-weight: 500;
}

.total-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--neon-blue);
    margin-left: 6px;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.pay-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: var(--bg-dark);
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.pay-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.pay-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

/* Quick Guide Chips */
.guide-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 90px;
    overflow-y: auto;
}

.guide-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.guide-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

/* Input Controls Section */
.input-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.text-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.chat-input {
    flex: 1;
    background: rgba(2, 16, 10, 0.6);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 12px;
    color: #ffffff;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--neon-blue);
    background: rgba(2, 16, 10, 0.8);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.customer-panel .chat-input:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 12px rgba(236, 208, 111, 0.35);
}

.send-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(52, 211, 153, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.send-btn:hover {
    background: var(--neon-purple);
    color: #ffffff;
    border-color: var(--neon-purple);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.customer-panel .send-btn:hover {
    background: var(--neon-pink);
    color: #030f0a;
    border-color: var(--neon-pink);
    box-shadow: 0 0 12px rgba(236, 208, 111, 0.4);
}

/* Voice Microphone Row */
.voice-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.mic-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #10b981, #00ff87);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 255, 135, 0.4);
    z-index: 2;
    transition: var(--transition-fast);
}

.customer-panel .mic-btn {
    background: linear-gradient(135deg, #ecd06f, #f5e3a8);
    color: #030f0a;
    box-shadow: 0 4px 20px rgba(236, 208, 111, 0.4);
}

.mic-btn:hover {
    transform: scale(1.08);
}

.mic-btn:active {
    transform: scale(0.92);
}

.mic-hint {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Wave Animation (Activated when speaking) */
.wave-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.mic-btn.listening .wave-animation {
    animation: waveEffect 1.8s infinite ease-out;
}

@keyframes waveEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* Payment Modal Style (Glassmorphic Card UI) */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 12, 22, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.payment-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.payment-modal-content {
    background: rgba(20, 22, 41, 0.75);
    border: 1px solid var(--border-glass-active);
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.payment-modal-overlay.open .payment-modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--text-main);
}

/* NFC Animation */
.nfc-animation-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon {
    font-size: 50px;
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    z-index: 2;
}

.card-contactless-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 16px;
    color: var(--neon-blue);
    z-index: 2;
}

.card-wave {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    animation: nfcPulse 2s infinite ease-out;
}

@keyframes nfcPulse {
    0% {
        transform: scale(0.7);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.payment-modal-content h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-top: 10px;
}

.payment-amount-text {
    font-size: 16px;
    margin-top: 8px;
    color: var(--text-muted);
}

.highlight-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--neon-pink);
    text-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
}

.payment-instruction {
    font-size: 13px;
    color: var(--text-muted);
    margin: 20px 0;
    line-height: 1.5;
}

.sim-tap-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sim-tap-btn:hover {
    background: var(--neon-blue);
    color: var(--bg-dark);
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

/* Success Checkmark Anim */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 20px auto;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--neon-green);
}

.success-checkmark .check-icon::after {
    content: '';
    position: absolute;
    background: var(--bg-dark);
    z-index: 1;
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: var(--neon-green);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    width: 25px;
    left: 14px;
    top: 45px;
    transform: rotate(45deg);
}

.success-checkmark .check-icon .icon-line.line-long {
    width: 47px;
    right: 8px;
    top: 38px;
    transform: rotate(-45deg);
}

.receipt-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    text-align: left;
    font-size: 12px;
    font-family: monospace;
    color: #a7f3d0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.receipt-close-btn {
    background: var(--neon-green);
    color: var(--bg-dark);
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.3);
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

/* Mobile & Tablet Adaptability */
@media (max-width: 768px) {
    .app-header {
        padding: 0 12px;
    }
    
    .preset-selector button {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .layout-toggle {
        display: none; /* Hide layout switcher on small screens */
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cart Notification Toast */
.cart-notification-toast {
    align-self: center;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--neon-green);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   Welcome Screen (Front Page)
   ========================================================================== */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #030f0a;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(236, 208, 111, 0.08) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
    overflow-y: auto;
    padding: 40px 20px;
}

/* Slide up and fade out transition */
.welcome-screen.fade-out {
    transform: translateY(-100%);
    opacity: 0;
}

.welcome-screen-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: welcomeContainerLoad 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.welcome-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.welcome-logo-icon {
    font-size: 20px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.welcome-logo-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.welcome-logo-text small {
    font-size: 10px;
    background: rgba(52, 211, 153, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--neon-blue);
    margin-left: 4px;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #34d399 75%, #ecd06f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 48px;
    max-width: 600px;
    line-height: 1.6;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-bottom: 56px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-active);
    box-shadow: 0 12px 30px rgba(52, 211, 153, 0.15);
    background: rgba(10, 35, 26, 0.85);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #34d399, transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--neon-blue);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background: var(--neon-purple);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.welcome-start-btn {
    background: linear-gradient(135deg, #10b981, #00ff87);
    color: #030f0a;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 255, 135, 0.4);
    position: relative;
    overflow: hidden;
}

.welcome-start-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
}

.welcome-start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 255, 135, 0.6);
}

.welcome-start-btn:hover::after {
    left: 125%;
    opacity: 1;
}

.welcome-start-btn i {
    font-size: 18px;
    transition: var(--transition-fast);
}

.welcome-start-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .welcome-title {
        font-size: 36px;
    }
    
    .welcome-screen {
        padding: 20px 16px;
    }
}

