        /* Modal */
        .hidden {
            display: none !important;
        }
        
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
            /* Needs to sit above cart drawer */
            z-index: var(--z-modal);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-slow);
        }
        
        .modal-overlay.open {
            opacity: 1;
            visibility: visible;
        }
        
        .modal {
            background: white;
            border-radius: var(--radius-xl);
            width: 100%;
            max-width: 420px;
            max-height: 90vh;
            overflow: hidden;
            transform: scale(0.9) translateY(20px);
            z-index: var(--z-modal-top);
            transition: transform var(--transition-slow);
            display: flex;
            flex-direction: column;
        }
        
        .modal-overlay.open .modal {
            transform: scale(1) translateY(0);
        }
        
        .member-qr-spinner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            color: var(--gray-500);
            font-size: 13px;
        }
        
        .member-qr-spinner .spinner {
            width: 42px;
            height: 42px;
            border-radius: 999px;
            border: 4px solid var(--gray-200);
            border-top-color: var(--primary);
            animation: spin 0.8s linear infinite;
        }
        
        .member-qr-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }
        
        .profile-qr-button {
            position: absolute;
            top: 16px;
            right: 64px;
            width: 44px;
            height: 44px;
            border-radius: 999px;
            border: none;
            background: rgba(255,255,255,0.2);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        
        .profile-qr-button:hover {
            background: rgba(255,255,255,0.35);
        }
        
        .modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--gray-100);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--gray-900);
        }
        
        .modal-close {
            width: 44px;
            height: 44px;
            background: var(--gray-100);
            border: none;
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--gray-600);
            transition: all var(--transition);
        }
        
        .modal-close:hover {
            background: var(--gray-200);
        }
        
        .modal-body {
            padding: 24px;
            flex: 1;
            overflow-y: auto;
        }

        @media (max-width: 640px) {
            #address-modal.modal-overlay {
                padding: 0;
                align-items: stretch;
                justify-content: stretch;
            }

            #address-modal .modal {
                width: 100%;
                height: 100%;
                max-width: none;
                max-height: none;
                border-radius: 0;
                transform: none;
            }

            #address-modal .modal-body {
                padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 56px);
            }
        }
        
        /* QRIS Payment Modal */
        .qris-container {
            text-align: center;
            padding: 20px;
        }
        
        .qris-image {
            max-width: 250px;
            margin: 0 auto 20px;
        }
        
        .qris-loading {
            width: 250px;
            height: 250px;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-50);
            border-radius: 12px;
            border: 2px dashed var(--gray-200);
            position: relative;
        }

        .qris-lottie {
            width: 180px;
            height: 180px;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .qris-lottie.is-active {
            display: flex;
        }

        .qris-loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--gray-200);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        
        .qris-timer {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 8px;
        }
        
        .qris-status {
            color: var(--gray-500);
            font-size: 14px;
            margin-bottom: 16px;
        }
        
        .qris-download {
            margin-top: 16px;
        }
        
        .btn-download {
            background: var(--gray-100);
            color: var(--gray-700);
            border: 1px solid var(--gray-200);
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-download:hover {
            background: var(--gray-200);
            border-color: var(--gray-300);
        }
        
        .qris-timeout {
            margin-top: 16px;
        }
        
        .timeout-message {
            text-align: center;
            padding: 20px;
            background: var(--gray-50);
            border-radius: 12px;
            border: 1px solid var(--gray-200);
        }
        
        /* Addon Modal */
        .addon-category {
            margin-bottom: 20px;
        }
        
        .addon-category-title {
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--gray-700);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .required-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            font-size: 10px;
            font-weight: 600;
            background-color: #fee2e2;
            color: #991b1b;
            border-radius: 9999px;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }
        
        .addon-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .addon-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .addon-option:hover {
            border-color: var(--primary);
        }
        
        .addon-option.selected {
            border-color: var(--primary);
            background: rgba(79, 70, 229, 0.05);
        }
        
        .addon-radio {
            width: 20px;
            height: 20px;
            border: 2px solid var(--gray-300);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .addon-option.selected .addon-radio {
            border-color: var(--primary);
        }
        
        .addon-option.selected .addon-radio::after {
            content: '';
            width: 10px;
            height: 10px;
            background: var(--primary);
            border-radius: 50%;
        }
        
        .addon-name {
            flex: 1;
        }
        
        .addon-price {
            font-weight: 600;
            color: var(--primary);
        }

        /* Checklist checkbox style */
        .addon-checkbox {
            width: 22px;
            height: 22px;
            border: 2px solid var(--gray-300);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .addon-option.selected .addon-checkbox {
            border-color: var(--primary);
            background: var(--primary);
        }

        .addon-option.selected .addon-checkbox::after {
            content: '';
            width: 6px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
            margin-top: -2px;
        }

        .addon-option.selected .addon-name {
            font-weight: 600;
        }

        .addon-option-disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .addon-option-disabled .addon-checkbox {
            background: var(--gray-100);
        }

        /* Bubble Selector Styles */
        .addon-bubbles {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .addon-bubble {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            width: 72px;
            -webkit-tap-highlight-color: transparent;
        }

        .addon-bubble-circle {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            border: 2px solid var(--gray-200);
            background: var(--gray-50);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: all 0.2s;
        }

        .addon-bubble-circle img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .addon-bubble-initial {
            font-size: 18px;
            font-weight: 700;
            color: var(--gray-400);
        }

        .addon-bubble-label {
            font-size: 11px;
            text-align: center;
            color: var(--gray-600);
            line-height: 1.2;
            max-width: 72px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .addon-bubble:hover .addon-bubble-circle {
            border-color: var(--primary);
        }

        .addon-bubble.selected .addon-bubble-circle {
            border-color: var(--primary);
            border-width: 3px;
            box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
        }

        .addon-bubble.selected .addon-bubble-label {
            font-weight: 700;
            color: var(--primary);
        }

        .addon-bubble.addon-option-disabled {
            cursor: not-allowed;
        }

        .addon-bubble.addon-option-disabled .addon-bubble-circle {
            border-color: var(--gray-200);
            box-shadow: none;
        }
        
        /* Loading State */
        .loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }
        
        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--gray-200);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Toast */
        .toast {
            position: fixed;
            top: calc(var(--header-height) + 16px);
            left: 50%;
            transform: translateX(-50%) translateY(-20px);
            background: white;
            color: var(--gray-900);
            padding: 12px 16px;
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            opacity: 0;
            transition: transform var(--transition), opacity var(--transition);
            z-index: var(--z-toast);
            border: 1px solid rgba(0,0,0,0.05);
            min-width: 280px;
            max-width: 400px;
            pointer-events: none;
        }
        
        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
        
        .toast.error {
            background: white;
            border-left: 4px solid var(--danger);
            color: var(--gray-800);
        }
        
        .toast.success {
            background: white;
            border-left: 4px solid var(--success);
            color: var(--gray-800);
        }
        
        .toast.warning {
            background: white;
            border-left: 4px solid var(--warning);
            color: var(--gray-800);
        }
        
        .toast.info {
            background: white;
            border-left: 4px solid var(--info);
            color: var(--gray-800);
        }
        
        .toast-icon {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
        }
        
        .toast.success .toast-icon { color: var(--success); }
        .toast.error .toast-icon { color: var(--danger); }
        .toast.warning .toast-icon { color: var(--warning); }
        .toast.info .toast-icon { color: var(--info); }
        
        .toast-message {
            flex: 1;
            line-height: 1.4;
        }
        
        /* Banner Slideshow */
        .banner-container {
            position: relative;
            max-width: 552px;
            margin: 0 auto;
            padding: 20px 16px;
            overflow: hidden;
        }
        
        .banner-slideshow {
            position: relative;
            width: 100%;
            aspect-ratio: 2.2/1;
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            background: var(--gray-200);
        }
        
        .banner-slide {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.5s ease;
        }
        
        .banner-slide.active {
            opacity: 1;
        }
        
        .banner-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .banner-indicators {
            position: absolute;
            bottom: 20px;
            left: 16px;
            right: 16px;
            display: flex;
            gap: 6px;
            z-index: 10;
            justify-content: center;
        }
        
        .banner-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            border: none;
            cursor: pointer;
            transition: all var(--transition);
            padding: 0;
        }
        
        .banner-indicator.active {
            background: white;
            width: 24px;
            border-radius: 4px;
        }
        
        .banner-indicator:hover {
            background: rgba(255, 255, 255, 0.7);
        }
        
        /* Success Screen */
        .success-screen {
            text-align: center;
            padding: 60px 20px;
        }
        
        .success-icon {
            width: 80px;
            height: 80px;
            background: var(--success);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            color: white;
        }
        
        .success-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
        }
        
        .success-message {
            color: var(--gray-500);
            margin-bottom: 24px;
        }
        
        /* Customer PIN inputs */
        .member-pin-input {
            text-align: center;
            font-size: 20px;
            letter-spacing: 8px;
            font-weight: 700;
            padding: 14px;
        }

        .btn-link:focus {
            outline: none;
        }
