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

        html, body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: #f5f5f5;
            padding: 0;
            margin: 0;
            height: 100%;
            overflow: hidden;
        }

        .phone-frame {
            width: 100%;
            max-width: 390px;
            height: 100vh;
            max-height: 100vh;
            background: white;
            border-radius: 0;
            border: none;
            box-shadow: none;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            margin: 0 auto;
            position: relative;
        }

        .phone-screen {
            flex: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            min-height: 0;
        }

        .screen {
            display: none;
            flex-direction: column;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            animation: fadeIn 0.3s ease-in;
            scroll-behavior: smooth;
        }

        .screen::-webkit-scrollbar {
            width: 4px;
        }

        .screen::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .screen::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 2px;
        }

        .screen.active {
            display: flex;
        }

        #home-screen.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Status Bar */
        .status-bar {
            height: 44px;
            background: #f8f8f8;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            font-size: 14px;
            flex-shrink: 0;
        }

        .status-bar-left, .status-bar-right {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        /* Header */
        .header {
            padding: 12px 16px;
            background: #fff;
            border-bottom: 1px solid #e0e0e0;
            flex-shrink: 0;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
            color: #000;
        }

        .header-subtitle {
            font-size: 13px;
            color: #666;
            margin-top: 2px;
        }

        /* Content */
        .content {
            flex: 1;
            padding: 12px 16px;
            overflow-y: visible;
        }

        /* Mission/Quest Screen */
        .mission-screen {
            padding: 12px 16px;
        }

        .mission-card {
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            border-radius: 16px;
            padding: 20px;
            color: white;
            margin-bottom: 16px;
            box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
        }

        .mission-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .mission-description {
            font-size: 14px;
            opacity: 0.95;
            margin-bottom: 16px;
            line-height: 1.4;
        }

        .mission-timer {
            font-size: 32px;
            font-weight: 700;
            margin: 12px 0;
            font-family: 'Courier New', monospace;
        }

        .mission-progress {
            margin-top: 16px;
        }

        .progress-label {
            font-size: 12px;
            margin-bottom: 8px;
            opacity: 0.9;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: white;
            transition: width 0.3s ease;
        }

        .progress-percent {
            text-align: center;
            font-size: 14px;
            font-weight: 600;
            margin-top: 8px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 16px;
        }

        .stat-box {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            padding: 12px;
            text-align: center;
        }

        .stat-label {
            font-size: 11px;
            opacity: 0.85;
            margin-bottom: 4px;
        }

        .stat-value {
            font-size: 18px;
            font-weight: 700;
        }

        /* Products */
        .product-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            padding: 12px 0;
        }

        .product-card {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .product-card:active {
            transform: scale(0.95);
            background: #f9f9f9;
        }

        .product-emoji {
            font-size: 36px;
            margin-bottom: 8px;
        }

        .product-name {
            font-size: 12px;
            font-weight: 500;
            color: #000;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .product-price {
            font-size: 16px;
            font-weight: 700;
            color: #FF6B00;
            margin-bottom: 8px;
        }

        .product-old-price {
            font-size: 11px;
            color: #999;
            text-decoration: line-through;
            margin-right: 4px;
        }

        .product-discount {
            display: inline-block;
            background: #FF6B00;
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
        }

        .add-btn {
            background: #FF6B00;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            margin-top: 8px;
            transition: background 0.2s;
        }

        .add-btn:active {
            background: #e55a00;
        }

        .add-btn.added {
            background: #34c759;
        }

        /* Categories Grid */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            padding: 16px 0;
        }

        .category-card {
            background: white;
            border: none;
            border-radius: 12px;
            padding: 12px 4px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
        }

        .category-card:active {
            transform: scale(0.95);
        }

        .category-circle {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: #FFF5ED;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            box-shadow: 0 2px 8px rgba(255, 107, 0, 0.08);
        }

        .category-emoji {
            font-size: 32px;
        }

        .category-name {
            font-size: 12px;
            font-weight: 500;
            color: #000;
            line-height: 1.3;
        }

        .category-count {
            font-size: 11px;
            color: #999;
            margin-top: 2px;
        }

        /* Cart */
        .cart-items {
            padding: 12px 0;
        }

        .cart-item {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 12px;
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .cart-item-emoji {
            font-size: 32px;
        }

        .cart-item-info {
            flex: 1;
        }

        .cart-item-name {
            font-size: 13px;
            font-weight: 600;
            color: #000;
        }

        .cart-item-price {
            font-size: 13px;
            color: #FF6B00;
            font-weight: 600;
            margin-top: 2px;
        }

        .cart-item-qty {
            display: flex;
            align-items: center;
            gap: 6px;
            background: #f0f0f0;
            border-radius: 6px;
            padding: 4px 8px;
        }

        .qty-btn {
            background: none;
            border: none;
            font-size: 14px;
            cursor: pointer;
            color: #FF6B00;
            font-weight: 600;
            width: 20px;
            height: 20px;
        }

        .qty-value {
            min-width: 20px;
            text-align: center;
            font-size: 12px;
            font-weight: 600;
        }

        .remove-btn {
            background: #ff3b30;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 11px;
            cursor: pointer;
        }

        .cart-summary {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 12px;
            margin-top: 12px;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            margin-bottom: 8px;
        }

        .summary-row:last-child {
            margin-bottom: 0;
            padding-top: 8px;
            border-top: 1px solid #e0e0e0;
            font-weight: 700;
            font-size: 16px;
            color: #FF6B00;
        }

        .checkout-btn {
            background: #FF6B00;
            color: white;
            border: none;
            border-radius: 12px;
            padding: 14px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            width: 100%;
            margin-top: 12px;
            transition: background 0.2s;
        }

        .checkout-btn:active {
            background: #e55a00;
        }

        .checkout-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        /* Profile */
        .profile-section {
            background: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            border: 1px solid #e0e0e0;
        }

        .profile-header-card {
            padding: 12px 16px;
        }

        .profile-top-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .profile-avatar {
            font-size: 48px;
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-info {
            flex: 1;
        }

        .profile-name {
            font-size: 20px;
            font-weight: 700;
            color: #000;
            margin-bottom: 2px;
        }

        .profile-subtitle {
            font-size: 13px;
            color: #666;
        }

        .profile-status {
            font-size: 13px;
            color: #FF6B00;
            font-weight: 600;
        }

        /* Profile Top Bar (address + header) */
        .profile-top-bar {
            background: white;
            padding: 8px 16px 12px;
        }

        .profile-store-address {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #333;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #f0f0f0;
        }

        .store-icon {
            font-size: 16px;
        }

        .store-text {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .store-chevron {
            color: #ccc;
            font-size: 16px;
        }

        .profile-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

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

        .profile-avatar-img {
            font-size: 40px;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-user-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .profile-header-actions {
            display: flex;
            gap: 12px;
        }

        .profile-action-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #333;
            cursor: pointer;
        }

        /* Profile Loyalty Card */
        .profile-loyalty-card {
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            border-radius: 16px;
            padding: 16px;
            color: white;
            margin: 0 16px 16px;
        }

        .loyalty-card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 4px;
        }

        .loyalty-card-labels {
            display: flex;
            gap: 24px;
        }

        .loyalty-card-label {
            font-size: 11px;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .loyalty-card-coins {
            display: flex;
            align-items: center;
            gap: 4px;
            background: white;
            border-radius: 16px;
            padding: 4px 10px;
            color: #333;
            font-size: 14px;
            font-weight: 700;
        }

        .loyalty-card-values {
            display: flex;
            gap: 24px;
            margin-bottom: 12px;
        }

        .loyalty-card-value {
            font-size: 28px;
            font-weight: 800;
        }

        .loyalty-barcode-block {
            background: white;
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 8px;
        }

        .barcode-lines-large {
            height: 56px;
            width: 100%;
            background: repeating-linear-gradient(90deg, #000 0px, #000 2px, transparent 2px, transparent 4px);
        }

        .loyalty-date {
            font-size: 11px;
            opacity: 0.85;
            margin-bottom: 8px;
        }

        .loyalty-hint-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            opacity: 0.95;
        }

        .hint-arrow {
            font-size: 16px;
            margin-left: 4px;
        }

        /* Profile Quick Actions */
        .profile-quick-actions {
            display: flex;
            justify-content: space-around;
            padding: 0 16px 16px;
            background: white;
            margin: 0 16px 16px;
            border-radius: 12px;
            padding: 16px;
            border: 1px solid #f0f0f0;
        }

        .profile-quick-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .profile-quick-circle {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            background: #FFF5ED;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
        }

        .profile-quick-label {
            font-size: 12px;
            color: #333;
            font-weight: 500;
        }

        /* Profile Sections List */
        .profile-sections-list {
            margin: 0 16px 16px;
            background: white;
            border-radius: 12px;
            border: 1px solid #f0f0f0;
            overflow: hidden;
        }

        .profile-section-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid #f5f5f5;
            cursor: pointer;
        }

        .profile-section-card:last-child {
            border-bottom: none;
        }

        .profile-section-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            flex-shrink: 0;
        }

        .profile-section-text {
            flex: 1;
        }

        .profile-section-title {
            font-size: 15px;
            font-weight: 600;
            color: #000;
            margin-bottom: 2px;
        }

        .profile-section-desc {
            font-size: 12px;
            color: #999;
        }

        .profile-section-arrow {
            font-size: 18px;
            color: #ccc;
        }

        .profile-field {
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid #e0e0e0;
        }

        .profile-field:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .profile-label {
            font-size: 12px;
            color: #666;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .profile-value {
            font-size: 14px;
            color: #000;
            font-weight: 500;
        }

        .points-display {
            display: flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            color: white;
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            justify-content: center;
        }

        .points-number {
            font-size: 24px;
            font-weight: 700;
        }

        .points-label {
            font-size: 12px;
            opacity: 0.9;
        }

        /* Bottom Navigation */
        .nav-bar {
            height: 60px;
            background: white;
            border-top: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-shrink: 0;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            flex: 1;
            height: 100%;
            color: #999;
            transition: color 0.2s;
            position: relative;
        }

        .nav-item.active {
            color: #FF6B00;
        }

        .nav-icon {
            width: 24px;
            height: 24px;
        }

        .nav-label {
            font-size: 10px;
            color: currentColor;
            font-weight: 500;
        }

        .cart-badge {
            position: absolute;
            top: 4px;
            right: 2px;
            background: #FF3B30;
            color: white;
            border-radius: 10px;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 700;
        }

        .floating-cart-btn {
            position: absolute;
            bottom: 72px;
            right: 12px;
            width: auto;
            min-width: 110px;
            height: 44px;
            border-radius: 22px;
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            z-index: 150;
            box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
            transition: transform 0.2s ease;
            padding: 0 16px;
            white-space: nowrap;
        }

        .floating-cart-btn:active {
            transform: scale(0.95);
        }

        .floating-cart-btn .cart-badge {
            position: static;
            width: 20px;
            height: 20px;
            font-size: 11px;
            background: #FF3B30;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .floating-cart-label {
            font-size: 14px;
            font-weight: 700;
        }

        .cart-icon {
            width: 20px;
            height: 20px;
        }

        .floating-cart-btn.hidden {
            display: none;
        }

        /* Success Modal */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            padding: 24px;
            max-width: 300px;
            text-align: center;
            animation: slideUp 0.3s ease;
        }

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

        .modal-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .modal-emoji {
            font-size: 64px;
            margin-bottom: 16px;
            animation: bounce 0.6s ease;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .modal-text {
            font-size: 14px;
            color: #666;
            margin-bottom: 16px;
            line-height: 1.5;
        }

        .modal-stats {
            background: #f8f8f8;
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 16px;
            font-size: 13px;
        }

        .modal-stat-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .modal-stat-row:last-child {
            margin-bottom: 0;
        }

        .modal-btn {
            background: #FF6B00;
            color: white;
            border: none;
            border-radius: 12px;
            padding: 12px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            width: 100%;
        }

        /* Confetti */
        @keyframes confetti-fall {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(600px) rotate(360deg);
                opacity: 0;
            }
        }

        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            pointer-events: none;
            animation: confetti-fall 2s ease-out forwards;
        }

        .banner {
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            color: white;
            padding: 16px;
            border-radius: 12px;
            margin-bottom: 12px;
            text-align: center;
        }

        .banner-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .banner-cta {
            background: white;
            color: #FF6B00;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }

        /* Utilities */
        .empty-state {
            text-align: center;
            padding: 48px 16px;
            color: #999;
        }

        .empty-emoji {
            font-size: 48px;
            margin-bottom: 12px;
        }

        .empty-text {
            font-size: 14px;
            margin-bottom: 4px;
        }

        .empty-subtext {
            font-size: 12px;
            color: #ccc;
        }

        .list-item {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .list-item:active {
            background: #f9f9f9;
        }

        .list-item-emoji {
            font-size: 24px;
            margin-right: 12px;
        }

        .list-item-title {
            font-size: 14px;
            font-weight: 600;
            color: #000;
            margin-bottom: 2px;
        }

        .list-item-desc {
            font-size: 12px;
            color: #666;
        }

        .promotion-promo {
            background: white;
            border: 2px solid #FF6B00;
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 12px;
            cursor: pointer;
        }

        .promo-emoji {
            font-size: 32px;
            margin-bottom: 8px;
        }

        .promo-title {
            font-size: 14px;
            font-weight: 700;
            color: #000;
            margin-bottom: 4px;
        }

        .promo-desc {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .promo-badge {
            display: inline-block;
            background: #FF6B00;
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
        }

        .section-title {
            font-size: 16px;
            font-weight: 700;
            color: #000;
            margin: 16px 0 12px 0;
        }

        .scroll-list {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 4px 0;
            margin-bottom: 12px;
        }

        .scroll-list::-webkit-scrollbar {
            height: 4px;
        }

        .scroll-list::-webkit-scrollbar-thumb {
            background: #ddd;
            border-radius: 2px;
        }

        .scroll-item {
            flex-shrink: 0;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 500;
            color: #666;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .scroll-item:active {
            background: #FF6B00;
            color: white;
            border-color: #FF6B00;
        }

        .loading {
            text-align: center;
            padding: 20px;
            color: #999;
        }

        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #FF6B00;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Home Screen */
        .home-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 16px;
        }

        .home-item {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .home-item:active {
            background: #f9f9f9;
            transform: scale(0.98);
        }

        .home-emoji {
            font-size: 32px;
        }

        .home-text {
            font-size: 13px;
            font-weight: 600;
            color: #000;
        }

        .points-card {
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            border-radius: 12px;
            padding: 20px;
            color: white;
            text-align: center;
            margin-bottom: 16px;
        }

        .points-emoji {
            font-size: 40px;
            margin-bottom: 8px;
        }

        .points-text {
            font-size: 13px;
            opacity: 0.9;
            margin-bottom: 8px;
        }



        /* Home Screen - Dixy Style */
        .loyalty-header {
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            color: white;
            padding: 16px 16px 20px;
            position: relative;
            overflow: hidden;
            border-radius: 0 0 20px 20px;
            margin-bottom: 8px;
        }

        .loyalty-top-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }

        .loyalty-left {
            display: flex;
            gap: 24px;
        }

        .loyalty-label-col {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .loyalty-label {
            font-size: 11px;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .loyalty-value-bold {
            font-size: 28px;
            font-weight: 800;
            line-height: 1.1;
        }

        .loyalty-coins {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            background: rgba(255,255,255,0.2);
            border-radius: 16px;
            padding: 4px 10px;
        }

        .loyalty-coin-icon {
            font-size: 20px;
        }

        .loyalty-coin-count {
            font-size: 16px;
            font-weight: 700;
        }

        .loyalty-barcode-full {
            background: white;
            border-radius: 12px;
            margin: 8px 0 6px;
            padding: 10px 12px;
            cursor: pointer;
        }

        .loyalty-barcode-full .barcode-lines {
            height: 50px;
            width: 100%;
            background: repeating-linear-gradient(90deg, #000 0px, #000 2px, transparent 2px, transparent 4px);
        }

        .loyalty-barcode-full .barcode-number {
            font-size: 11px;
            color: #333;
            font-family: 'Courier New', monospace;
            letter-spacing: 1px;
            text-align: center;
            margin-top: 4px;
        }

        .loyalty-date-small {
            font-size: 10px;
            opacity: 0.85;
            text-align: center;
            margin-bottom: 6px;
        }

        .loyalty-cashback-hint-full {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            opacity: 0.95;
            padding: 8px 12px;
            background: rgba(255,255,255,0.15);
            border-radius: 8px;
        }

        .hint-arrow {
            font-size: 16px;
            margin-left: 4px;
        }

        /* Quick Actions Grid (2x4) */
        .quick-actions-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            padding: 16px;
            background: white;
        }

        .quick-action-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        .quick-action-circle {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            background: #FFF5ED;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            font-size: 24px;
        }

        .quick-action-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: #FF6B00;
            color: white;
            border-radius: 50%;
            min-width: 18px;
            height: 18px;
            font-size: 10px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
        }

        .quick-action-label {
            font-size: 11px;
            text-align: center;
            color: #333;
            line-height: 1.3;
        }

        .store-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            font-size: 13px;
            color: #666;
        }

        .store-left {
            display: flex;
            align-items: center;
            gap: 4px;
            font-weight: 600;
            color: #333;
        }

        .store-address {
            flex: 1;
            font-size: 12px;
            color: #999;
        }

        .store-distance {
            margin-left: 4px;
        }

        .store-action {
            font-size: 16px;
            color: #999;
        }

        .search-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 16px 12px;
            padding: 10px 12px;
            background: #f5f5f5;
            border-radius: 10px;
            font-size: 14px;
            color: #999;
            cursor: pointer;
        }

        .search-icon {
            font-size: 16px;
        }

        .search-text {
            flex: 1;
        }

        .search-scan {
            font-size: 18px;
        }

        .main-banner {
            background: #f0f0f0;
            margin: 0 16px 12px;
            border-radius: 16px;
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            min-height: 140px;
        }

        .main-banner-text {
            flex: 1;
            z-index: 2;
        }

        .main-banner-title {
            font-size: 16px;
            font-weight: 800;
            color: #FF6B00;
            text-transform: uppercase;
            margin-bottom: 12px;
            line-height: 1.2;
        }

        .main-banner-btn {
            background: #4A148C;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 20px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }

        .main-banner-fruit {
            font-size: 64px;
            position: absolute;
            left: -10px;
            bottom: -10px;
            opacity: 0.3;
            z-index: 1;
        }

        .main-banner-veg {
            font-size: 64px;
            position: absolute;
            right: -10px;
            bottom: -10px;
            opacity: 0.3;
            z-index: 1;
        }

        .mini-game-banner {
            margin: 0 16px 16px;
            background: linear-gradient(135deg, #7B1FA2, #4A148C);
            border-radius: 16px;
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
            cursor: pointer;
        }

        .mini-game-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .mini-game-emoji {
            font-size: 40px;
        }

        .mini-game-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .mini-game-title {
            font-size: 18px;
            font-weight: 800;
        }

        .mini-game-sub {
            font-size: 12px;
            opacity: 0.9;
        }

        .mini-game-arrow {
            font-size: 24px;
            font-weight: 700;
        }

        /* Home Screen Extra Sections */
        .home-section-title {
            font-size: 18px;
            font-weight: 700;
            color: #000;
            margin: 20px 16px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .section-arrow {
            font-size: 20px;
            color: #333;
        }

        /* Popular Brands Grid */
        .brands-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 12px;
            padding: 0 16px 16px;
        }

        .brand-card {
            aspect-ratio: 1 / 1;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 11px;
            text-align: center;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .brand-card:active {
            transform: scale(0.95);
        }

        .brand-card-name {
            line-height: 1.3;
        }

        /* Stories Scroll */
        .stories-scroll {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 0 16px 16px;
            scrollbar-width: none;
        }

        .stories-scroll::-webkit-scrollbar {
            display: none;
        }

        .story-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            cursor: pointer;
        }

        .story-img {
            width: 72px;
            height: 96px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            position: relative;
        }

        .story-label {
            font-size: 11px;
            font-weight: 500;
            color: #333;
        }

        /* Big Promo Carousel */
        .promo-carousel {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 0 16px 16px;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
        }

        .promo-carousel::-webkit-scrollbar {
            display: none;
        }

        .promo-carousel-card {
            flex: 0 0 85%;
            min-width: 280px;
            border-radius: 16px;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
            scroll-snap-align: center;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .promo-carousel-card:active {
            transform: scale(0.97);
        }

        .promo-carousel-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .promo-carousel-title {
            font-size: 20px;
            font-weight: 800;
        }

        .promo-carousel-desc {
            font-size: 13px;
            opacity: 0.9;
        }

        .promo-carousel-emoji {
            font-size: 48px;
        }

        /* QR & Barcode in Profile */
        .loyalty-card-section {
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            border-radius: 16px;
            padding: 20px;
            color: white;
            text-align: center;
        }

        .loyalty-card-header {
            margin-bottom: 16px;
        }

        .loyalty-card-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .loyalty-card-hint {
            font-size: 12px;
            opacity: 0.9;
            line-height: 1.4;
        }

        .barcode-full-profile {
            background: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
        }

        .barcode-lines-profile {
            height: 60px;
            width: 100%;
            background: repeating-linear-gradient(90deg, #000 0px, #000 2px, transparent 2px, transparent 4px);
            margin-bottom: 8px;
        }

        .barcode-number-profile {
            font-size: 13px;
            color: #333;
            font-family: 'Courier New', monospace;
            letter-spacing: 2px;
            font-weight: 600;
        }

        .barcode-refresh-btn {
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.4);
            color: white;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
        }

        .profile-list-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
        }

        .profile-list-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .profile-list-icon {
            font-size: 24px;
            width: 32px;
            text-align: center;
        }

        .profile-list-content {
            flex: 1;
        }

        .profile-list-title {
            font-size: 15px;
            font-weight: 600;
            color: #000;
            margin-bottom: 2px;
        }

        .profile-list-desc {
            font-size: 12px;
            color: #999;
        }

        .profile-list-arrow {
            font-size: 18px;
            color: #ccc;
        }

        .catalog-preview-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
            padding: 0 16px 24px;
        }

        .catalog-preview-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .catalog-preview-img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #f9f9f9;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
        }

        .catalog-preview-name {
            font-size: 12px;
            font-weight: 500;
            color: #000;
            text-align: center;
            line-height: 1.3;
        }

        /* Mission Drawer */
        .mission-drawer-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 200;
        }

        .mission-drawer-overlay.show {
            display: block;
        }

        .mission-drawer {
            position: fixed;
            top: 0;
            right: 0;
            width: 85%;
            max-width: 320px;
            height: 100%;
            background: white;
            box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
            z-index: 210;
            transform: translateX(100%);
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .mission-drawer.open {
            transform: translateX(0);
        }

        .mission-drawer-header {
            padding: 16px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #f8f8f8;
            flex-shrink: 0;
        }

        .mission-drawer-title {
            font-size: 16px;
            font-weight: 700;
            color: #000;
        }

        .mission-drawer-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #999;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .mission-drawer-close:active {
            background: #f0f0f0;
        }

        .mission-drawer-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
        }

        .mission-drawer-trigger {
            position: fixed;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            color: white;
            border: none;
            border-radius: 12px 0 0 12px;
            padding: 12px 8px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            z-index: 150;
            box-shadow: -2px 0 8px rgba(255, 107, 0, 0.3);
            writing-mode: vertical-rl;
            text-orientation: mixed;
            letter-spacing: 1px;
            transition: all 0.2s ease;
        }

        .mission-drawer-trigger:active {
            padding-right: 12px;
        }

        .mission-drawer-trigger .trigger-badge {
            display: inline-block;
            background: white;
            color: #FF6B00;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 10px;
            line-height: 18px;
            text-align: center;
            margin-bottom: 4px;
            font-weight: 800;
        }

        .mission-floating-btn {
            position: fixed;
            bottom: 80px;
            right: 12px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            color: white;
            border: none;
            box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
            font-size: 22px;
            cursor: pointer;
            z-index: 150;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease;
        }

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

        .mission-floating-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background: #FF3B30;
            color: white;
            border-radius: 50%;
            min-width: 18px;
            height: 18px;
            font-size: 10px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
        }

        .drawer-mission-card {
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            border-radius: 16px;
            padding: 20px;
            color: white;
            margin-bottom: 16px;
        }

        .drawer-mission-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .drawer-mission-desc {
            font-size: 13px;
            opacity: 0.95;
            margin-bottom: 16px;
            line-height: 1.4;
        }

        .drawer-mission-timer {
            font-size: 28px;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            margin: 12px 0;
            text-align: center;
        }

        .drawer-progress-bar {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            overflow: hidden;
        }

        .drawer-progress-fill {
            height: 100%;
            background: white;
            transition: width 0.3s ease;
        }

        .drawer-progress-label {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            margin-top: 8px;
            opacity: 0.9;
        }

        .drawer-stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 16px;
        }

        .drawer-stat-box {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            padding: 10px;
            text-align: center;
        }

        .drawer-stat-label {
            font-size: 10px;
            opacity: 0.85;
            margin-bottom: 4px;
        }

        .drawer-stat-value {
            font-size: 16px;
            font-weight: 700;
        }

        .drawer-actions {
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .drawer-btn {
            background: #FF6B00;
            color: white;
            border: none;
            border-radius: 12px;
            padding: 14px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            text-align: center;
            transition: background 0.2s;
        }

        .drawer-btn.secondary {
            background: #f0f0f0;
            color: #333;
        }

        .drawer-btn:active {
            opacity: 0.9;
        }

        .drawer-hint {
            font-size: 12px;
            color: #999;
            text-align: center;
            margin-top: 12px;
            line-height: 1.4;
        }

        /* === NEW UI: Conversion-focused Home === */
        .home-top-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: #fff;
        }

        .home-search {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
            background: #f5f5f5;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 14px;
            color: #999;
            cursor: pointer;
        }

        .search-icon-svg {
            width: 18px;
            height: 18px;
            color: #999;
            flex-shrink: 0;
        }

        .home-search-text {
            flex: 1;
        }

        .home-promo-badge {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #FFF5ED;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .hero-banner {
            margin: 0 16px 16px;
            background: linear-gradient(135deg, #FF6B00 0%, #FF8A38 100%);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            min-height: 120px;
        }

        .hero-banner-content {
            z-index: 2;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(255,255,255,0.25);
            border-radius: 6px;
            padding: 4px 10px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }

        .hero-title {
            font-size: 22px;
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 4px;
        }

        .hero-subtitle {
            font-size: 14px;
            opacity: 0.95;
        }

        .hero-emoji {
            font-size: 72px;
            position: absolute;
            right: -8px;
            bottom: -12px;
            opacity: 0.25;
            z-index: 1;
        }

        .categories-scroll {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding: 0 16px 16px;
            scrollbar-width: none;
        }

        .categories-scroll::-webkit-scrollbar { display: none; }

        .cat-chip {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            cursor: pointer;
        }

        .cat-chip-emoji {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: #f8f8f8;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            transition: transform 0.2s ease;
        }

        .cat-chip:active .cat-chip-emoji {
            transform: scale(0.92);
        }

        .cat-chip-name {
            font-size: 11px;
            color: #333;
            font-weight: 500;
            text-align: center;
            white-space: nowrap;
        }

        .products-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px 12px;
        }

        .products-section-title {
            font-size: 18px;
            font-weight: 700;
            color: #000;
            margin: 0;
        }

        .products-section-all {
            font-size: 14px;
            color: #FF6B00;
            font-weight: 600;
            cursor: pointer;
        }

        .products-grid-home {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            padding: 0 16px 20px;
        }

        .product-card-home {
            background: white;
            border: 1px solid #f0f0f0;
            border-radius: 14px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: relative;
        }

        .product-home-img {
            font-size: 48px;
            text-align: center;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-home-name {
            font-size: 13px;
            font-weight: 600;
            color: #000;
            line-height: 1.3;
            height: 36px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .product-home-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: auto;
        }

        .product-home-price {
            font-size: 16px;
            font-weight: 800;
            color: #FF6B00;
        }

        .product-home-old-price {
            font-size: 11px;
            color: #ccc;
            text-decoration: line-through;
            margin-right: 4px;
        }

        .product-home-add {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #FF6B00;
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.15s ease, background 0.15s ease;
            flex-shrink: 0;
        }

        .product-home-add:active {
            transform: scale(0.9);
            background: #e55a00;
        }

        .product-home-discount {
            position: absolute;
            top: 8px;
            left: 8px;
            background: #FF3B30;
            color: white;
            font-size: 10px;
            font-weight: 700;
            padding: 3px 7px;
            border-radius: 6px;
        }

        /* Toast notification */
        .toast {
            position: fixed;
            bottom: 90px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #333;
            color: white;
            padding: 10px 18px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            z-index: 500;
            opacity: 0;
            transition: all 0.3s ease;
            pointer-events: none;
            white-space: nowrap;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* A/B Testing UI Variants */
        .home-ui-a, .home-ui-b {
            display: none;
        }
        body.ui-a .home-ui-a {
            display: block;
        }
        body.ui-b .home-ui-b {
            display: block;
        }
