        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --accent: #f59e0b;
            --accent-light: #fef3c7;
            --success: #10b981;
            --success-light: #d1fae5;
            --danger: #ef4444;
            --danger-light: #fee2e2;
            --warning: #f59e0b;
            --warning-light: #fef3c7;
            --info: #3b82f6;
            --info-light: #dbeafe;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;
            --radius-sm: 8px;
            --radius: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --radius-2xl: 24px;
            --radius-full: 9999px;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
            --transition-fast: 150ms ease;
            --transition: 200ms ease;
            --transition-slow: 300ms ease;
            --safe-bottom: env(safe-area-inset-bottom, 0px);
            --safe-top: env(safe-area-inset-top, 0px);
            --header-height: 64px;
            --nav-height: 72px;
            /* Dynamic viewport height - will be set by JavaScript for iOS */
            --app-height: 100vh;
            --app-height: 100dvh;
        }
        
        html {
            scroll-behavior: smooth;
            height: 100%;
        }
        
        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--gray-50);
            color: var(--gray-800);
            min-height: 100vh;
            min-height: -webkit-fill-available;
            padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }


        @media (min-width: 768px) {
            html {
                background: var(--gray-200);
            }

            body {
                width: 100%;
                max-width: 520px;
                margin: 0 auto;
                box-shadow: 0 20px 60px rgba(0,0,0,0.12);
            }
        }
        
        /* Header */
        .header {
            background-color: var(--primary);
            background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
            color: inherit;
            padding: 0 16px;
            height: var(--header-height);
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            align-items: center;
        }
        
        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            max-width: 520px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }
        
        .store-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .store-logo {
            width: 44px;
            height: 44px;
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(10px);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 2px solid rgba(255,255,255,0.2);
        }
        
        .store-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .store-details {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        
        .store-name {
            font-size: 18px;
            font-weight: 700;
            letter-spacing: -0.3px;
        }
        
        .store-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 500;
            opacity: 0.9;
            background: rgba(255,255,255,0.15);
            padding: 2px 8px;
            border-radius: var(--radius-full);
            width: fit-content;
        }
        
        /* Search Bar */
        .search-container {
            padding: 16px 16px 12px;
            background: white;
            position: sticky;
            top: var(--header-height);
            z-index: 99;
            box-shadow: var(--shadow-sm);
        }
        
        .search-bar {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--gray-100);
            padding: 14px 16px;
            border-radius: var(--radius-lg);
            max-width: 520px;
            margin: 0 auto;
            border: 2px solid transparent;
            transition: all var(--transition);
        }
        
        .search-bar:focus-within {
            background: white;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-light);
        }
        
        .search-bar input {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 15px;
            font-weight: 500;
            color: var(--gray-800);
            outline: none;
        }
        
        .search-bar input::placeholder {
            color: var(--gray-400);
            font-weight: 400;
        }
        
        .hello-card {
            display: flex;
            align-items: center;
            gap: 16px;
            background: white;
            padding: 12px 20px;
            margin: 16px 16px 0 16px;
            position: relative;
            border-radius: 24px 24px 0 0;
        }

        .hello-avatar {
            width: 100px;
            height: 100px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: visible;
            margin-bottom: -32px;
            z-index: 10;
            position: relative;
        }

        .hello-avatar img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .hello-text {
            flex: 1;
            min-width: 0;
        }

        .hello-title {
            font-size: 14px;
            color: var(--gray-600);
            font-weight: 500;
            margin-bottom: 2px;
        }

        .hello-name {
            font-size: 20px;
            font-weight: 700;
            color: var(--gray-900);
            letter-spacing: -0.3px;
            line-height: 1.2;
        }

        .hello-points {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px 12px;
            background: #FEF3C7;
            border-radius: 999px;
            font-size: 15px;
            font-weight: 700;
            color: #92400E;
            flex-shrink: 0;
            border: 1px solid #FDE68A;
        }

        .hello-points i {
            color: #F59E0B;
            width: 18px;
            height: 18px;
        }

        /* Hide hello-card and order-type-strip on non-Home tabs */
        .view-section:not(#view-home) ~ .hello-card,
        .view-section:not(#view-home) ~ .order-type-strip {
            display: none !important;
        }

        /* Alternative approach: hide when home view is not active */
        body:not(.home-view-active) .hello-card,
        body:not(.home-view-active) .order-type-strip {
            display: none !important;
        }

        /* Order Type Selector */
        .order-type-strip {
            background: #FCD34D;
            padding: 16px;
            margin: 0 16px;
            border-radius: 0 0 24px 24px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            gap: 12px;
            max-width: 100%;
        }

        .order-type-options {
            display: flex;
            justify-content: space-around;
            align-items: center;
            gap: 12px;
            width: 100%;
        }

        .order-type-btn {
            border: none;
            border-radius: 50%;
            width: 90px;
            height: 90px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            text-align: center;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 0;
        }

        .order-type-btn.active {
            transform: translateY(-2px);
            box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.7), 0 10px 25px rgba(0, 0, 0, 0.16);
            animation: order-type-glow 1.5s ease-in-out infinite;
            position: relative;
        }
        
        .order-type-btn.active::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0) 70%);
            animation: inner-pulse 1.5s ease-in-out infinite;
        }

        .order-type-btn.active .order-type-label {
            color: white;
        }

        .order-type-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            filter: grayscale(0.8);
        }

        .order-type-strip .order-type-btn:not(.disabled) {
            background: #FFFFFF !important;
        }
        
        .order-type-strip .order-type-btn {
            background: #FFFFFF !important;
        }
        
        .order-type-strip .order-type-label {
            color: #374151 !important;
        }

        @keyframes order-type-glow {
            0% {
                box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.7), 0 10px 25px rgba(0, 0, 0, 0.16);
            }
            50% {
                box-shadow: 0 0 0 16px rgba(244, 114, 182, 0), 0 14px 30px rgba(0, 0, 0, 0.20);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(244, 114, 182, 0), 0 10px 25px rgba(0, 0, 0, 0.16);
            }
        }
        
        @keyframes inner-pulse {
            0% {
                opacity: 0.6;
                transform: scale(0.8);
            }
            50% {
                opacity: 1;
                transform: scale(1.1);
            }
            100% {
                opacity: 0.6;
                transform: scale(0.8);
            }
        }

        .order-type-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .order-type-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .order-type-label {
            font-size: 11px;
            font-weight: 700;
            color: var(--gray-900);
            line-height: 1;
            margin: 0;
        }

        .order-type-sub {
            font-size: 9px;
            color: var(--gray-600);
            font-weight: 500;
            line-height: 1;
            margin: 0;
        }

        /* Delivery Checkout Step */
        .delivery-step {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .delivery-step-intro {
            font-size: 14px;
            color: var(--gray-600);
            margin-bottom: 4px;
        }

        .delivery-address-section {
            border: 1px solid var(--gray-100);
            border-radius: var(--radius-lg);
            padding: 16px;
            background: #fff;
        }

        .delivery-section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .delivery-section-title {
            font-weight: 700;
            color: var(--gray-900);
            font-size: 15px;
        }

        .delivery-section-subtitle {
            font-size: 12px;
            color: var(--gray-500);
        }

        .delivery-add-new {
            border: none;
            background: rgba(79, 70, 229, 0.12);
            color: var(--primary);
            padding: 6px 12px;
            border-radius: var(--radius);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
        }

        .delivery-add-new:hover {
            background: rgba(79, 70, 229, 0.2);
        }

        .delivery-form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
        }

        .delivery-form-grid .form-group-full {
            grid-column: 1 / -1;
        }

        .delivery-manual-hint {
            font-size: 13px;
            color: var(--gray-500);
            background: var(--gray-50);
            border: 1px dashed var(--gray-200);
            border-radius: var(--radius);
            padding: 12px;
            margin-top: 12px;
        }

        .delivery-saved-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        #checkout-delivery-saved .delivery-saved-list {
            max-height: 260px;
            overflow-y: auto;
            padding-right: 4px;
        }

        #checkout-delivery-saved .delivery-saved-list::-webkit-scrollbar {
            width: 4px;
        }

        #checkout-delivery-saved .delivery-saved-list::-webkit-scrollbar-thumb {
            background: var(--gray-200);
            border-radius: 999px;
        }

        .delivery-address-card {
            border: 1px solid var(--gray-200);
            border-radius: var(--radius);
            padding: 12px;
            display: flex;
            gap: 12px;
            cursor: pointer;
            transition: border-color var(--transition), background var(--transition);
        }

        .delivery-address-card.selected {
            border-color: var(--primary);
            background: rgba(79, 70, 229, 0.05);
        }

        .delivery-card-radio {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid var(--gray-300);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #fff;
            background: transparent;
            flex-shrink: 0;
        }

        .delivery-address-card.selected .delivery-card-radio {
            border-color: var(--primary);
            background: var(--primary);
        }

        .delivery-card-content {
            flex: 1;
        }

        .delivery-card-label {
            font-weight: 700;
            color: var(--gray-900);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }

        .delivery-card-recipient {
            font-size: 13px;
            color: var(--gray-700);
            margin: 4px 0;
        }

        .delivery-card-address {
            font-size: 12px;
            color: var(--gray-600);
        }

        .delivery-card-notes {
            font-size: 12px;
            color: var(--gray-500);
            margin-top: 4px;
        }

        .delivery-step-actions {
            display: flex;
            justify-content: space-between;
            gap: 12px;
        }

        #checkout-delivery-error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #b91c1c;
            padding: 10px 12px;
            border-radius: 8px;
            font-size: 13px;
        }

        /* Categories */
        .categories {
            padding: 12px 16px;
            background: white;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            border-bottom: 1px solid var(--gray-100);
        }
        
        .categories::-webkit-scrollbar {
            display: none;
        }
        
        .category-pills {
            display: inline-flex;
            gap: 10px;
            max-width: 520px;
            margin: 0 auto;
        }
        
        .category-pill {
            padding: 10px 18px;
            background: white;
            border-radius: var(--radius-full);
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-600);
            cursor: pointer;
            transition: all var(--transition);
            border: 2px solid var(--gray-200);
            white-space: nowrap;
        }
        
        .category-pill:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .category-pill.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }
        
        /* View Sections */
        .view-section {
            display: none;
        }
        
        .view-section.active {
            display: block;
        }
        
        /* Products Grid */
        .products-container {
            padding: 20px 16px;
            max-width: 552px;
            margin: 0 auto;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }
        
        .product-card {
            background: white;
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all var(--transition);
            display: flex;
            flex-direction: column;
            height: 100%;
            cursor: pointer;
            position: relative;
        }
        
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }
        
        .product-card:active {
            transform: scale(0.98);
        }
        
        .product-image-wrapper {
            position: relative;
            aspect-ratio: 1;
            overflow: hidden;
            background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
        }
        
        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        
        .product-card:hover .product-image {
            transform: scale(1.05);
        }
        
        .product-image-placeholder {
            width: 100%;
            aspect-ratio: 1;
            background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-400);
        }
        
        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 4px 10px;
            border-radius: var(--radius-full);
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            z-index: 2;
        }
        
        .product-badge.bestseller {
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: white;
        }
        
        .product-badge.new {
            background: linear-gradient(135deg, #34d399, #10b981);
            color: white;
        }
        
        .product-favorite {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 32px;
            height: 32px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow);
            border: none;
            cursor: pointer;
            color: var(--gray-400);
            transition: all var(--transition);
            z-index: 2;
        }
        
        .product-favorite:hover {
            color: var(--danger);
            transform: scale(1.1);
        }
        
        .product-info {
            padding: 14px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .product-category-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        
        .product-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 8px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
        }
        
        .product-price {
            font-size: 16px;
            font-weight: 800;
            color: var(--gray-900);
        }
        
        .product-action {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }
        
        .btn-add {
            width: 36px;
            height: 36px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition);
            flex-shrink: 0;
        }
        
        .btn-add:hover {
            background: var(--primary-dark);
            transform: scale(1.05);
        }
        
        .btn-add:active {
            transform: scale(0.95);
        }
        
        .btn-order {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 18px;
            border-radius: var(--radius);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all var(--transition);
        }
        
        .btn-order:hover {
            background: var(--primary-dark);
            transform: scale(1.02);
        }
        
        /* Bottom Navigation - iOS-optimized */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: #27422e;
            border-top: none;
            border-radius: 24px 24px 0 0;
            padding: 8px 16px;
            padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
            z-index: 99999;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
            --vv-offset: 0px;
            /* Critical iOS Safari fixes */
            position: -webkit-sticky;
            position: sticky;
            position: fixed;
            transform: translate3d(0, var(--vv-offset), 0);
            -webkit-transform: translate3d(0, var(--vv-offset), 0);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            perspective: 1000px;
            -webkit-perspective: 1000px;
        }
        
        /* Fill white space below bottom nav on iOS */
        .bottom-nav::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: 100px;
            background: #27422e;
            pointer-events: none;
        }

        @media (min-width: 768px) and (min-height: 600px) {
            .bottom-nav {
                left: 50%;
                transform: translate3d(-50%, var(--vv-offset), 0);
                width: 100%;
                max-width: 520px;
                border-left: 1px solid var(--gray-100);
                border-right: 1px solid var(--gray-100);
            }
        }
        
        .nav-items {
            display: flex;
            justify-content: space-between;
            max-width: 520px;
            margin: 0 auto;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            flex: 1;
            padding: 8px 0;
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            background: none;
            position: relative;
            transition: all var(--transition);
        }
        
        .nav-item.active {
            color: white;
        }
        
        .nav-item.active::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 24px;
            height: 3px;
            background: white;
            border-radius: 0 0 3px 3px;
        }
        
        .nav-icon {
            width: 24px;
            height: 24px;
            position: relative;
        }
        
        .nav-badge {
            position: absolute;
            top: -4px;
            right: 8px;
            min-width: 18px;
            height: 18px;
            background: var(--danger);
            color: white;
            font-size: 10px;
            font-weight: 700;
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
            border: 2px solid white;
        }
        
        /* Cart Drawer */
        .cart-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
            z-index: 300;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-slow);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .cart-overlay.open {
            opacity: 1;
            visibility: visible;
            overflow-y: hidden;
        }
        
        .cart-drawer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
            max-height: 90vh;
            z-index: 301;
            transform: translateY(100%);
            transition: transform var(--transition-slow);
            display: flex;
            flex-direction: column;
        }
        
        .cart-overlay.open .cart-drawer {
            transform: translateY(0);
        }
        
        .cart-handle {
            width: 40px;
            height: 4px;
            background: var(--gray-300);
            border-radius: 2px;
            margin: 12px auto;
        }
        
        .cart-header {
            padding: 0 20px 16px;
            border-bottom: 1px solid var(--gray-100);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .cart-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--gray-900);
        }
        
        .cart-close {
            width: 36px;
            height: 36px;
            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);
        }
        
        .cart-close:hover {
            background: var(--gray-200);
        }
        
        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px;
        }
        
        .cart-item {
            display: flex;
            gap: 14px;
            padding: 14px 0;
            border-bottom: 1px solid var(--gray-100);
        }
        
        .cart-item:last-child {
            border-bottom: none;
        }
        
        .cart-item-image {
            width: 72px;
            height: 72px;
            border-radius: var(--radius);
            object-fit: cover;
            background: var(--gray-100);
            flex-shrink: 0;
        }
        
        .cart-item-info {
            flex: 1;
            min-width: 0;
        }
        
        .cart-item-name {
            font-size: 15px;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .cart-item-price {
            font-size: 15px;
            font-weight: 700;
            color: var(--primary);
        }
        
        .cart-item-addons {
            font-size: 12px;
            color: var(--gray-500);
            margin-bottom: 8px;
        }

        .cart-item-note {
            margin-top: 8px;
        }

        .cart-note-button {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            font-size: 12px;
            font-weight: 600;
            border-radius: 999px;
            border: 1px dashed rgba(99, 102, 241, 0.4);
            color: var(--primary);
            background: rgba(99, 102, 241, 0.08);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .cart-note-button:hover {
            border-color: var(--primary);
            background: rgba(99, 102, 241, 0.15);
        }

        .cart-note-summary {
            font-size: 12px;
            color: var(--gray-600);
            background: rgba(99, 102, 241, 0.08);
            border-radius: var(--radius);
            padding: 8px 10px;
            line-height: 1.4;
        }

        .cart-note-summary strong {
            font-weight: 600;
            color: var(--primary);
        }

        .cart-note-hint {
            font-size: 12px;
            color: var(--gray-400);
            margin-top: 4px;
        }

        .note-modal-summary {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-800);
            background: var(--gray-100);
            border-radius: var(--radius);
            padding: 10px 14px;
        }

        .note-modal-list {
            margin: 16px 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-height: 260px;
            overflow-y: auto;
        }

        .note-modal-entry {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .note-modal-entry-label {
            font-size: 14px;
            font-weight: 700;
            color: var(--gray-700);
            min-width: 20px;
            flex-shrink: 0;
        }

        .note-modal-entry .form-input {
            flex: 1;
        }

        .note-entry {
            width: 100%;
            border: 1px solid var(--gray-200);
            border-radius: var(--radius);
            padding: 10px 12px;
            font-size: 13px;
            resize: none;
            min-height: 60px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .note-entry:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
        }

        .note-modal-actions {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .quick-notes {
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: flex-start;
            font-size: 12px;
            color: var(--gray-500);
        }

        .quick-notes-label {
            font-weight: 600;
            color: var(--gray-600);
        }

        .quick-notes-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .quick-notes button {
            border: 1px solid var(--gray-200);
            background: white;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .quick-notes button:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .note-modal-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        .note-modal-empty {
            font-size: 13px;
            color: var(--gray-400);
            text-align: center;
            padding: 20px;
        }
        
        .cart-item-qty {
            display: flex;
            align-items: center;
            gap: 12px;
            align-self: center;
        }
        
        .qty-btn {
            width: 32px;
            height: 32px;
            border-radius: var(--radius);
            border: 1px solid var(--gray-200);
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--gray-600);
            transition: all var(--transition);
        }
        
        .qty-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .qty-btn.minus:hover {
            border-color: var(--danger);
            color: var(--danger);
        }
        
        .qty-value {
            font-size: 16px;
            font-weight: 700;
            min-width: 24px;
            text-align: center;
        }
        
        .cart-footer {
            padding: 20px;
            border-top: 1px solid var(--gray-100);
            background: white;
        }
        
        .cart-summary {
            margin-bottom: 16px;
        }
        
        .cart-summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
            color: var(--gray-600);
        }
        
        .cart-summary-row.total {
            font-size: 18px;
            font-weight: 700;
            color: var(--gray-900);
            padding-top: 12px;
            border-top: 1px dashed var(--gray-200);
            margin-top: 12px;
        }
        
        .cart-total {
            display: flex;
            justify-content: space-between;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--gray-900);
        }

        .voucher-tile {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 14px;
            border-radius: 12px;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            cursor: pointer;
            transition: all var(--transition);
            margin-bottom: 16px;
        }

        .voucher-tile:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(251, 146, 60, 0.18);
        }

        .voucher-tile-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: #ffedd5;
            border: 1px solid #fed7aa;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9a3412;
            flex-shrink: 0;
        }

        .voucher-tile-content {
            flex: 1;
            min-width: 0;
        }

        .voucher-tile-title {
            font-size: 14px;
            font-weight: 800;
            color: #9a3412;
            letter-spacing: -0.2px;
        }

        .voucher-tile-subtitle {
            font-size: 12px;
            color: #b45309;
            margin-top: 2px;
            white-space: normal;
            overflow: visible;
            text-overflow: unset;
            line-height: 1.2;
        }

        .voucher-tile-subtitle .voucher-subline {
            display: block;
        }

        .voucher-tile-subtitle .voucher-subline.muted {
            opacity: 0.92;
        }

        .voucher-tile-right {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #b45309;
            flex-shrink: 0;
        }

        .voucher-tile-badge {
            font-size: 11px;
            font-weight: 800;
            color: #15803d;
            background: #dcfce7;
            border: 1px solid #bbf7d0;
            padding: 6px 8px;
            border-radius: 999px;
        }

        .voucher-modal-input {
            width: 100%;
        }

        .voucher-modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 14px;
        }

        .voucher-modal-actions .btn-primary,
        .voucher-modal-actions .btn-secondary {
            flex: 1;
        }

        .voucher-modal-message {
            margin-top: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
            display: none;
        }

        .voucher-modal-message.success {
            background: rgba(16, 185, 129, 0.14);
            color: #065f46;
            border: 1px solid rgba(16, 185, 129, 0.22);
        }

        .voucher-modal-message.error {
            background: rgba(239, 68, 68, 0.10);
            color: #991b1b;
            border: 1px solid rgba(239, 68, 68, 0.18);
        }
        
        .btn-checkout {
            width: 100%;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border: none;
            padding: 16px;
            border-radius: var(--radius-lg);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn-checkout:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        .btn-checkout:disabled {
            background: var(--gray-300);
            cursor: not-allowed;
        }
        
        .cart-empty {
            text-align: center;
            padding: 60px 20px;
        }
        
        .cart-empty-icon {
            width: 80px;
            height: 80px;
            background: var(--gray-100);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: var(--gray-400);
        }
        
        .cart-empty-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 8px;
        }
        
        .cart-empty-text {
            font-size: 14px;
            color: var(--gray-500);
        }
        
        /* History View - Redesigned */
        .history-container {
            padding: 0;
            max-width: 552px;
            margin: 0 auto;
            min-height: calc(100vh - 160px);
        }
        
        .history-hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 24px 16px 60px;
            color: white;
            position: relative;
        }
        
        .history-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }
        
        .history-hero-content {
            max-width: 520px;
            margin: 0 auto;
            position: relative;
        }
        
        .history-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 24px 20px 60px;
            position: relative;
        }
        
        .history-header-title {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 4px;
        }
        
        .history-header-subtitle {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .history-stats-row {
            display: flex;
            gap: 12px;
            margin: -40px 16px 20px;
            position: relative;
            z-index: 10;
        }
        
        .history-stat-card {
            flex: 1;
            background: white;
            border-radius: 16px;
            padding: 16px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .history-stat-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            color: white;
        }
        
        .history-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--gray-800);
        }
        
        .history-stat-label {
            font-size: 11px;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .history-content {
            padding: 0 16px 20px;
        }
        
        .history-phone-form {
            background: white;
            padding: 32px 24px;
            border-radius: 20px;
            margin: -40px 16px 20px;
            position: relative;
            z-index: 10;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            text-align: center;
        }
        
        .history-phone-icon {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            color: var(--gray-400);
        }
        
        .history-phone-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 8px;
        }
        
        .history-phone-text {
            font-size: 14px;
            color: var(--gray-500);
            margin-bottom: 20px;
        }
        
        .history-welcome {
            background: white;
            padding: 20px;
            border-radius: 16px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        
        .welcome-content {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        .welcome-avatar {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            font-weight: 600;
            flex-shrink: 0;
        }
        
        .welcome-info {
            flex: 1;
            text-align: left;
        }
        
        .welcome-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 2px;
        }
        
        .welcome-message {
            font-size: 13px;
            color: var(--gray-500);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .welcome-action {
            flex-shrink: 0;
        }
        
        .history-section-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .history-filter-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            overflow-x: auto;
            padding-bottom: 4px;
        }
        
        .history-filter-tab {
            padding: 8px 16px;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-600);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }
        
        .history-filter-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }
        
        .history-empty {
            text-align: center;
            padding: 60px 20px;
            color: var(--gray-500);
        }
        
        .history-empty-icon {
            width: 80px;
            height: 80px;
            background: var(--gray-100);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            color: var(--gray-400);
        }
        
        .history-empty-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-700);
            margin-bottom: 4px;
        }
        
        .history-empty-text {
            font-size: 14px;
        }
        
        .btn-secondary {
            background: var(--gray-200);
            color: var(--gray-700);
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-secondary:hover {
            background: var(--gray-300);
        }
        
        .form-label {
            display: block;
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--gray-700);
        }
        
        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            font-size: 16px;
            margin-bottom: 16px;
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .btn-primary {
            width: 100%;
            background: var(--primary);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
        }
        
        .order-card {
            background: white;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid var(--gray-100);
        }
        
        .order-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        .order-card:active {
            transform: translateY(0);
        }
        
        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        
        .order-number {
            font-size: 15px;
            font-weight: 600;
            color: var(--gray-800);
        }
        
        .order-date {
            font-size: 12px;
            color: var(--gray-500);
            margin-top: 2px;
        }
        
        .order-status {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        
        .order-status.pending {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            color: #92400e;
        }
        
        .order-status.preparing {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            color: #1e40af;
        }
        
        .order-status.completed {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            color: #065f46;
        }
        
        .order-total {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
        }
        
        .btn-reorder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-100);
            color: var(--gray-700);
            border: none;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-reorder:hover {
            background: var(--primary);
            color: white;
        }
        
        /* Modal */
        .hidden {
            display: none !important;
        }
        
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
            z-index: 650;
            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-y: auto;
            transform: scale(0.9) translateY(20px);
            transition: transform var(--transition-slow);
        }
        
        .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: 36px;
            height: 36px;
            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: 36px;
            height: 36px;
            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;
        }
        
        /* 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);
        }
        
        .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;
        }
        
        .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);
        }
        
        .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);
        }
        
        /* 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(-120px);
            background: white;
            color: var(--gray-800);
            padding: 16px 20px;
            border-radius: var(--radius-lg);
            font-size: 14px;
            font-weight: 500;
            z-index: 1000;
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            pointer-events: none;
            box-shadow: var(--shadow-xl);
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 280px;
            max-width: 400px;
        }
        
        .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;
        }
        
        /* Profile Sidebar */
        .profile-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 500;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            overflow: hidden;
            -webkit-overflow-scrolling: touch;
        }
        
        .profile-overlay.open {
            opacity: 1;
            visibility: visible;
        }
        
        .profile-sidebar {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            width: 320px;
            max-width: 85vw;
            background: transparent;
            border-radius: 24px 0 0 24px;
            z-index: 501;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .profile-sidebar {
                right: max(0px, calc((100% - 520px) / 2));
            }
        }
        
        .profile-overlay.open .profile-sidebar {
            transform: translateX(0);
        }
        
        .profile-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border-radius: 24px 0 0 0;
            padding: 24px 20px;
            position: relative;
        }
        
        .profile-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: rgba(255,255,255,0.2);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            transition: background 0.2s;
        }
        
        .profile-close:hover {
            background: rgba(255,255,255,0.3);
        }
        
        .profile-avatar {
            width: 72px;
            height: 72px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            font-size: 28px;
            font-weight: 600;
        }
        
        .profile-name {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .profile-phone {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .profile-member-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255,255,255,0.2);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            margin-top: 12px;
        }
        
        .profile-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            background: white;
        }
        
        .profile-section {
            margin-bottom: 24px;
        }
        
        .profile-section-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }
        
        .profile-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        
        .profile-stat-card {
            background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
            border-radius: 12px;
            padding: 16px;
            text-align: center;
        }
        
        .profile-stat-card.highlight {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        }
        
        .profile-stat-icon {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            color: var(--primary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .profile-stat-card.highlight .profile-stat-icon {
            color: #d97706;
        }
        
        .profile-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--gray-800);
        }
        
        .profile-stat-label {
            font-size: 12px;
            color: var(--gray-500);
            margin-top: 2px;
        }
        
        .profile-menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: var(--gray-50);
            border-radius: 12px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            width: 100%;
            text-align: left;
        }
        
        .profile-menu-item:hover {
            background: var(--gray-100);
        }
        
        .profile-menu-icon {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-600);
        }
        
        .profile-menu-text {
            flex: 1;
        }
        
        .profile-menu-title {
            font-weight: 500;
            color: var(--gray-800);
            font-size: 14px;
        }
        
        .profile-menu-subtitle {
            font-size: 12px;
            color: var(--gray-500);
        }
        
        .profile-menu-arrow {
            color: var(--gray-400);
        }
        
        .profile-edit-form {
            display: none;
        }
        
        .profile-edit-form.active {
            display: block;
        }
        
        .profile-form-group {
            margin-bottom: 16px;
        }
        
        .profile-form-label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-700);
            margin-bottom: 6px;
        }
        
        .profile-form-input {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid var(--gray-300);
            border-radius: 10px;
            font-size: 15px;
            transition: border-color 0.2s;
        }
        
        .profile-form-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .profile-form-input:disabled {
            background: var(--gray-100);
            color: var(--gray-500);
        }
        
        .profile-form-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }
        
        .profile-btn {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        
        .profile-btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .profile-btn-primary:hover {
            background: var(--primary-dark);
        }
        
        .profile-btn-secondary {
            background: var(--gray-200);
            color: var(--gray-700);
        }
        
        .profile-btn-secondary:hover {
            background: var(--gray-300);
        }
        
        .profile-login-prompt {
            text-align: center;
            padding: 40px 20px;
        }
        
        .profile-login-icon {
            width: 80px;
            height: 80px;
            background: var(--gray-100);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: var(--gray-400);
        }
        
        .profile-login-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 8px;
        }
        
        .profile-login-text {
            font-size: 14px;
            color: var(--gray-500);
            margin-bottom: 24px;
        }
        
        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .header-btn {
            background: none;
            border: none;
            color: inherit;
            padding: 8px;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.2s;
        }
        
        .header-btn:hover {
            background: rgba(255,255,255,0.1);
        }
        
        .profile-rewards-banner {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            border-radius: 16px;
            padding: 20px;
            color: white;
            box-shadow: 0 15px 40px rgba(79, 70, 229, 0.25);
            position: relative;
            overflow: hidden;
        }
        
        .profile-rewards-banner::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top right, rgba(255,255,255,0.3), transparent 60%);
            pointer-events: none;
        }
        
        .profile-rewards-title {
            font-size: 14px;
            font-weight: 600;
            opacity: 0.9;
            margin-bottom: 6px;
        }
        
        .profile-rewards-points {
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 6px;
        }
        
        .profile-rewards-text {
            font-size: 12px;
            opacity: 0.85;
        }

        .rewards-ticket-section {
            margin: 28px 12px 0;
            padding: 20px;
            border-radius: var(--radius-lg);
            background: white;
            box-shadow: var(--shadow-sm);
        }

        .rewards-ticket-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .rewards-ticket-header h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--gray-800);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .rewards-ticket-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .rewards-ticket-card {
            border: 1px solid var(--gray-100);
            border-radius: var(--radius);
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            background: #fafafa;
        }

        .rewards-ticket-card.active {
            border-color: #fcd34d;
            background: #fffbeb;
        }

        .rewards-ticket-top {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: flex-start;
        }

        .rewards-ticket-title {
            font-weight: 600;
            color: var(--gray-900);
        }

        .rewards-ticket-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            font-size: 12px;
            color: var(--gray-500);
        }

        .ticket-status-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 600;
            border-radius: 999px;
            padding: 4px 10px;
        }

        .ticket-status-issued {
            background: #fef3c7;
            color: #b45309;
        }

        .ticket-status-fulfilled {
            background: #dcfce7;
            color: #166534;
        }

        .ticket-status-expired {
            background: #fee2e2;
            color: #991b1b;
        }

        .ticket-status-cancelled {
            background: #e5e7eb;
            color: #374151;
        }

        .ticket-status-proof {
            background: #e0f2fe;
            color: #0369a1;
        }

        .rewards-ticket-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .ticket-action-button {
            flex: 1;
            min-width: 120px;
            border: none;
            border-radius: var(--radius);
            padding: 10px 14px;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: all var(--transition);
        }

        .ticket-action-button.primary {
            background: var(--accent);
            color: white;
        }

        .ticket-action-button.secondary {
            background: var(--gray-100);
            color: var(--gray-700);
        }

        .ticket-action-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .ticket-empty-state {
            text-align: center;
            padding: 32px 12px;
            color: var(--gray-500);
        }

        .ticket-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15,23,42,0.7);
            display: none;
            align-items: flex-start;
            justify-content: center;
            z-index: 500;
            padding: 32px 16px;
            overflow-y: auto;
        }

        .ticket-modal-overlay.open {
            display: flex;
        }

        .ticket-modal {
            width: 100%;
            max-width: 520px;
            background: #ffffff;
            border-radius: 32px;
            box-shadow: 0 30px 80px rgba(15,23,42,0.35);
            overflow: hidden;
            animation: fadeUp 0.3s ease;
            position: relative;
            margin: auto;
            max-height: calc(100vh - 64px);
            display: flex;
            flex-direction: column;
        }

        .ticket-modal-header {
            background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
            padding: 28px 32px 40px;
            color: white;
            flex-shrink: 0;
        }

        .ticket-modal-close {
            position: absolute;
            top: 18px;
            right: 18px;
            border: none;
            background: rgba(255,255,255,0.15);
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .ticket-modal-body {
            padding: 24px 32px 32px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            overflow-y: auto;
        }

        .ticket-qr-wrapper {
            background: #f8fafc;
            border-radius: 24px;
            padding: 24px;
            text-align: center;
        }

        .ticket-qr-wrapper img {
            width: 220px;
            height: 220px;
            object-fit: contain;
            margin: 0 auto;
        }

        .ticket-countdown {
            font-size: 13px;
            font-weight: 600;
            color: #f97316;
            margin-top: 12px;
        }

        .ticket-stats-row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .ticket-stat {
            flex: 1;
            min-width: 120px;
            background: linear-gradient(135deg, #eef2ff, #fce7f3);
            border-radius: 18px;
            padding: 14px 16px;
            border: 1px solid rgba(99, 102, 241, 0.15);
            box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
        }

        .ticket-stat-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #6b7280;
        }

        .ticket-stat-value {
            font-weight: 700;
            font-size: 16px;
            color: #111827;
            margin-top: 4px;
        }

        .ticket-detail-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .ticket-detail {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px;
            border-radius: 18px;
            border: 1px solid var(--gray-100);
            background: #fff;
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
        }

        .ticket-detail.compact {
            padding: 12px 16px;
        }

        .ticket-detail-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--gray-400);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .ticket-detail-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-800);
            margin-top: 2px;
        }

        .ticket-detail-icon {
            width: 34px;
            height: 34px;
            border-radius: 12px;
            background: var(--gray-100);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-500);
        }

        .ticket-instructions {
            background: linear-gradient(135deg, #ecfccb, #d9f99d);
            border-radius: 18px;
            padding: 18px 20px;
            font-size: 14px;
            font-weight: 600;
            color: #3f6212;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .ticket-modal-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .ticket-modal-actions button {
            flex: 1;
            min-width: 140px;
            border: none;
            border-radius: 999px;
            padding: 12px 18px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .ticket-modal-actions .primary {
            background: linear-gradient(120deg, #4f46e5, #7c3aed);
            color: white;
        }

        .ticket-modal-actions .outline {
            background: transparent;
            color: var(--gray-700);
            border: 1px solid var(--gray-200);
        }

        .otp-modal-section {
            margin-bottom: 18px;
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid var(--gray-100);
            background: var(--gray-50);
        }

        .otp-item-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--gray-800);
        }

        .otp-item-points {
            font-size: 13px;
            color: var(--gray-500);
        }

        .otp-status {
            font-size: 13px;
            color: var(--gray-500);
            margin-top: 8px;
            min-height: 18px;
        }

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

        @media (max-width: 640px) {
            .ticket-modal {
                border-radius: 24px;
                max-height: calc(100vh - 32px);
            }

            .ticket-modal-header,
            .ticket-modal-body {
                padding-left: 20px;
                padding-right: 20px;
            }

            .ticket-modal-body {
                padding-bottom: 24px;
            }
        }

        /* Order Detail Full Page */
        .order-detail-page {
            min-height: 100vh;
            background: #f9fafb;
            padding-bottom: calc(var(--nav-height) + 200px);
        }

        .order-detail-header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: white;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .order-detail-back {
            background: none;
            border: none;
            padding: 8px;
            cursor: pointer;
            color: var(--gray-700);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: background 0.2s;
        }

        .order-detail-back:hover {
            background: var(--gray-100);
        }

        .order-detail-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--gray-900);
            margin: 0;
        }

        .order-detail-content {
            padding: 0;
        }

        .order-detail-card {
            background: white;
            margin: 16px 20px;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .order-detail-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .order-detail-status-badge.pending {
            background: #fef3c7;
            color: #92400e;
        }

        .order-detail-status-badge.preparing {
            background: #dbeafe;
            color: #1e40af;
        }

        .order-detail-status-badge.completed {
            background: #d1fae5;
            color: #065f46;
        }

        .order-detail-status-badge.cancelled {
            background: #fee2e2;
            color: #991b1b;
        }

        .order-detail-order-number {
            font-size: 24px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 4px;
        }

        .order-detail-order-type {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-700);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .order-detail-divider {
            height: 1px;
            background: var(--gray-200);
            margin: 16px 0;
        }

        .order-detail-info-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .order-detail-info-label {
            font-size: 14px;
            color: var(--gray-500);
        }

        .order-detail-info-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-900);
            text-align: right;
        }

        .order-detail-section-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 12px;
        }

        .order-detail-item {
            display: flex;
            gap: 12px;
            padding: 16px 0;
            border-bottom: 1px solid var(--gray-100);
        }

        .order-detail-item:last-child {
            border-bottom: none;
        }

        .order-detail-item-qty {
            font-size: 14px;
            font-weight: 700;
            color: var(--gray-900);
            min-width: 24px;
        }

        .order-detail-item-info {
            flex: 1;
        }

        .order-detail-item-name {
            font-size: 15px;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 4px;
        }

        .order-detail-item-addons {
            font-size: 13px;
            color: var(--gray-500);
            margin-top: 4px;
        }

        .order-detail-item-addon {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 2px;
        }

        .order-detail-item-note {
            font-size: 13px;
            color: #92400e;
            background: #fef3c7;
            padding: 8px 12px;
            border-radius: 8px;
            margin-top: 8px;
            line-height: 1.4;
        }

        .order-detail-item-price {
            font-size: 15px;
            font-weight: 700;
            color: var(--gray-900);
            text-align: right;
        }

        .order-detail-summary {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 2px solid var(--gray-200);
        }

        .order-detail-summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .order-detail-summary-label {
            font-size: 14px;
            color: var(--gray-600);
        }

        .order-detail-summary-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-900);
        }

        .order-detail-summary-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--gray-200);
        }

        .order-detail-summary-total-label {
            font-size: 18px;
            font-weight: 700;
            color: var(--gray-900);
        }

        .order-detail-summary-total-value {
            font-size: 20px;
            font-weight: 700;
            color: #dc2626;
        }

        .order-detail-actions {
            position: fixed;
            bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px);
            left: 0;
            right: 0;
            background: transparent;
            padding: 0 20px;
            z-index: 250;
            pointer-events: none;
        }
        
        .order-detail-actions-inner {
            background: white;
            padding: 14px;
            padding-bottom: calc(14px + var(--safe-bottom));
            border-radius: 24px;
            box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
            display: flex;
            justify-content: center;
            pointer-events: auto;
        }
        
        @media (min-width: 768px) {
            .order-detail-actions {
                display: flex;
                justify-content: center;
            }
            .order-detail-actions-inner {
                width: 520px;
                border: 1px solid rgba(0,0,0,0.04);
            }
        }

        .order-detail-btn {
            width: 100%;
            padding: 16px 20px;
            border-radius: 999px;
            font-size: 16px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border: none;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .order-detail-btn-primary {
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: #7c2d12;
            box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
        }

        .order-detail-btn-primary:active {
            transform: translateY(1px);
            box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
        }

        .order-detail-payment-info {
            background: #f0fdf4;
            border: 1px solid #86efac;
            border-radius: 16px;
            padding: 16px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .order-detail-payment-icon {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .order-detail-payment-main {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .order-detail-payment-text {
            flex: 1;
            min-width: 0;
        }

        .order-detail-payment-label {
            font-size: 15px;
            color: #14532d;
            font-weight: 700;
        }

        .order-detail-payment-subtext {
            font-size: 13px;
            color: #166534;
            margin-top: 2px;
            font-weight: 500;
        }

        .order-detail-payment-badge {
            background: #dcfce7;
            border: 1px dashed #86efac;
            color: #166534;
            font-weight: 800;
            text-transform: uppercase;
            padding: 6px 18px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
        }

        /* Receipt Image Template */
        #receipt-image-stage {
            position: fixed;
            top: -9999px;
            left: -9999px;
            width: 400px;
            pointer-events: none;
            opacity: 0;
        }

        .receipt-image-wrapper {
            position: relative;
            width: 360px;
            min-height: 600px;
            padding: 32px 20px 40px;
            font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
            background: linear-gradient(180deg, #fff8f6 0%, #ffeae2 100%);
            border-radius: 32px;
            overflow: hidden;
        }

        .receipt-image-bg .receipt-heart {
            position: absolute;
            border-radius: 50%;
            opacity: 0.25;
        }
        .receipt-image-bg .heart-1 {
            width: 160px;
            height: 160px;
            background: #ffde59;
            bottom: -40px;
            left: -20px;
        }
        .receipt-image-bg .heart-2 {
            width: 140px;
            height: 140px;
            background: #ff914d;
            bottom: -60px;
            right: 10px;
        }
        .receipt-image-bg .heart-3 {
            width: 120px;
            height: 120px;
            background: #ffde59;
            top: -30px;
            right: -30px;
        }

        .receipt-card {
            position: relative;
            background: white;
            border-radius: 28px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.08);
            padding: 24px;
        }

        .receipt-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }

        .receipt-brand {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .receipt-brand-logo {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: #dc2626;
            color: white;
            font-size: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
        }

        .receipt-brand-name {
            font-size: 15px;
            font-weight: 700;
            color: #111827;
        }

        .receipt-brand-meta {
            font-size: 12px;
            color: #6b7280;
            margin-top: 2px;
        }

        .receipt-brand-date {
            font-size: 12px;
            color: #9ca3af;
            margin-top: 2px;
        }

        .receipt-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 16px;
            position: relative;
        }

        .receipt-order-number {
            display: inline-flex;
            flex-direction: column;
            align-items: flex-end;
            font-weight: 800;
            color: #0f5132;
            font-size: 16px;
            border-left: 2px solid #0f766e;
            border-bottom: 2px solid #0f766e;
            border-bottom-left-radius: 22px;
            border-top-right-radius: 30px;
            padding: 14px 28px 14px 34px;
            position: relative;
            min-width: 92px;
            text-transform: uppercase;
            background: transparent;
            margin-top: -24px;
            margin-right: -24px;
            border-right: none;
            border-top: none;
        }

        .receipt-order-number span {
            line-height: 1.1;
        }

        .receipt-order-info {
            background: #f9fafb;
            border-radius: 16px;
            padding: 16px;
            font-size: 13px;
            color: #4b5563;
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 16px;
        }

        .receipt-items {
            border: 1px solid #f3f4f6;
            border-radius: 16px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 16px;
        }

        .receipt-item {
            display: flex;
            justify-content: space-between;
            gap: 12px;
        }

        .receipt-item-name {
            font-weight: 700;
            color: #111827;
            font-size: 14px;
        }

        .receipt-item-meta {
            font-size: 12px;
            color: #6b7280;
        }

        .receipt-item-addons {
            font-size: 12px;
            color: #9ca3af;
            margin-top: 4px;
        }

        .receipt-item-price {
            font-weight: 700;
            color: #111827;
            font-size: 14px;
        }

        .receipt-summary {
            background: #fff7ed;
            border-radius: 16px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .receipt-summary-row {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: #92400e;
            align-items: center;
            gap: 12px;
        }

        .receipt-summary-total {
            display: flex;
            justify-content: space-between;
            font-size: 18px;
            font-weight: 800;
            color: #b91c1c;
            margin-top: 6px;
        }

        .receipt-summary-label {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .receipt-summary-label-sub {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #d97706;
        }

        .receipt-summary-value {
            white-space: nowrap;
        }

        .receipt-footer {
            margin-top: 20px;
            display: flex;
            justify-content: center;
        }

        .receipt-footer-logo {
            width: 64px;
            height: 64px;
            border-radius: 20px;
            background: white;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .receipt-footer-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .receipt-footer-logo-initial {
            font-size: 26px;
            font-weight: 800;
            color: #b91c1c;
        }
        
        /* Reward Category Tabs */
        .reward-category-tab.active {
            color: var(--primary) !important;
            border-bottom-color: var(--primary) !important;
        }
        
        .reward-category-tab:hover {
            color: var(--primary) !important;
        }
