/**
 * Mi Doris Restaurant - PWA Stylesheet
 * Progressive Web App - Light Green Theme
 */
        :root {
            --primary: #10B981;
            --primary-dark: #059669;
            --primary-light: #34D399;
            --secondary: #3B82F6;
            --success: #10B981;
            --bg: #F0FDF9;
            --bg-gradient: linear-gradient(180deg, #D1FAE5 0%, #ECFDF5 50%, #F0FDF9 100%);
            --white: #FFFFFF;
            --text: #064E3B;
            --text-light: #047857;
            --text-muted: #10B981;
            --border: #6EE7B7;
            --shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
            --shadow-lg: 0 8px 30px rgba(16, 185, 129, 0.2);
            --radius: 20px;
            --radius-sm: 14px;
            --nav-height: 70px;
        }

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

        html, body {
            height: 100%;
            font-family: 'Poppins', sans-serif;
            background: #F0FDF4;
            background: var(--bg-gradient);
            color: var(--text);
            overflow: hidden;
        }

        /* Ensure no dark elements appear below content */
        html::after, body::after {
            display: none !important;
        }

        /* Cover safe area with light color */
        body::before {
            content: '';
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: env(safe-area-inset-bottom, 0);
            background: #F0FDF4;
            z-index: 999;
        }

        /* App Container */
        .app {
            display: flex;
            flex-direction: column;
            height: 100%;
            max-width: 480px;
            margin: 0 auto;
            background: var(--bg-gradient);
        }

        /* Header */
        .header {
            background: linear-gradient(135deg, #064E3B 0%, #047857 30%, #10B981 100%);
            padding: 16px 20px;
            padding-top: max(16px, env(safe-area-inset-top));
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
        }

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

        .header-logo {
            height: 40px;
        }

        .back-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            width: 48px;
            height: 48px;
            min-width: 48px;
            min-height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .back-btn:active {
            transform: scale(0.9);
            background: rgba(255,255,255,0.3);
        }

        .back-btn svg { color: white; }

        /* Header Greeting */
        .header-greeting {
            color: white;
        }
        .greeting-text {
            font-size: 16px;
            font-weight: 600;
        }

        /* Header Profile Button */
        .header-profile {
            position: relative;
        }
        .profile-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            transition: transform 0.2s;
        }
        .profile-btn:active {
            transform: scale(0.95);
        }
        .profile-initial {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
        }
        .profile-menu {
            position: absolute;
            top: 50px;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            min-width: 180px;
            display: none;
            overflow: hidden;
            z-index: 1000;
        }
        .profile-menu.active {
            display: block;
            animation: slideDown 0.2s ease;
        }
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .profile-menu a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            color: var(--text);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: background 0.15s;
        }
        .profile-menu a:hover {
            background: #f5f5f5;
        }
        .profile-menu a svg {
            color: var(--text-light);
        }
        .profile-menu .logout-link {
            border-top: 1px solid #eee;
            color: #DC2626;
        }
        .profile-menu .logout-link svg {
            color: #DC2626;
        }

        /* Profile Photo */
        .profile-photo-container {
            width: 100px;
            height: 100px;
            margin: 0 auto;
            position: relative;
            cursor: pointer;
        }
        .profile-photo-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--success);
        }
        .profile-photo-placeholder {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: var(--success);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            font-weight: 700;
        }
        .profile-photo-edit {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 32px;
            height: 32px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            border: 2px solid white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        /* Main Content */
        .main {
            flex: 1;
            overflow-y: auto;
            padding-bottom: var(--nav-height);
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .main::-webkit-scrollbar {
            display: none;
        }

        /* Pages */
        .page {
            display: none;
            min-height: 100%;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .page.active {
            display: block;
            opacity: 1;
        }

        /* Home Page - Categories */
        .welcome-section {
            padding: 24px 20px;
        }

        .welcome-text {
            font-size: 24px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 4px;
        }

        .welcome-sub {
            color: var(--text-light);
            font-size: 14px;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            padding: 0 20px 24px;
        }

        .category-card {
            background: linear-gradient(145deg, #FFFFFF 0%, #F0FDF4 100%);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            border: 2px solid #BBF7D0;
        }

        .category-card:active {
            transform: scale(0.95);
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
        }

        .category-card-img {
            height: 70px;
            max-height: 70px;
            background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .category-card-img svg {
            width: 36px;
            height: 36px;
            color: var(--primary);
        }

        .category-card-img img {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
        }

        .category-card-body {
            padding: 14px 16px;
        }

        .category-card-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 4px;
        }

        .category-card-count {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Combos Section */
        .combos-section {
            padding: 0 20px 24px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .combo-card {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: var(--radius);
            padding: 20px;
            color: white;
            margin-bottom: 12px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
            overflow: hidden;
        }

        .combo-image {
            width: calc(100% + 40px);
            height: 80px;
            object-fit: cover;
            border-radius: 0;
            margin: -20px -20px 12px -20px;
        }

        .combo-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .combo-name {
            font-size: 20px;
            font-weight: 700;
        }

        .combo-price {
            background: white;
            color: var(--primary);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 18px;
            font-weight: 700;
        }

        .combo-includes {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }

        .combo-tag {
            background: rgba(255,255,255,0.2);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
        }

        .combo-btn {
            background: white;
            color: var(--primary);
            border: none;
            width: 100%;
            padding: 16px;
            min-height: 52px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.15s ease;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .combo-btn:active {
            transform: scale(0.96);
            background: #f5f5f5;
        }

        /* Products Page */
        .products-header {
            padding: 20px;
            background: var(--white);
            border-bottom: 1px solid var(--border);
        }

        .products-title {
            font-size: 20px;
            font-weight: 700;
        }

        .products-count {
            color: var(--text-light);
            font-size: 13px;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            padding: 16px;
        }

        .product-card {
            background: linear-gradient(145deg, #FFFFFF 0%, #F0FDF4 100%);
            border-radius: var(--radius-sm);
            overflow: hidden;
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            border: 2px solid #BBF7D0;
        }

        .product-card:active {
            transform: scale(0.95);
            box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
            border-color: #10B981;
        }

        .product-card-img {
            height: 70px;
            max-height: 70px;
            background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .product-card-img svg {
            width: 32px;
            height: 32px;
            color: var(--primary);
        }

        .product-card-image {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
        }

        .product-card-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

        .product-card-body {
            padding: 12px;
        }

        .product-card-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 4px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-card-price {
            font-size: 16px;
            font-weight: 800;
            color: var(--primary);
        }

        /* Cart Page */
        .cart-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            text-align: center;
        }

        .cart-empty-icon {
            width: 80px;
            height: 80px;
            background: var(--border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .cart-empty-text {
            font-size: 18px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 8px;
        }

        .cart-empty-sub {
            color: var(--text-light);
            font-size: 14px;
            margin-bottom: 24px;
        }

        .cart-items {
            padding: 16px;
        }

        .cart-item {
            background: var(--white);
            border-radius: var(--radius-sm);
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            gap: 12px;
            box-shadow: var(--shadow);
        }

        .cart-item-img {
            width: 50px;
            height: 50px;
            min-width: 50px;
            max-width: 50px;
            min-height: 50px;
            max-height: 50px;
            background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
            border-radius: 10px;
            display: flex;
            overflow: hidden;
            flex-shrink: 0;
        }

        .cart-item-img img {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
        }

        .cart-item-img-icon {
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

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

        .cart-item-name {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .cart-item-price {
            color: var(--primary);
            font-weight: 600;
            font-size: 14px;
        }

        .cart-item-qty {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 8px;
        }

        .qty-btn {
            width: 48px;
            height: 48px;
            border: 2px solid var(--border);
            background: white;
            border-radius: 12px;
            font-size: 22px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .qty-btn:active {
            background: var(--bg);
            transform: scale(0.92);
            border-color: var(--primary);
        }

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

        .cart-item-remove {
            color: var(--text-muted);
            cursor: pointer;
            padding: 8px;
        }

        .cart-summary {
            background: var(--white);
            padding: 20px;
            border-top: 1px solid var(--border);
            position: sticky;
            bottom: var(--nav-height);
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .cart-total-label {
            font-size: 16px;
            color: var(--text-light);
        }

        .cart-total-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--text);
        }

        /* Buttons */
        .btn {
            border: none;
            padding: 18px 28px;
            min-height: 56px;
            border-radius: 14px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            transition: all 0.15s ease;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .btn:active {
            transform: scale(0.96);
            opacity: 0.9;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        }

        .btn-primary:active {
            box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
        }

        .btn-secondary {
            background: var(--bg);
            color: var(--text);
        }

        .btn-outline {
            background: white;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 480px;
            background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
            border-top: 2px solid #86EFAC;
            display: flex;
            padding: 8px 4px;
            padding-bottom: max(12px, env(safe-area-inset-bottom));
            z-index: 1000;
            box-shadow: 0 -4px 20px rgba(16, 185, 129, 0.1);
        }

        /* Cover any area below navigation */
        .bottom-nav::after {
            content: '';
            position: absolute;
            bottom: -50px;
            left: -50%;
            right: -50%;
            height: 100px;
            background: #F0FDF4;
            z-index: -1;
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 10px 8px;
            min-height: 56px;
            cursor: pointer;
            color: #64748B;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            background: none;
            border: none;
            border-radius: 16px;
            margin: 0 4px;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .nav-item:active {
            background: rgba(16, 185, 129, 0.1);
            transform: scale(0.92);
        }

        .nav-item.active {
            color: #FFFFFF;
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        }

        .nav-item svg {
            width: 26px;
            height: 26px;
        }

        .nav-item span {
            font-size: 11px;
            font-weight: 700;
        }

        .nav-item-icon {
            position: relative;
        }

        .nav-badge {
            position: absolute;
            top: -8px;
            right: -12px;
            background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
            color: white;
            font-size: 10px;
            font-weight: 700;
            min-width: 20px;
            height: 20px;
            border-radius: 10px;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
            animation: badge-pulse 2s ease-in-out infinite;
        }

        @keyframes badge-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .nav-badge.show {
            display: flex;
        }

        /* Orders Page */
        .orders-list {
            padding: 16px;
        }

        .order-card {
            background: var(--white);
            border-radius: var(--radius-sm);
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: var(--shadow);
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .order-number {
            font-weight: 700;
            font-size: 16px;
        }

        .order-status {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .order-status.pending { background: #FEF3C7; color: #D97706; }
        .order-status.completed { background: #D1FAE5; color: #059669; }
        .order-status.cancelled { background: #FEE2E2; color: #EF4444; }

        .order-items {
            color: var(--text-light);
            font-size: 13px;
            margin-bottom: 8px;
        }

        .order-total {
            font-weight: 600;
            color: var(--text);
        }

        /* Info Page */
        .info-page {
            padding: 20px;
        }

        .info-logo {
            display: block;
            width: 120px;
            margin: 0 auto 24px;
        }

        .info-card {
            background: var(--white);
            border-radius: var(--radius-sm);
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: var(--shadow);
        }

        .info-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .info-text {
            color: var(--text-light);
            font-size: 14px;
            line-height: 1.6;
        }

        /* Product Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal {
            background: var(--white);
            width: 100%;
            max-width: 480px;
            max-height: 90vh;
            border-radius: var(--radius) var(--radius) 0 0;
            overflow: hidden;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .modal-overlay.active .modal {
            transform: translateY(0);
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 700;
        }

        .modal-close {
            width: 44px;
            height: 44px;
            border: none;
            background: var(--bg);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .modal-close:active {
            transform: scale(0.9);
            background: var(--border);
        }

        .modal-body {
            padding: 20px;
            overflow-y: auto;
            max-height: calc(90vh - 180px);
        }

        .modal-footer {
            padding: 20px;
            border-top: 1px solid var(--border);
        }

        /* Combo Selector */
        .combo-step {
            margin-bottom: 24px;
        }

        .combo-step-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .combo-step-num {
            width: 24px;
            height: 24px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .combo-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .combo-option {
            padding: 14px 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .combo-option.selected {
            border-color: var(--primary);
            background: rgba(220, 38, 38, 0.05);
        }

        .combo-option-name {
            font-weight: 500;
        }

        .combo-option-check {
            width: 24px;
            height: 24px;
            border: 2px solid var(--border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .combo-option.selected .combo-option-check {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: calc(var(--nav-height) + 20px);
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: white;
            padding: 14px 24px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            z-index: 3000;
            transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            opacity: 0;
            pointer-events: none;
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
        }

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

        .toast.success { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }

        /* Checkout Form */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--text);
        }

        .form-input {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 15px;
            font-family: inherit;
            transition: border-color 0.2s;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .form-input::placeholder {
            color: var(--text-muted);
        }

        /* Order Type Selector */
        .order-types {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .order-type {
            padding: 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .order-type.selected {
            border-color: var(--primary);
            background: rgba(220, 38, 38, 0.05);
        }

        .order-type-icon {
            margin-bottom: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 36px;
        }

        .order-type-label {
            font-weight: 600;
            font-size: 14px;
        }

        /* Empty state for orders */
        .empty-orders {
            text-align: center;
            padding: 60px 20px;
        }

        .empty-orders-icon {
            width: 80px;
            height: 80px;
            background: var(--bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
        }

        /* ============== AUTH PAGES ============== */
        .auth-page {
            padding: 24px 20px;
            min-height: calc(100vh - var(--nav-height) - 80px);
        }

        .auth-logo {
            display: block;
            width: 100px;
            margin: 0 auto 24px;
        }

        .auth-title {
            font-size: 24px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 8px;
        }

        .auth-subtitle {
            color: var(--text-light);
            text-align: center;
            margin-bottom: 32px;
            font-size: 14px;
        }

        .auth-form {
            max-width: 400px;
            margin: 0 auto;
        }

        .auth-switch {
            text-align: center;
            margin-top: 24px;
            font-size: 14px;
            color: var(--text-light);
        }

        .auth-switch a {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
        }

        .user-badge {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-badge-avatar {
            width: 40px;
            height: 40px;
            background: var(--success);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 18px;
        }

        .user-badge-info {
            flex: 1;
        }

        .user-badge-name {
            font-weight: 600;
            font-size: 15px;
        }

        .user-badge-phone {
            color: var(--text-light);
            font-size: 13px;
        }

        /* ============== PAYMENT SECTION ============== */
        .payment-methods {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px;
        }

        .payment-method {
            padding: 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .payment-method.selected {
            border-color: var(--primary);
            background: rgba(220, 38, 38, 0.05);
        }

        .payment-method-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .payment-method-icon.yape { background: #6B21A8; color: white; }
        .payment-method-icon.plin { background: #00D4AA; color: white; }
        .payment-method-icon.transfer { background: #3B82F6; color: white; }

        .payment-method-name {
            font-weight: 600;
            font-size: 15px;
        }

        .payment-info-box {
            background: var(--bg);
            border-radius: var(--radius-sm);
            padding: 16px;
            margin-bottom: 16px;
            text-align: center;
        }

        .payment-info-box h4 {
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: 8px;
        }

        .payment-info-box .phone-number {
            font-size: 28px;
            font-weight: 700;
            color: var(--text);
            letter-spacing: 1px;
        }

        .payment-info-box .account-name {
            font-size: 14px;
            color: var(--text-light);
            margin-top: 4px;
        }

        .upload-proof-btn {
            background: var(--bg);
            border: 2px dashed var(--border);
            border-radius: var(--radius-sm);
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 16px;
        }

        .upload-proof-btn:hover {
            border-color: var(--primary);
            background: rgba(220, 38, 38, 0.02);
        }

        .upload-proof-btn.has-image {
            border-style: solid;
            border-color: var(--success);
            background: rgba(16, 185, 129, 0.05);
        }

        .upload-proof-btn svg {
            width: 40px;
            height: 40px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .upload-proof-btn.has-image svg {
            color: var(--success);
        }

        .upload-proof-btn p {
            color: var(--text-light);
            font-size: 14px;
        }

        .proof-preview {
            max-width: 200px;
            max-height: 150px;
            border-radius: 8px;
            margin: 8px auto;
            display: block;
        }

        .payment-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }

        .payment-status-badge.pending {
            background: #FEF3C7;
            color: #D97706;
        }

        .payment-status-badge.verified {
            background: #D1FAE5;
            color: #059669;
        }

        .payment-status-badge.rejected {
            background: #FEE2E2;
            color: #EF4444;
        }

        /* ============== APP SPLASH SCREEN ============== */
        /* Splash styles are now inline in index.html for instant rendering */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* ============== RESPONSIVE ============== */
        /* Small mobile devices */
        @media (max-width: 360px) {
            .welcome-text {
                font-size: 20px;
            }

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

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

            .product-card {
                padding: 12px;
            }

            .modal {
                width: 100%;
                height: 100%;
                max-height: 100%;
                border-radius: 0;
            }

            .header {
                padding: 12px 16px;
            }

            .nav-btn span {
                font-size: 10px;
            }

            .cart-badge {
                font-size: 10px;
                min-width: 16px;
                height: 16px;
            }
        }

        /* Mobile (standard) */
        @media (max-width: 480px) {
            html, body, .app, .content, .page {
                max-width: 100vw;
                overflow-x: hidden;
            }

            .modal {
                width: 95%;
                max-height: 90vh;
                margin: auto;
            }

            /* Touch-friendly buttons */
            .btn {
                min-height: 48px;
                font-size: 15px;
            }

            .qty-btn {
                min-width: 44px;
                min-height: 44px;
            }

            /* Word break for long text */
            * {
                word-break: break-word;
            }
        }

        /* Tablet - expand app width */
        @media (min-width: 481px) and (max-width: 768px) {
            .app {
                max-width: 600px;
            }

            .categories-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Desktop - use more space */
        @media (min-width: 769px) {
            .app {
                max-width: 768px;
                box-shadow: 0 0 40px rgba(0,0,0,0.1);
            }

            .categories-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .products-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .modal {
                max-width: 500px;
            }
        }

        /* Large Desktop (1024px+) */
        @media (min-width: 1024px) {
            .app {
                max-width: 900px;
            }

            .categories-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 16px;
            }

            .products-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 16px;
            }

            .bottom-nav {
                max-width: 900px;
            }
        }

        /* Extra Large Desktop (1400px+) */
        @media (min-width: 1400px) {
            .app {
                max-width: 1100px;
            }

            .categories-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 20px;
            }

            .products-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 20px;
            }

            .bottom-nav {
                max-width: 1100px;
            }

            .header {
                padding: 20px 24px;
            }

            .modal {
                max-width: 600px;
            }
        }

/* PWA Install Modal Animation */
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
#pwa-install-btn:hover { transform: scale(1.02); }
