        /* ========================================
                           AZEED Menu - Premium Modern UI
                           Exact Template Match
                           ======================================== */

        :root {
            --background: #f5f0e8;
            --foreground: #1a1a1a;
            --card: #ffffff;
            --card-foreground: #1a1a1a;
            --primary: #f5a623;
            --primary-foreground: #ffffff;
            --accent: #f5a623;
            --accent-foreground: #ffffff;
            --muted: #f5f0e8;
            --muted-foreground: #737373;
            --border: rgba(0, 0, 0, 0.08);
            --secondary: rgba(0, 0, 0, 0.03);
            --radius: 16px;
            --surface: #f9f9f9;
            --glass-bg: rgba(255, 255, 255, 0.85);
            --shadow-color: rgba(0, 0, 0, 0.05);
            --backdrop: rgba(0, 0, 0, 0.5);
            --btn-secondary-bg: #e5e5e5;
            --btn-secondary-hover: #d5d5d5;
        }

        [data-theme="dark"] {
            --background: #0f0f0f;
            --foreground: #e5e5e5;
            --card: #1a1a1a;
            --card-foreground: #e5e5e5;
            --primary: #f5a623;
            --primary-foreground: #1a1a1a;
            --accent: #f5a623;
            --accent-foreground: #1a1a1a;
            --muted: #1a1a1a;
            --muted-foreground: #a3a3a3;
            --border: rgba(255, 255, 255, 0.1);
            --secondary: rgba(255, 255, 255, 0.05);
            --surface: #1e1e1e;
            --glass-bg: rgba(15, 15, 15, 0.85);
            --shadow-color: rgba(0, 0, 0, 0.3);
            --backdrop: rgba(0, 0, 0, 0.7);
            --btn-secondary-bg: #2a2a2a;
            --btn-secondary-hover: #333333;
        }

        * {
            box-sizing: border-box;
        }

        html {
            overflow-x: hidden;
        }

        body {
            background-color: var(--background);
            font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--foreground);
            min-height: 100vh;
            padding-bottom: 100px;
            margin: 0;
            overflow-x: hidden;
            max-width: 100%;
        }

        /* Menu shell (Vuetify class names only; layout is flex in some themes) */
        #app.v-application,
        #app .v-application--wrap,
        #app .v-main,
        #app .v-main__wrap {
            max-width: 100%;
            min-width: 0;
            overflow-x: hidden;
        }

        /* ========================================
                           Glass Card Effect
                           ======================================== */
        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        /* ========================================
                           Header
                           ======================================== */
        .menu-header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: none;
            padding: 16px 24px;
            box-shadow: 0 1px 3px var(--shadow-color);
        }

        .header-content {
            max-width: 448px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
        }

        .header-top-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            position: relative;
        }

        .order-timer-anchor {
            position: relative;
            display: inline-flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .order-timer-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 999px;
            background: var(--primary);
            color: var(--primary-foreground);
            font-size: 0.8125rem;
            font-weight: 700;
            cursor: pointer;
            border: none;
            max-width: 88px;
        }

        .order-timer-pill svg {
            flex-shrink: 0;
        }

        .order-timer-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            inset-inline-end: 0;
            z-index: 220;
            max-width: min(280px, calc(100vw - 32px));
        }

        .order-timer-popup {
            width: 280px;
            max-width: min(280px, calc(100vw - 32px));
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: var(--radius);
            padding: 20px;
            text-align: center;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        }

        .order-timer-popup-title {
            margin: 0 0 8px;
            font-size: 1.125rem;
            font-weight: 800;
        }

        .order-timer-popup-order {
            margin: 0 0 16px;
            color: var(--muted-foreground);
            font-size: 0.875rem;
        }

        .order-timer-circle {
            width: 80px;
            height: 80px;
            margin: 0 auto 16px;
            border-radius: 50%;
            border: 3px solid var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--card);
        }

        .order-timer-circle-value {
            font-size: 1.125rem;
            font-weight: 800;
            color: var(--foreground);
        }

        .order-timer-popup-hint {
            margin: 0 0 16px;
            font-size: 0.875rem;
            color: var(--muted-foreground);
            line-height: 1.4;
        }

        .order-timer-popup-close {
            width: 100%;
            padding: 12px;
            border-radius: 12px;
            border: none;
            background: var(--secondary);
            font-weight: 600;
            cursor: pointer;
        }

        .orders-history-icon-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            color: var(--foreground);
            background: var(--secondary);
            transition: background 0.15s ease;
        }

        .orders-history-icon-btn:hover {
            background: rgba(0, 0, 0, 0.06);
        }

        .notification-bell-btn {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            color: var(--foreground);
            background: var(--secondary);
            transition: background 0.15s ease;
            text-decoration: none;
            overflow: visible;
        }

        .notification-bell-btn:hover {
            background: rgba(0, 0, 0, 0.06);
        }

        .notification-badge {
            position: absolute;
            top: 2px;
            right: 2px;
            z-index: 2;
            min-width: 18px;
            height: 18px;
            padding: 0 4px;
            border-radius: 999px;
            background: #ef4444;
            color: #fff;
            font-size: 0.65rem;
            font-weight: 800;
            line-height: 18px;
            text-align: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        [dir="rtl"] .notification-badge {
            right: auto;
            left: 2px;
        }

        .theme-toggle-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            color: var(--foreground);
            background: var(--secondary);
            border: none;
            cursor: pointer;
            transition: background 0.15s ease, transform 0.3s ease;
        }

        .theme-toggle-btn:hover {
            background: rgba(0, 0, 0, 0.06);
        }

        [data-theme="dark"] .theme-toggle-btn:hover,
        [data-theme="dark"] .orders-history-icon-btn:hover,
        [data-theme="dark"] .notification-bell-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .brand-section {
            flex: 1;
            min-width: 0;
        }

        .brand-section h1 {
            font-size: 1.5rem;
            font-weight: 900;
            color: var(--foreground);
            margin: 0;
            letter-spacing: -0.5px;
            font-family: 'Inter', 'Cairo', sans-serif;
        }

        .brand-section .branch-name {
            font-size: 0.75rem;
            color: var(--muted-foreground);
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 2px;
        }

        .brand-section .branch-name svg {
            width: 12px;
            height: 12px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            background: rgba(245, 166, 35, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(245, 166, 35, 0.3);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .user-avatar:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
        }

        .user-avatar span {
            color: var(--foreground);
            font-weight: 700;
            font-size: 14px;
        }

        /* Language Switcher Modern */
        .language-switcher-modern {
            position: relative;
        }

        .lang-toggle-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(245, 166, 35, 0.15);
            border: 1px solid rgba(245, 166, 35, 0.25);
            border-radius: 50px;
            padding: 8px 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--foreground);
        }

        .lang-toggle-btn:hover {
            background: rgba(245, 166, 35, 0.25);
            border-color: rgba(245, 166, 35, 0.4);
            transform: scale(1.02);
        }

        .lang-toggle-btn svg {
            color: var(--primary);
        }

        .lang-toggle-btn .current-lang {
            font-weight: 700;
            font-size: 12px;
            letter-spacing: 0.5px;
        }

        .lang-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
            min-width: 160px;
            overflow: hidden;
            z-index: 200;
        }

        [dir="rtl"] .lang-dropdown {
            right: auto;
            left: 0;
        }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            color: var(--foreground);
            text-decoration: none;
            transition: all 0.15s ease;
            font-weight: 500;
            font-size: 14px;
        }

        .lang-option:hover {
            background: var(--muted);
            color: var(--foreground);
            text-decoration: none;
        }

        .lang-option.active {
            background: rgba(245, 166, 35, 0.1);
            color: var(--primary);
            font-weight: 600;
        }

        .lang-option .lang-flag {
            font-size: 18px;
            line-height: 1;
        }

        .lang-option .lang-name {
            flex: 1;
        }

        .lang-option .check-icon {
            color: var(--primary);
            flex-shrink: 0;
        }

        /* Order Type Toggle */
        .order-type-toggle {
            display: flex;
            background: var(--secondary);
            padding: 4px;
            border-radius: 12px;
            width: 100%;
            min-width: 0;
        }

        .order-type-btn {
            flex: 1 1 0;
            min-width: 0;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 700;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: none;
            cursor: pointer;
            background: transparent;
            color: var(--muted-foreground);
            text-align: center;
            line-height: 1.25;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .order-type-btn.active {
            background: white;
            color: var(--foreground);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        .order-type-btn svg {
            width: 16px;
            height: 16px;
        }

        /* ========================================
                           Promo Banner
                           ======================================== */
        .promo-banner {
            max-width: 448px;
            margin: 24px auto 0;
            padding: 0 24px;
        }

        .promo-card {
            background: linear-gradient(135deg, #f5a623 0%, #e8941d 100%);
            border-radius: 16px;
            padding: 24px;
            color: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(245, 166, 35, 0.25);
        }

        .promo-card::after {
            content: '';
            position: absolute;
            right: -16px;
            bottom: -32px;
            width: 128px;
            height: 128px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='white'/%3E%3C/svg%3E") no-repeat center;
            background-size: contain;
            transform: rotate(12deg);
            opacity: 0.1;
        }

        .promo-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .promo-badge svg {
            width: 12px;
            height: 12px;
            fill: currentColor;
        }

        .promo-title {
            font-size: 1.5rem;
            font-weight: 900;
            margin: 0 0 4px 0;
            line-height: 1.1;
        }

        .promo-subtitle {
            font-size: 0.875rem;
            opacity: 0.9;
            margin: 0;
            font-weight: 500;
        }

        /* ========================================
                           Sticky browse (categories + search)
                           ======================================== */
        .menu-sticky-browse {
            position: sticky;
            top: var(--menu-sticky-offset, 96px);
            z-index: 95;
            background: var(--background);
            margin-top: 24px;
            padding-bottom: 8px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        }

        .menu-sticky-browse .categories-section {
            margin-top: 0;
        }

        .menu-sticky-browse .search-section-modern {
            margin-bottom: 12px;
        }

        /* ========================================
                           Categories
                           ======================================== */
        .categories-section {
            max-width: 448px;
            margin: 32px auto 0;
            padding: 0 24px;
        }

        .category-scroll {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 16px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

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

        .category-pill {
            padding: 10px 24px;
            border-radius: 50px;
            font-size: 0.875rem;
            font-weight: 700;
            white-space: nowrap;
            transition: all 0.3s ease;
            border: 1px solid var(--border);
            background: white;
            color: var(--muted-foreground);
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .category-pill:hover {
            background: rgba(255, 255, 255, 0.5);
            color: var(--foreground);
            text-decoration: none;
        }

        .category-pill.active {
            background: var(--foreground);
            color: white;
            border-color: var(--foreground);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transform: scale(1.05);
        }

        .category-pill svg {
            width: 12px;
            height: 12px;
        }

        /* ========================================
                           Products
                           ======================================== */
        .products-section {
            max-width: 448px;
            margin: 16px auto 0;
            padding: 0 24px;
            transition: opacity 0.2s ease;
        }

        .products-section.menu-products-pending {
            pointer-events: none;
        }

        /* ========================================
                           Skeleton Loaders
                           ======================================== */
        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .skeleton {
            background: linear-gradient(90deg, var(--secondary) 25%, var(--border) 50%, var(--secondary) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
            border-radius: 8px;
        }

        .skeleton-product-card {
            background: var(--card);
            border-radius: 16px;
            padding: 16px;
            border: 1px solid var(--border);
            display: flex;
            gap: 16px;
        }

        .skeleton-product-card .skeleton-img {
            width: 110px;
            height: 110px;
            border-radius: 14px;
            flex-shrink: 0;
        }

        .skeleton-product-card .skeleton-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-top: 4px;
        }

        .skeleton-product-card .skeleton-title {
            height: 16px;
            width: 65%;
            border-radius: 6px;
        }

        .skeleton-product-card .skeleton-desc {
            height: 12px;
            width: 90%;
            border-radius: 6px;
        }

        .skeleton-product-card .skeleton-desc.short {
            width: 50%;
        }

        .skeleton-product-card .skeleton-price {
            height: 14px;
            width: 35%;
            border-radius: 6px;
            margin-top: auto;
        }

        /* Product Modal Skeleton */
        .product-modal-skeleton {
            padding: 24px;
        }

        .product-modal-skeleton .skeleton-modal-image {
            width: 100%;
            height: 200px;
            border-radius: 16px;
            margin-bottom: 20px;
        }

        .product-modal-skeleton .skeleton-modal-details {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .product-modal-skeleton .skeleton-modal-title {
            height: 20px;
            width: 60%;
            border-radius: 6px;
        }

        .product-modal-skeleton .skeleton-modal-desc {
            height: 14px;
            width: 85%;
            border-radius: 6px;
        }

        .product-modal-skeleton .skeleton-modal-desc.short {
            width: 45%;
        }

        .product-modal-skeleton .skeleton-modal-price {
            height: 18px;
            width: 30%;
            border-radius: 6px;
            margin-top: 8px;
        }

        .product-modal-skeleton .skeleton-modal-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 16px;
        }

        .product-modal-skeleton .skeleton-modal-option {
            height: 48px;
            border-radius: 12px;
        }

        .products-grid {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .load-more-infinite {
            margin-top: 8px;
            padding-bottom: 8px;
        }

        .load-more-sentinel {
            height: 2px;
            width: 100%;
            pointer-events: none;
        }

        .load-more-infinite-status {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 16px;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--muted-foreground);
        }

        .product-card {
            background: var(--card);
            border-radius: 16px;
            padding: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            border: 1px solid var(--border);
            display: flex;
            gap: 16px;
            align-items: center;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .product-card:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        }

        .product-card:hover .product-img img {
            transform: scale(1.1);
        }

        /* Product Badges Container - Compact Design */
        .product-badges {
            position: absolute;
            top: 6px;
            left: 6px;
            display: flex;
            flex-direction: column;
            gap: 3px;
            z-index: 10;
            max-height: 60px;
            overflow: hidden;
        }

        .product-badges .badge {
            padding: 3px 6px;
            border-radius: 4px;
            font-size: 8px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 2px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            text-transform: uppercase;
            letter-spacing: 0.1px;
            white-space: nowrap;
        }

        .product-badges .badge svg {
            width: 8px;
            height: 8px;
            flex-shrink: 0;
        }

        /* Featured Badge (Gold) */
        .product-badges .featured-badge {
            background: rgba(245, 166, 35, 0.95);
            color: white;
        }

        /* Discount Badge (Red) */
        .product-badges .discount-badge {
            background: rgba(239, 68, 68, 0.95);
            color: white;
        }

        /* Cashback Badge (Green) */
        .product-badges .cashback-badge {
            background: rgba(34, 197, 94, 0.95);
            color: white;
        }

        /* Keep old chef-badge for backwards compatibility */
        .chef-badge {
            position: absolute;
            top: 0;
            right: 0;
            background: var(--accent);
            color: white;
            padding: 4px 12px;
            border-bottom-left-radius: 12px;
            font-size: 10px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 4px;
            box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .chef-badge svg {
            width: 12px;
            height: 12px;
        }

        .product-img {
            width: 112px;
            height: 112px;
            border-radius: 12px;
            overflow: hidden;
            background: var(--muted);
            flex-shrink: 0;
        }

        .product-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .product-content {
            flex: 1;
            min-width: 0;
            padding-top: 8px;
        }

        .product-title {
            font-weight: 700;
            font-size: 1rem;
            color: var(--foreground);
            margin: 0 0 4px 0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-description {
            font-size: 0.75rem;
            color: var(--muted-foreground);
            margin: 0 0 12px 0;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .product-price {
            font-weight: 900;
            font-size: 1rem;
            color: var(--foreground);
        }

        .product-price small {
            font-weight: 500;
            color: var(--muted-foreground);
            margin-left: 4px;
        }

        .add-to-cart-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 36px;
        }

        .add-to-cart-btn:hover {
            background: #e8941d;
            box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
        }

        .add-to-cart-btn svg {
            width: 12px;
            height: 12px;
        }

        .add-to-cart-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            background: #9ca3af;
        }

        .product-card--out-of-stock {
            opacity: 0.88;
        }

        .badge.oos-badge {
            background: #6b7280;
            color: #fff;
        }

        .badge.recommended-badge {
            background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
            color: #fff;
        }

        /* ========================================
                           Floating Cart Button - Modern
                           ======================================== */
        .floating-cart-modern {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            color: white;
            padding: 12px 24px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
            z-index: 1000;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            min-width: 180px;
            justify-content: center;
        }

        .floating-cart-modern:hover {
            transform: translateX(-50%) translateY(-3px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
            color: white;
            text-decoration: none;
        }

        .floating-cart-modern .cart-icon-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .floating-cart-modern .cart-badge {
            position: absolute;
            top: -10px;
            right: -12px;
            background: linear-gradient(135deg, #f5a623 0%, #e8941d 100%);
            color: white;
            font-size: 11px;
            font-weight: 800;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(245, 166, 35, 0.4);
            border: 2px solid #1a1a1a;
        }

        .floating-cart-modern .cart-divider {
            width: 1px;
            height: 20px;
            background: rgba(255, 255, 255, 0.25);
            flex-shrink: 0;
            margin: 0 4px;
        }

        .floating-cart-modern .cart-label {
            font-weight: 600;
            font-size: 0.9375rem;
            white-space: nowrap;
        }

        .floating-cart-modern .cart-total {
            font-weight: 800;
            font-size: 0.9375rem;
            letter-spacing: -0.2px;
            white-space: nowrap;
        }

        @keyframes cartBounce {
            0%, 100% { transform: translateX(-50%) scale(1); }
            50% { transform: translateX(-50%) scale(1.12); }
        }

        .floating-cart-modern.cart-bounce {
            animation: cartBounce 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Old floating cart (hidden) */
        .floating-cart {
            display: none !important;
        }

        /* ========================================
                           Reorder Banner
                           ======================================== */
        .reorder-banner-wrapper {
            max-width: 448px;
            margin: 0 auto;
            padding: 0 24px 6px;
        }

        .reorder-banner {
            background: var(--card);
            border-radius: 14px;
            padding: 10px 12px;
            border: 1px solid var(--border);
            animation: fadeInUp 0.4s ease;
        }

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

        .reorder-banner-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .reorder-banner-title-row {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .reorder-wave {
            font-size: 1.05rem;
            line-height: 1;
        }

        .reorder-banner-header h3 {
            font-size: 0.875rem;
            font-weight: 700;
            margin: 0;
            line-height: 1.2;
            color: var(--foreground);
        }

        .reorder-dismiss {
            background: none;
            border: none;
            padding: 4px;
            cursor: pointer;
            color: var(--muted-foreground);
            border-radius: 8px;
        }

        .reorder-dismiss:hover {
            background: var(--secondary);
        }

        .reorder-banner-body {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .reorder-items-row {
            display: flex;
            gap: 6px;
            margin-bottom: 0;
            overflow-x: auto;
            flex: 1;
            min-width: 0;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .reorder-items-row::-webkit-scrollbar {
            display: none;
        }

        .reorder-item-thumb {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            background: var(--muted);
        }

        .reorder-item-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .reorder-item-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted-foreground);
        }

        .reorder-item-more {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6875rem;
            font-weight: 700;
            color: var(--muted-foreground);
            flex-shrink: 0;
        }

        .reorder-item-count {
            font-size: 0.6875rem;
            color: var(--muted-foreground);
            flex-shrink: 0;
            white-space: nowrap;
        }

        .reorder-form {
            display: inline;
            flex-shrink: 0;
        }

        .reorder-btn {
            background: var(--primary);
            color: var(--primary-foreground);
            border: none;
            padding: 7px 12px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.75rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            line-height: 1;
            transition: all 0.2s;
        }

        .reorder-btn:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        /* ========================================
                           Upsell Bottom Sheet
                           ======================================== */
        .upsell-backdrop {
            position: fixed;
            inset: 0;
            background: var(--backdrop);
            z-index: 1040;
        }

        .upsell-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1041;
            background: var(--card);
            border-radius: 24px 24px 0 0;
            box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
            max-height: 55vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .upsell-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px 12px;
            flex-shrink: 0;
        }

        .upsell-header h3 {
            font-size: 1.0625rem;
            font-weight: 800;
            margin: 0;
            color: var(--foreground);
        }

        .upsell-close {
            background: var(--secondary);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--muted-foreground);
            transition: all 0.15s ease;
        }

        .upsell-close:hover {
            background: var(--btn-secondary-bg);
            color: var(--foreground);
        }

        .upsell-items {
            display: flex;
            gap: 12px;
            padding: 8px 24px 28px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .upsell-items::-webkit-scrollbar {
            display: none;
        }

        .upsell-card {
            flex-shrink: 0;
            width: 140px;
            background: var(--surface);
            border-radius: 16px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            scroll-snap-align: start;
            border: 1px solid var(--border);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .upsell-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px var(--shadow-color);
        }

        .upsell-card-img {
            width: 80px;
            height: 80px;
            border-radius: 14px;
            overflow: hidden;
            background: var(--muted);
            flex-shrink: 0;
        }

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

        .upsell-card-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            text-align: center;
            width: 100%;
        }

        .upsell-card-name {
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--foreground);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.3;
        }

        .upsell-card-price {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--muted-foreground);
        }

        .upsell-add-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--primary);
            color: var(--primary-foreground);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .upsell-add-btn:hover:not(:disabled) {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
        }

        .upsell-add-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .upsell-add-btn .spinner-sm {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }

        /* ========================================
                           Menu order success page
                           ======================================== */
        .menu-success-page {
            max-width: 448px;
            margin: 0 auto;
            padding: 24px 20px 80px;
        }

        .success-container {
            text-align: center;
        }

        .success-check-wrap {
            margin-bottom: 20px;
        }

        .success-check-circle {
            width: 88px;
            height: 88px;
            margin: 0 auto;
            border-radius: 50%;
            background: linear-gradient(145deg, #22c55e, #16a34a);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            animation: successPop 0.5s ease-out;
            box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
        }

        @keyframes successPop {
            0% {
                transform: scale(0.6);
                opacity: 0;
            }

            70% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .success-title {
            font-size: 1.5rem;
            font-weight: 900;
            margin: 0 0 8px;
            letter-spacing: -0.5px;
        }

        .success-sub {
            color: var(--muted-foreground);
            margin: 0 0 24px;
            line-height: 1.5;
        }

        .success-order-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 16px 18px;
            text-align: start;
            margin-bottom: 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        }

        .success-order-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            font-size: 0.9375rem;
            border-bottom: 1px solid var(--border);
        }

        .success-order-row:last-child {
            border-bottom: none;
        }

        .timer-popup-card {
            display: flex;
            align-items: center;
            gap: 14px;
            background: rgba(245, 166, 35, 0.12);
            border: 1px solid rgba(245, 166, 35, 0.35);
            border-radius: var(--radius);
            padding: 14px 16px;
            margin-bottom: 24px;
            text-align: start;
        }

        .timer-popup-icon {
            flex-shrink: 0;
            color: var(--primary);
        }

        .timer-popup-label {
            font-size: 0.8125rem;
            color: var(--muted-foreground);
            margin-bottom: 4px;
        }

        .timer-popup-value {
            font-size: 1.0625rem;
            font-weight: 800;
            color: var(--foreground);
        }

        .success-redirect-hint {
            color: var(--muted-foreground);
            font-size: 0.9375rem;
            margin-bottom: 16px;
        }

        .success-countdown {
            font-weight: 800;
            color: var(--foreground);
        }

        .success-menu-link {
            display: inline-block;
            font-weight: 700;
            color: var(--primary);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        /* ========================================
                           Menu notifications page
                           ======================================== */
        .menu-notifications-page {
            max-width: 448px;
            margin: 0 auto;
            padding: 16px 16px 100px;
        }

        .menu-notifications-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 18px;
            flex-wrap: wrap;
        }

        .menu-notifications-back {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: var(--secondary);
            color: var(--foreground);
            flex-shrink: 0;
        }

        .menu-notifications-header h1 {
            margin: 0;
            font-size: 1.2rem;
            font-weight: 800;
            flex: 1;
            min-width: 0;
        }

        .menu-notifications-mark-all {
            border: none;
            background: transparent;
            color: var(--primary);
            font-weight: 700;
            font-size: 0.8125rem;
            cursor: pointer;
            padding: 6px 4px;
            white-space: nowrap;
        }

        .menu-notifications-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .menu-notif-card {
            width: 100%;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 14px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            background: var(--card);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            cursor: pointer;
            text-align: start;
            font: inherit;
            color: inherit;
            position: relative;
        }

        .menu-notif-card--unread {
            border-color: rgba(245, 166, 35, 0.45);
            background: rgba(245, 166, 35, 0.04);
        }

        .menu-notif-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--foreground);
        }

        .menu-notif-body {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .menu-notif-title {
            font-weight: 700;
            font-size: 0.9375rem;
            line-height: 1.3;
        }

        .menu-notif-desc {
            font-size: 0.8125rem;
            color: var(--muted-foreground);
            line-height: 1.35;
        }

        .menu-notif-time {
            font-size: 0.7rem;
            color: var(--muted-foreground);
        }

        .menu-notif-dot {
            position: absolute;
            top: 14px;
            inset-inline-end: 12px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
        }

        .menu-notifications-empty {
            text-align: center;
            padding: 48px 20px;
            color: var(--muted-foreground);
        }

        .menu-notifications-empty svg {
            margin-bottom: 12px;
            opacity: 0.5;
        }

        .menu-notifications-pagination {
            margin-top: 20px;
        }

        /* ========================================
                           Order history page
                           ======================================== */
        .orders-history-page {
            max-width: 448px;
            margin: 0 auto;
            padding: 16px 16px 100px;
        }

        .orders-history-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .orders-back-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: var(--secondary);
            color: var(--foreground);
        }

        .orders-history-header h1 {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 800;
        }

        .order-history-card {
            background: var(--card);
            border-radius: var(--radius);
            margin-bottom: 12px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .order-history-card-header {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 14px;
            border: none;
            background: transparent;
            cursor: pointer;
            text-align: start;
            font: inherit;
            color: inherit;
        }

        .order-history-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .order-history-number {
            font-weight: 800;
            font-size: 1rem;
        }

        .order-history-date {
            font-size: 0.75rem;
            color: var(--muted-foreground);
        }

        .order-history-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
        }

        .order-history-total {
            font-weight: 700;
            font-size: 0.9375rem;
        }

        .order-history-chevron {
            flex-shrink: 0;
            transition: transform 0.2s ease;
            color: var(--muted-foreground);
        }

        .order-history-chevron.is-open {
            transform: rotate(180deg);
        }

        .order-status-badge {
            font-size: 0.6875rem;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 999px;
            text-transform: capitalize;
        }

        .order-status-badge--light {
            background: #f3f4f6;
            color: #4b5563;
        }

        .order-status-badge--warning {
            background: #fef3c7;
            color: #b45309;
        }

        .order-status-badge--success {
            background: #dcfce7;
            color: #15803d;
        }

        .order-status-badge--info {
            background: #e0f2fe;
            color: #0369a1;
        }

        .order-status-badge--primary {
            background: rgba(245, 166, 35, 0.2);
            color: #b45309;
        }

        .order-status-badge--danger {
            background: #fee2e2;
            color: #b91c1c;
        }

        .order-status-badge--secondary {
            background: #e5e7eb;
            color: #374151;
        }

        .order-history-body {
            padding: 0 14px 14px;
            border-top: 1px solid var(--border);
        }

        .order-history-item-row {
            display: flex;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }

        .order-history-item-row:last-of-type {
            border-bottom: none;
        }

        .order-history-item-img {
            width: 56px;
            height: 56px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
            background: var(--muted);
        }

        .order-history-item-details {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .order-history-item-name {
            font-weight: 700;
            font-size: 0.9375rem;
        }

        .order-history-item-var,
        .order-history-item-toppings {
            font-size: 0.75rem;
            color: var(--muted-foreground);
        }

        .order-history-item-qty-price {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
            font-size: 0.8125rem;
            font-weight: 600;
        }

        .order-history-summary {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed var(--border);
        }

        .order-history-summary-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.875rem;
            padding: 6px 0;
        }

        .order-history-summary-row.discount {
            color: #15803d;
        }

        .order-history-summary-row.total {
            font-weight: 800;
            font-size: 1rem;
            padding-top: 10px;
            margin-top: 4px;
            border-top: 1px solid var(--border);
        }

        .orders-empty-state {
            text-align: center;
            padding: 48px 20px;
        }

        .orders-empty-state p {
            color: var(--muted-foreground);
            margin: 12px 0 20px;
        }

        .orders-empty-cta {
            display: inline-block;
            padding: 12px 24px;
            border-radius: 12px;
            background: var(--primary);
            color: var(--primary-foreground);
            font-weight: 700;
            text-decoration: none;
        }

        .orders-pagination {
            margin-top: 20px;
            display: flex;
            justify-content: center;
        }

        .orders-pagination nav {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        /* ========================================
                           Empty State
                           ======================================== */
        .empty-state {
            text-align: center;
            padding: 60px 24px;
        }

        .empty-state svg {
            width: 64px;
            height: 64px;
            color: var(--muted-foreground);
            margin-bottom: 16px;
        }

        .empty-state h3 {
            color: var(--muted-foreground);
            font-weight: 600;
            margin: 0;
        }

        /* ===== Coins pill (header) ===== */
        .coins-pill {
            display: flex;
            align-items: center;
            gap: 5px;
            background: #fff3e0;
            border-radius: 20px;
            padding: 5px 10px;
            font-size: 0.8rem;
            font-weight: 700;
            color: #e65100;
            text-decoration: none;
            cursor: pointer;
            border: 1.5px solid #ff9800;
            transition: transform 0.15s;
            flex-shrink: 0;
        }

        .coins-pill:hover {
            transform: scale(1.04);
        }

        .coins-pill--dashed {
            border-style: dashed;
        }

        .coins-motivational-strip {
            background: #fff8f0;
            padding: 7px 40px; /* 24px compensates for negative margin-inline */
            font-size: 0.75rem;
            color: #e65100;
            text-align: center;
            border-bottom: 1px solid #ffe0b2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: -16px;    /* eliminate header-content flex gap above */
            margin-inline: -24px; /* span full header width past padding */
        }

        [data-theme="dark"] .coins-motivational-strip {
            background: rgba(245, 166, 35, 0.12);
            color: var(--foreground);
            border-bottom-color: rgba(245, 166, 35, 0.25);
        }

        /* ===== Avatar Button ===== */
        .avatar-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--secondary);
            border: 2px solid transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease;
            color: var(--foreground);
            flex-shrink: 0;
        }

        .avatar-btn:hover {
            background: rgba(0, 0, 0, 0.06);
        }

        [data-theme="dark"] .avatar-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .avatar-btn--auth {
            border-color: rgba(245, 166, 35, 0.5);
        }

        /* ===== Avatar Dropdown ===== */
        .avatar-dropdown-anchor {
            position: relative;
        }

        .avatar-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            inset-inline-end: 0;
            background: var(--card, #fff);
            border-radius: 14px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
            min-width: 200px;
            overflow: hidden;
            z-index: 200;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--foreground);
            text-decoration: none;
            cursor: pointer;
            border-bottom: 1px solid var(--border, #f0f0f0);
            transition: background 0.15s ease;
            background: transparent;
            border-left: none;
            border-right: none;
            border-top: none;
            width: 100%;
            text-align: start;
        }

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

        .dropdown-item:hover {
            background: var(--muted, #f9f9f9);
        }

        .dropdown-item--login {
            background: var(--muted, #f9f9f9);
            cursor: pointer;
        }

        .dropdown-item--login:hover {
            background: rgba(0, 0, 0, 0.04);
        }

        .dropdown-item-icon {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--foreground);
        }

        .dropdown-item-title {
            font-size: 0.875rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .dropdown-item-sub {
            font-size: 0.7rem;
            color: var(--muted-foreground);
            font-weight: 400;
            margin-top: 2px;
        }

        .dropdown-chevron {
            margin-inline-start: auto;
            color: var(--muted-foreground);
            flex-shrink: 0;
        }

        [dir="rtl"] .dropdown-chevron {
            transform: scaleX(-1);
        }

        /* Theme toggle row inside dropdown */
        .dropdown-theme-switch {
            margin-inline-start: auto;
            width: 36px;
            height: 20px;
            border-radius: 10px;
            background: var(--secondary);
            position: relative;
            flex-shrink: 0;
            transition: background 0.2s;
            pointer-events: none;
        }

        .dropdown-theme-switch--on {
            background: var(--primary);
        }

        .dropdown-theme-thumb {
            position: absolute;
            top: 2px;
            inset-inline-start: 2px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s;
        }

        .dropdown-theme-switch--on .dropdown-theme-thumb {
            transform: translateX(16px);
        }

        [dir="rtl"] .dropdown-theme-switch--on .dropdown-theme-thumb {
            transform: translateX(-16px);
        }

        /* ========================================
                           Mobile Responsive
                           ======================================== */
        @media (max-width: 480px) {
            .menu-header {
                padding: 12px 16px;
            }

            .header-content {
                gap: 12px;
            }

            .brand-section h1 {
                font-size: 1.25rem;
            }

            .order-type-btn {
                padding: 8px 10px;
                font-size: 0.8125rem;
                gap: 6px;
            }

            .order-type-btn svg {
                flex-shrink: 0;
            }

            .promo-banner,
            .categories-section,
            .products-section,
            .stamp-card-section {
                padding-left: 16px;
                padding-right: 16px;
            }

            .promo-card {
                padding: 20px;
            }

            .promo-title {
                font-size: 1.25rem;
            }

            .product-img {
                width: 96px;
                height: 96px;
            }

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

            .category-pill {
                padding: 8px 20px;
                font-size: 0.8125rem;
            }
        }

        /* ========================================
                           Animations
                           ======================================== */
        .fade-in-up {
            animation: fadeInUp 0.4s ease-out forwards;
            opacity: 0;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Hide old styles completely */
        .carousel-container,
        .header-overlay,
        .store-banner,
        .categories-container {
            display: none !important;
        }

        /* —— Category nav: scroll affordance & snap —— */
        .categories-section {
            position: relative;
        }

        .categories-section::before,
        .categories-section::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 28px;
            z-index: 2;
            pointer-events: none;
        }

        .categories-section::before {
            left: 0;
            background: linear-gradient(to right, var(--background, #f5f0e8), transparent);
        }

        .categories-section::after {
            right: 0;
            background: linear-gradient(to left, var(--background, #f5f0e8), transparent);
        }

        .category-scroll {
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
        }

        .category-pill {
            scroll-snap-align: start;
            position: relative;
        }

        .category-pill.active {
            color: var(--primary, #f5a623);
        }

        .category-pill.active::after {
            content: '';
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: 4px;
            height: 3px;
            border-radius: 999px;
            background: var(--primary, #f5a623);
            animation: categoryUnderline 0.25s ease-out;
        }

        @keyframes categoryUnderline {
            from {
                transform: scaleX(0);
            }

            to {
                transform: scaleX(1);
            }
        }

        .category-count {
            font-size: 0.7rem;
            opacity: 0.75;
            font-weight: 600;
            margin-inline-start: 4px;
        }

        /* —— Product modal —— */
        @keyframes productModalAddedPulse {
            0% {
                transform: scale(1);
            }

            40% {
                transform: scale(1.02);
            }

            100% {
                transform: scale(1);
            }
        }

        .product-modal-added-pulse {
            animation: productModalAddedPulse 0.45s ease-out;
        }

        .product-modal-running-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0 0;
            margin-top: 12px;
            border-top: 1px solid #f0f0f0;
            font-weight: 800;
            font-size: 1rem;
        }

        .product-modal-image-zoomable {
            cursor: zoom-in;
        }

        .product-modal-image-zoomable.is-zoomed {
            cursor: zoom-out;
        }

        .product-modal-image-zoomable.is-zoomed img {
            transform: scale(1.85);
            transform-origin: center center;
        }

        .required-badge--strong {
            font-size: 0.6875rem;
            padding: 4px 8px;
            box-shadow: 0 1px 4px rgba(239, 68, 68, 0.35);
        }

        /* —— Order status page —— */
        .order-status-page {
            max-width: 448px;
            margin: 0 auto;
            padding: 16px 20px 120px;
        }

        .order-status-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .order-status-header h1 {
            margin: 0;
            font-size: 1.25rem;
        }

        .order-status-back {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: #fff;
            color: #1a1a1a;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        }

        .order-status-card {
            background: #fff;
            border-radius: var(--radius, 16px);
            padding: 16px 18px;
            margin-bottom: 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        }

        .order-status-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9375rem;
        }

        .order-status-eta,
        .order-status-live {
            margin: 10px 0 0;
            font-size: 0.875rem;
            color: #737373;
        }

        .order-status-alert {
            padding: 14px 16px;
            border-radius: 12px;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .order-status-alert--danger {
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        .order-status-timeline {
            list-style: none;
            margin: 0 0 24px;
            padding: 0;
        }

        .order-status-step {
            position: relative;
            padding: 0 0 16px 28px;
            font-size: 0.9rem;
            color: #a3a3a3;
        }

        .order-status-step.is-done {
            color: #525252;
        }

        .order-status-step.is-current {
            color: #1a1a1a;
            font-weight: 800;
        }

        .order-status-step.is-current .order-status-dot {
            background: var(--primary, #f5a623);
            box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.25);
            animation: statusPulse 1.6s ease-in-out infinite;
        }

        @keyframes statusPulse {

            0%,
            100% {
                box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.2);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(245, 166, 35, 0.12);
            }
        }

        .order-status-dot {
            position: absolute;
            left: 0;
            top: 4px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #e5e5e5;
        }

        .order-status-step.is-done .order-status-dot {
            background: #22c55e;
        }

        .order-status-summary h2 {
            font-size: 1rem;
            margin: 0 0 10px;
        }

        .order-status-items {
            list-style: none;
            margin: 0;
            padding: 0;
            font-size: 0.875rem;
            color: #525252;
        }

        .order-status-items li {
            padding: 6px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        /* —— Orders history enhancements —— */
        .orders-date-group-title {
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #737373;
            margin: 20px 0 8px;
            padding-inline-start: 4px;
        }

        .order-card-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            margin-top: 12px;
            padding: 0 4px 8px;
        }

        .order-track-status-link {
            font-size: 0.8125rem;
            font-weight: 700;
            color: #0f766e;
            text-decoration: none;
        }

        .order-track-status-link:hover {
            text-decoration: underline;
        }

        .order-reorder-form {
            margin-top: 0;
        }

        .order-reorder-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 10px;
            border: none;
            background: rgba(245, 166, 35, 0.15);
            color: #b45309;
            font-weight: 700;
            font-size: 0.8125rem;
            cursor: pointer;
        }

        .order-history-item-count {
            font-size: 0.8125rem;
            color: #737373;
            margin-top: 4px;
        }

        /* —— Cart header / empty —— */
        .cart-continue-inline {
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--primary, #f5a623);
            text-decoration: none;
        }

        .cart-continue-inline:hover {
            text-decoration: underline;
        }

        .empty-cart-modern .empty-cart-illustration {
            margin-bottom: 8px;
        }

        /* —— Accessibility: focus —— */
        .product-card:focus-visible,
        .category-pill:focus-visible,
        .add-to-cart-btn:focus-visible,
        .cart-continue-inline:focus-visible,
        .order-reorder-btn:focus-visible {
            outline: 2px solid var(--primary, #f5a623);
            outline-offset: 2px;
        }

        .orders-flash {
            margin: 12px 16px 0;
            padding: 12px 14px;
            border-radius: 12px;
            font-size: 0.875rem;
            font-weight: 600;
        }

        .orders-flash--error {
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        .orders-flash--success {
            background: #ecfdf5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }

        .success-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
            margin-top: 8px;
        }

        /* ========================================
                           Web push opt-in (menu index)
                           ======================================== */
        .menu-push-overlay {
            position: fixed;
            inset: 0;
            z-index: 1050;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px 16px;
            pointer-events: none;
        }

        .menu-push-overlay > * {
            pointer-events: auto;
        }

        .menu-push-backdrop {
            position: absolute;
            inset: 0;
            background: var(--backdrop);
        }

        .menu-push-dialog-wrap {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 400px;
            margin: auto;
        }

        .menu-push-card {
            position: relative;
            border-radius: 22px;
            padding: 28px 24px 24px;
            box-shadow: 0 24px 64px var(--shadow-color), 0 0 0 1px var(--border);
            border: 1px solid var(--border);
            background: var(--card);
        }

        .menu-push-close {
            position: absolute;
            top: 14px;
            inset-inline-end: 14px;
            width: 36px;
            height: 36px;
            border-radius: 12px;
            border: none;
            background: var(--secondary);
            color: var(--muted-foreground);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
            z-index: 2;
        }

        .menu-push-close:hover {
            background: var(--btn-secondary-bg);
            color: var(--foreground);
        }

        .menu-push-close:active {
            transform: scale(0.96);
        }

        .menu-push-body {
            text-align: center;
        }

        .menu-push-body--compact {
            padding-top: 4px;
        }

        .menu-push-hero {
            position: relative;
            width: 88px;
            height: 88px;
            margin: 0 auto 18px;
        }

        .menu-push-hero--muted {
            margin-bottom: 14px;
        }

        .menu-push-hero-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: conic-gradient(from 210deg, var(--primary), #ffd27a, var(--primary));
            opacity: 0.35;
            animation: menu-push-ring-spin 10s linear infinite;
        }

        @keyframes menu-push-ring-spin {
            to {
                transform: rotate(360deg);
            }
        }

        .menu-push-hero-icon {
            position: absolute;
            inset: 10px;
            border-radius: 50%;
            background: linear-gradient(145deg, var(--primary), #e89410);
            color: var(--primary-foreground);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 28px rgba(245, 166, 35, 0.45);
        }

        .menu-push-hero-icon--muted {
            position: static;
            inset: auto;
            width: 72px;
            height: 72px;
            margin: 0 auto;
            background: var(--secondary);
            color: var(--muted-foreground);
            box-shadow: none;
        }

        .menu-push-title {
            margin: 0 0 8px;
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--foreground);
            line-height: 1.35;
        }

        .menu-push-sub {
            margin: 0 0 20px;
            font-size: 0.9375rem;
            line-height: 1.55;
            color: var(--muted-foreground);
        }

        .menu-push-benefits {
            list-style: none;
            margin: 0 0 18px;
            padding: 0;
            text-align: start;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .menu-push-benefits li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--foreground);
            line-height: 1.45;
        }

        .menu-push-check {
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            border-radius: 8px;
            background: rgba(245, 166, 35, 0.15);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 1px;
        }

        [data-theme="dark"] .menu-push-check {
            background: rgba(245, 166, 35, 0.2);
        }

        .menu-push-footnote {
            margin: 0 0 22px;
            font-size: 0.75rem;
            line-height: 1.5;
            color: var(--muted-foreground);
        }

        .menu-push-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .menu-push-actions--single {
            margin-top: 4px;
        }

        .menu-push-primary {
            width: 100%;
            border: none;
            border-radius: 14px;
            padding: 14px 18px;
            font-size: 1rem;
            font-weight: 800;
            cursor: pointer;
            background: linear-gradient(135deg, var(--primary), #e89410);
            color: var(--primary-foreground);
            box-shadow: 0 10px 28px rgba(245, 166, 35, 0.35);
            transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .menu-push-primary:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 14px 36px rgba(245, 166, 35, 0.42);
        }

        .menu-push-primary:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            transform: none;
        }

        .menu-push-secondary {
            width: 100%;
            border: none;
            border-radius: 14px;
            padding: 12px 18px;
            font-size: 0.9375rem;
            font-weight: 700;
            cursor: pointer;
            background: var(--secondary);
            color: var(--muted-foreground);
            transition: background 0.15s ease, color 0.15s ease;
        }

        .menu-push-secondary:hover:not(:disabled) {
            background: var(--btn-secondary-bg);
            color: var(--foreground);
        }

        .menu-push-spinner {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.35);
            border-top-color: #fff;
            border-radius: 50%;
            animation: menu-push-spin 0.7s linear infinite;
        }

        @keyframes menu-push-spin {
            to {
                transform: rotate(360deg);
            }
        }

        @media (max-width: 380px) {
            .menu-push-card {
                padding: 24px 18px 20px;
            }

            .menu-push-title {
                font-size: 1.125rem;
            }
        }

        /* Amount + Saudi Riyal SVG (same as product cards / menu.partials.sar-symbol) */
        .menu-price-with-sar {
            display: inline-flex;
            align-items: center;
            gap: 0.15em;
            font-variant-numeric: tabular-nums;
        }

        /* ========================================
                           Subscription Pill Button
                           ======================================== */
        .subscription-pill-wrapper {
            max-width: 448px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .subscription-pill-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 12px 16px;
            border-radius: 14px;
            background: var(--card);
            border: 1px solid var(--border);
            text-decoration: none;
            color: var(--foreground);
            font-weight: 700;
            font-size: 0.875rem;
            transition: transform 0.12s ease, box-shadow 0.2s ease;
            animation: fadeInUp 0.35s ease;
        }

        .subscription-pill-btn svg:first-child {
            flex-shrink: 0;
            color: var(--primary);
        }

        .subscription-pill-btn span {
            flex: 1;
        }

        .subscription-pill-btn .pill-arrow {
            flex-shrink: 0;
            color: var(--muted-foreground);
            transition: transform 0.15s ease;
        }

        .subscription-pill-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px var(--shadow-color);
        }

        .subscription-pill-btn:hover .pill-arrow {
            transform: translateX(2px);
        }

        [dir="rtl"] .subscription-pill-btn:hover .pill-arrow {
            transform: translateX(-2px);
        }

        @media (max-width: 480px) {
            .subscription-pill-wrapper {
                padding: 0 16px;
            }
        }

        /* ========================================
                           Subscription Pages
                           ======================================== */
        .sub-page {
            max-width: 448px;
            margin: 0 auto;
            padding: 16px 16px 100px;
        }

        .sub-page-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .sub-page-back {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: var(--secondary);
            color: var(--foreground);
            text-decoration: none;
            transition: background 0.15s ease;
        }

        .sub-page-back:hover {
            background: var(--btn-secondary-bg);
        }

        .sub-page-title {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 800;
        }

        .sub-flash {
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .sub-flash--error {
            background: #fee2e2;
            color: #b91c1c;
        }

        .sub-flash--success {
            background: #dcfce7;
            color: #15803d;
        }

        [data-theme="dark"] .sub-flash--error {
            background: rgba(239, 68, 68, 0.15);
            color: #fca5a5;
        }

        [data-theme="dark"] .sub-flash--success {
            background: rgba(34, 197, 94, 0.15);
            color: #86efac;
        }

        .sub-detail-pending-link {
            margin-inline-start: 8px;
            font-weight: 600;
            text-decoration: underline;
            color: inherit;
        }

        .sub-payment-tran-ref {
            margin-top: 10px;
            font-size: 0.9rem;
            opacity: 0.95;
        }

        .sub-empty {
            text-align: center;
            padding: 64px 24px;
        }

        .sub-empty-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 16px;
            border-radius: 50%;
            background: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted-foreground);
        }

        .sub-empty-text {
            color: var(--muted-foreground);
            font-size: 0.9375rem;
            font-weight: 600;
            margin: 0;
        }

        /* --- Plans Grid --- */
        .sub-plans-grid {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .sub-plan-card {
            display: block;
            background: var(--card);
            border-radius: var(--radius);
            overflow: hidden;
            text-decoration: none;
            color: var(--foreground);
            box-shadow: 0 2px 12px var(--shadow-color);
            border: 1px solid var(--border);
            transition: transform 0.15s ease, box-shadow 0.2s ease;
            animation: fadeInUp 0.4s ease backwards;
        }

        .sub-plan-card:nth-child(2) { animation-delay: 0.06s; }
        .sub-plan-card:nth-child(3) { animation-delay: 0.12s; }
        .sub-plan-card:nth-child(4) { animation-delay: 0.18s; }
        .sub-plan-card:nth-child(5) { animation-delay: 0.24s; }

        .sub-plan-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 28px var(--shadow-color);
        }

        .sub-plan-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            padding: 16px 16px 0;
        }

        .sub-plan-slots {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .sub-plan-slot-tag {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 999px;
            background: rgba(245, 166, 35, 0.12);
            color: var(--primary);
            font-size: 0.6875rem;
            font-weight: 700;
        }

        [data-theme="dark"] .sub-plan-slot-tag {
            background: rgba(245, 166, 35, 0.18);
        }

        .sub-plan-price {
            font-weight: 800;
            font-size: 1.125rem;
            flex-shrink: 0;
            margin-inline-start: 12px;
        }

        .sub-plan-name {
            margin: 12px 16px 0;
            font-size: 1.0625rem;
            font-weight: 800;
            line-height: 1.3;
        }

        .sub-plan-desc {
            margin: 6px 16px 0;
            font-size: 0.8125rem;
            color: var(--muted-foreground);
            line-height: 1.5;
        }

        .sub-plan-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            padding: 12px 16px 0;
        }

        .sub-plan-meta-item {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.75rem;
            color: var(--muted-foreground);
            font-weight: 600;
        }

        .sub-plan-meta-item svg {
            color: var(--primary);
            flex-shrink: 0;
        }

        .sub-plan-cta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin: 16px;
            padding: 12px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--primary), #e89410);
            color: var(--primary-foreground);
            font-weight: 800;
            font-size: 0.9375rem;
            transition: box-shadow 0.2s ease;
        }

        .sub-plan-card:hover .sub-plan-cta {
            box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
        }

        .sub-plan-cta-text {
            flex: 1;
            text-align: center;
        }

        /* --- Plan detail (single meal plan) --- */
        .sub-page--plan-detail {
            padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
        }

        .sub-detail-summary-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 18px 16px;
            margin-bottom: 16px;
            border: 1px solid var(--border);
            box-shadow: 0 2px 14px var(--shadow-color);
        }

        .sub-detail-hero {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .sub-detail-price {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 6px 10px;
            font-size: 1.375rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--foreground);
        }

        .sub-detail-period {
            font-size: 0.9375rem;
            font-weight: 700;
            color: var(--muted-foreground);
        }

        .sub-detail-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .sub-detail-desc {
            margin: 0;
            font-size: 0.875rem;
            line-height: 1.55;
            color: var(--muted-foreground);
        }

        .sub-slot-section {
            margin-bottom: 18px;
        }

        .sub-slot-title {
            margin: 0 0 10px;
            font-size: 1.0625rem;
            font-weight: 800;
            color: var(--foreground);
            letter-spacing: -0.01em;
        }

        .sub-slot-items {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .sub-meal-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 14px;
            background: var(--card);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: 0 2px 10px var(--shadow-color);
            transition: box-shadow 0.18s ease;
        }

        .sub-meal-item:hover {
            box-shadow: 0 6px 18px var(--shadow-color);
        }

        .sub-meal-thumb {
            flex-shrink: 0;
            width: 72px;
            height: 72px;
            border-radius: 14px;
            overflow: hidden;
            background: var(--secondary);
            border: 1px solid var(--border);
        }

        .sub-meal-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .sub-meal-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .sub-meal-name {
            font-size: 0.9375rem;
            font-weight: 700;
            line-height: 1.35;
            color: var(--foreground);
        }

        .sub-meal-var {
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--muted-foreground);
            line-height: 1.4;
        }

        .sub-detail-footer {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 30;
            max-width: 448px;
            margin: 0 auto;
            padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
            background: linear-gradient(
                to top,
                var(--background) 65%,
                rgba(255, 255, 255, 0) 100%
            );
            pointer-events: none;
        }

        [data-theme="dark"] .sub-detail-footer {
            background: linear-gradient(
                to top,
                var(--background) 70%,
                rgba(0, 0, 0, 0) 100%
            );
        }

        .sub-detail-footer > * {
            pointer-events: auto;
        }

        a.sub-submit-btn.sub-detail-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            text-decoration: none;
            box-sizing: border-box;
        }

        .sub-detail-cta svg {
            flex-shrink: 0;
        }

        [dir="rtl"] .sub-detail-cta svg {
            transform: scaleX(-1);
        }

        /* --- Subscribe page --- */
        .sub-days-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            padding: 0 16px 16px;
        }

        [dir="rtl"] .sub-days-grid {
            direction: rtl;
        }

        .sub-day-btn {
            padding: 10px 4px;
            border-radius: 10px;
            border: 2px solid var(--border);
            background: var(--card);
            color: var(--foreground);
            font-size: 0.8125rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
            text-align: center;
        }

        .sub-day-btn:hover:not(:disabled) {
            border-color: var(--primary);
        }

        .sub-day-btn.active {
            background: rgba(245, 166, 35, 0.12);
            border-color: var(--primary);
            color: var(--primary);
        }

        .sub-day-btn:disabled:not(.active) {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* --- Subscription detail --- */
        .sub-status-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            background: var(--card);
            border-radius: var(--radius);
            margin-bottom: 12px;
            box-shadow: 0 2px 10px var(--shadow-color);
        }

        .sub-status-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .sub-status-label {
            font-size: 0.75rem;
            color: var(--muted-foreground);
            font-weight: 600;
        }

        .sub-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }

        .sub-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 0.8125rem;
            font-weight: 700;
            cursor: pointer;
            border: none;
            text-decoration: none;
            transition: all 0.15s ease;
        }

        .sub-action-btn--pause {
            background: var(--secondary);
            color: var(--foreground);
        }

        .sub-action-btn--pause:hover {
            background: var(--btn-secondary-bg);
        }

        .sub-action-btn--resume,
        .sub-action-btn--primary {
            background: linear-gradient(135deg, var(--primary), #e89410);
            color: var(--primary-foreground);
        }

        .sub-action-btn--cancel {
            background: transparent;
            color: #ef4444;
            border: 1px solid #fecaca;
        }

        [data-theme="dark"] .sub-action-btn--cancel {
            border-color: rgba(239, 68, 68, 0.3);
        }

        .sub-action-btn--cancel:hover {
            background: #fee2e2;
        }

        [data-theme="dark"] .sub-action-btn--cancel:hover {
            background: rgba(239, 68, 68, 0.12);
        }

        .sub-detail-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 0;
            padding-top: 8px;
        }

        .sub-detail-manage {
            margin-bottom: 12px;
            border-radius: 12px;
            border: 1px solid var(--border);
            background: var(--card);
            box-shadow: 0 1px 4px var(--shadow-color);
        }

        .sub-detail-manage__summary {
            list-style: none;
            cursor: pointer;
            padding: 10px 14px;
            font-size: 0.8125rem;
            font-weight: 800;
            color: var(--foreground);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .sub-detail-manage__summary::-webkit-details-marker {
            display: none;
        }

        .sub-detail-manage__summary::after {
            content: '';
            width: 0.5rem;
            height: 0.5rem;
            border-inline-end: 2px solid var(--muted-foreground);
            border-block-end: 2px solid var(--muted-foreground);
            transform: rotate(45deg);
            margin-inline-start: auto;
            flex-shrink: 0;
        }

        .sub-detail-manage[open] .sub-detail-manage__summary::after {
            transform: rotate(-135deg);
            margin-block-start: 4px;
        }

        .sub-page--subscription-detail {
            padding-bottom: 88px;
        }

        .sub-jump-today-btn {
            position: fixed;
            z-index: 20;
            inset-inline-end: 14px;
            bottom: calc(14px + env(safe-area-inset-bottom, 0px));
            padding: 10px 16px;
            border-radius: 999px;
            font-size: 0.8125rem;
            font-weight: 800;
            text-decoration: none;
            color: #fff;
            background: var(--primary);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
            border: none;
        }

        .sub-jump-today-btn:hover {
            filter: brightness(1.05);
            color: #fff;
        }

        [data-theme="dark"] .sub-jump-today-btn {
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
        }

        #sub-schedule-today {
            scroll-margin-top: 88px;
        }

        [id^='sub-day-'] {
            scroll-margin-top: 88px;
        }

        /* --- Subscription detail: meal calendar (Azeed Meal Calendar.html) --- */
        .sub-page--meal-calendar .sub-detail-manage {
            margin-bottom: 10px;
        }

        .sub-page--meal-calendar {
            --cal-surface: #f5f0ea;
            --cal-border: #ede8e3;
            --cal-muted: #a09890;
            --cal-ink: #1c1c1e;
            --cal-accent: #e8951a;
            --cal-chip-bg: #fef5e7;
            --cal-card: #fff;

            background: var(--cal-surface);
            max-width: 448px;
        }

        [data-theme='dark'] .sub-page--meal-calendar {
            --cal-surface: var(--background);
            --cal-border: var(--border);
            --cal-muted: var(--muted-foreground);
            --cal-ink: var(--foreground);
            --cal-chip-bg: rgba(232, 149, 26, 0.12);
            --cal-card: var(--card);
        }

        .sub-cal-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding: 6px 0 12px;
        }

        .sub-cal-header__title {
            margin: 0;
            font-size: 1.1875rem;
            font-weight: 800;
            color: var(--cal-ink);
            letter-spacing: -0.02em;
        }

        .sub-cal-header__sub {
            margin: 2px 0 0;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--cal-muted);
            line-height: 1.35;
        }

        .sub-cal-back {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: var(--cal-card);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--cal-ink);
            text-decoration: none;
            flex-shrink: 0;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        }

        [data-theme='dark'] .sub-cal-back {
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
        }

        .sub-cal-banner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 0 0 12px;
            padding: 10px 16px;
            background: var(--cal-card);
            border-radius: 14px;
            border: 1.5px solid var(--cal-border);
        }

        .sub-cal-banner__info {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }

        .sub-cal-banner__plan {
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--cal-ink);
        }

        .sub-cal-banner__dates {
            font-size: 0.6875rem;
            font-weight: 500;
            color: var(--cal-muted);
        }

        .sub-cal-banner__badge {
            flex-shrink: 0;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.6875rem;
            font-weight: 700;
        }

        .sub-cal-banner__badge--active {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .sub-cal-banner__badge--paused {
            background: #fff8e1;
            color: #f57f17;
        }

        .sub-cal-banner__badge--pending_payment {
            background: #fff3e0;
            color: #e65100;
        }

        .sub-cal-banner__badge--cancelled,
        .sub-cal-banner__badge--expired {
            background: #fce4ec;
            color: #c2185b;
        }

        [data-theme='dark'] .sub-cal-banner__badge--active {
            background: rgba(46, 125, 50, 0.2);
            color: #a5d6a7;
        }

        .sub-cal-banner__price-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0 0 12px;
            padding: 0 4px;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--cal-muted);
        }

        .sub-cal-banner__price-value {
            font-weight: 800;
            color: var(--cal-ink);
        }

        .sub-page--meal-calendar .sub-jump-today-btn {
            position: static;
            display: block;
            width: 100%;
            margin: 0 0 12px;
            border-radius: 14px;
            padding: 12px;
            text-align: center;
            cursor: pointer;
        }

        .sub-cal-empty {
            text-align: center;
            padding: 32px 16px;
            font-weight: 600;
            color: var(--cal-muted);
        }

        .sub-cal-shell {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .sub-cal-month-tabs {
            display: flex;
            gap: 8px;
            padding: 0 0 10px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .sub-cal-month-tabs::-webkit-scrollbar {
            display: none;
        }

        .sub-cal-month-tab {
            padding: 7px 18px;
            border-radius: 20px;
            background: var(--cal-card);
            border: 2px solid var(--cal-border);
            font-family: inherit;
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--cal-muted);
            white-space: nowrap;
            flex-shrink: 0;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

        .sub-cal-month-tab--active {
            background: var(--cal-accent);
            border-color: var(--cal-accent);
            color: #fff;
        }

        .sub-cal-week-wrap {
            padding: 0 0 12px;
        }

        .sub-cal-week-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            gap: 8px;
        }

        .sub-cal-week-label {
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--cal-ink);
        }

        .sub-cal-week-arrows {
            display: flex;
            gap: 6px;
        }

        .sub-cal-week-arrow {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: var(--cal-card);
            border: 1.5px solid var(--cal-border);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--cal-ink);
            transition: opacity 0.15s ease;
        }

        .sub-cal-week-arrow--disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }

        .sub-cal-week-days {
            display: flex;
            gap: 6px;
        }

        .sub-cal-week-day {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px 4px;
            border-radius: 12px;
            border: none;
            background: transparent;
            font-family: inherit;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .sub-cal-week-day:disabled {
            cursor: default;
            opacity: 0.45;
        }

        .sub-cal-week-day--muted {
            opacity: 0.35;
        }

        .sub-cal-week-day--out {
            opacity: 0.4;
        }

        .sub-cal-week-day--rest .sub-cal-week-day__num {
            color: #c5bfb8;
        }

        .sub-cal-week-day__name {
            font-size: 0.625rem;
            font-weight: 600;
            color: var(--cal-muted);
        }

        .sub-cal-week-day__num {
            font-size: 0.9375rem;
            font-weight: 800;
            color: var(--cal-ink);
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .sub-cal-week-day--today .sub-cal-week-day__num {
            background: rgba(232, 149, 26, 0.15);
            color: var(--cal-accent);
        }

        .sub-cal-week-day--active {
            background: var(--cal-accent);
        }

        .sub-cal-week-day--active .sub-cal-week-day__name {
            color: rgba(255, 255, 255, 0.82);
        }

        .sub-cal-week-day--active .sub-cal-week-day__num {
            color: #fff;
        }

        .sub-cal-week-day--active.sub-cal-week-day--today .sub-cal-week-day__num {
            background: rgba(255, 255, 255, 0.25);
            color: #fff;
        }

        .sub-cal-week-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--cal-accent);
        }

        .sub-cal-week-day--active .sub-cal-week-dot {
            background: rgba(255, 255, 255, 0.75);
        }

        .sub-cal-week-day--rest .sub-cal-week-dot {
            display: none;
        }

        .sub-cal-meals-scroll {
            padding: 0 0 24px;
            max-height: none;
        }

        .sub-cal-day-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 12px;
            gap: 10px;
        }

        .sub-cal-day-header__title {
            font-size: 1.0625rem;
            font-weight: 800;
            color: var(--cal-ink);
        }

        .sub-cal-day-header__sub {
            font-size: 0.75rem;
            color: var(--cal-muted);
            font-weight: 500;
            margin-top: 2px;
        }

        .sub-cal-day-off {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 14px;
            background: var(--cal-card);
            border-radius: 16px;
            border: 1.5px dashed var(--cal-border);
            margin-bottom: 10px;
        }

        .sub-cal-day-off__icon {
            font-size: 1.75rem;
            line-height: 1;
        }

        .sub-cal-day-off__title {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--cal-muted);
        }

        .sub-cal-day-off__text {
            font-size: 0.8125rem;
            color: var(--cal-muted);
            margin: 4px 0 0;
            font-weight: 500;
        }

        .sub-cal-meal-card {
            background: var(--cal-card);
            border-radius: 16px;
            margin-bottom: 10px;
            border: 1.5px solid var(--cal-border);
            overflow: hidden;
        }

        .sub-cal-meal-card__inner {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
        }

        .sub-cal-meal-thumb {
            width: 58px;
            height: 58px;
            border-radius: 12px;
            flex-shrink: 0;
            overflow: hidden;
            background: #f0eae2;
        }

        [data-theme='dark'] .sub-cal-meal-thumb {
            background: color-mix(in srgb, var(--card) 88%, var(--border));
        }

        .sub-cal-meal-thumb__ph {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.375rem;
            background: repeating-linear-gradient(
                45deg,
                #f0eae2 0,
                #f0eae2 4px,
                #eae2da 4px,
                #eae2da 8px
            );
        }

        .sub-cal-meal-info {
            flex: 1;
            min-width: 0;
        }

        .sub-cal-slot-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 6px;
            font-size: 0.625rem;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .sub-cal-slot-badge--breakfast {
            background: #fff3cd;
            color: #856404;
        }

        .sub-cal-slot-badge--lunch {
            background: #d4edda;
            color: #155724;
        }

        .sub-cal-slot-badge--dinner {
            background: #cce5ff;
            color: #004085;
        }

        .sub-cal-slot-badge--snacks {
            background: #f8d7da;
            color: #721c24;
        }

        .sub-cal-meal-name {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--cal-ink);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sub-cal-meal-meta {
            font-size: 0.75rem;
            color: var(--cal-muted);
            margin-top: 2px;
        }

        .sub-cal-meal-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
            flex-shrink: 0;
        }

        .sub-cal-btn-swap {
            padding: 6px 12px;
            border-radius: 8px;
            border: 1.5px solid var(--cal-accent);
            background: var(--cal-chip-bg);
            color: var(--cal-accent);
            font-family: inherit;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
        }

        .sub-cal-btn-skip {
            padding: 5px 10px;
            border-radius: 8px;
            border: 1.5px solid var(--cal-border);
            background: transparent;
            color: var(--cal-muted);
            font-family: inherit;
            font-size: 0.6875rem;
            font-weight: 600;
            cursor: pointer;
        }

        .sub-cal-meal-panel {
            padding: 0 14px 12px;
            border-top: 1px solid var(--cal-border);
        }

        .sub-cal-meal-panel__hint {
            font-size: 0.75rem;
            color: var(--cal-muted);
            margin: 10px 0 8px;
            font-weight: 500;
        }

        .sub-cal-panel-row {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            font-size: 0.8125rem;
            padding: 4px 0 8px;
        }

        .sub-cal-panel-row span:first-child {
            color: var(--cal-muted);
            font-weight: 600;
        }

        .sub-cal-meal-picker {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding-bottom: 4px;
        }

        .sub-cal-pick-btn {
            padding: 8px 12px;
            border-radius: 10px;
            border: 2px solid var(--cal-border);
            background: var(--cal-surface);
            font-size: 0.8125rem;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            color: var(--cal-ink);
        }

        .sub-cal-pick-btn--active {
            border-color: var(--cal-accent);
            background: var(--cal-chip-bg);
            color: var(--cal-accent);
        }

        .sub-action-btn--secondary {
            background: var(--secondary);
            color: var(--foreground);
            border: 1px solid var(--border);
        }

        .sub-action-btn--secondary:hover {
            background: var(--btn-secondary-bg);
        }

        .sub-action-btn--danger {
            background: transparent;
            color: #ef4444;
            border: 1px solid #fecaca;
        }

        .sub-action-btn--danger:hover {
            background: #fee2e2;
        }

        [data-theme="dark"] .sub-action-btn--danger {
            border-color: rgba(239, 68, 68, 0.35);
        }

        [data-theme="dark"] .sub-action-btn--danger:hover {
            background: rgba(239, 68, 68, 0.12);
        }

        .sub-month-title {
            font-size: 0.9375rem;
            font-weight: 800;
            color: var(--muted-foreground);
            margin: 20px 0 10px;
            padding: 0 4px;
        }

        .sub-detail-summary-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 12px 14px;
            margin-bottom: 12px;
            box-shadow: 0 1px 6px var(--shadow-color);
        }

        .sub-detail-summary-top {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 10px;
            margin-bottom: 8px;
        }

        .sub-detail-summary-dates {
            font-size: 0.8125rem;
            color: var(--muted-foreground);
            font-weight: 600;
        }

        .sub-detail-summary-price {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            padding-top: 8px;
            border-top: 1px solid var(--border);
            font-size: 0.875rem;
        }

        .sub-detail-summary-price-label {
            color: var(--muted-foreground);
            font-weight: 600;
        }

        .sub-detail-summary-price-value {
            font-weight: 800;
        }

        .sub-month-jump {
            display: flex;
            flex-wrap: nowrap;
            gap: 8px;
            overflow-x: auto;
            padding: 0 2px 12px;
            margin: 0 -4px 4px;
            scroll-snap-type: x proximity;
            -webkit-overflow-scrolling: touch;
        }

        .sub-month-jump-link {
            flex: 0 0 auto;
            scroll-snap-align: start;
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 700;
            text-decoration: none;
            color: var(--foreground);
            background: var(--card);
            border: 1px solid var(--border);
            box-shadow: 0 1px 4px var(--shadow-color);
            transition: background 0.15s ease, border-color 0.15s ease;
        }

        .sub-month-jump-link:hover {
            border-color: var(--primary);
            background: rgba(245, 166, 35, 0.08);
        }

        .sub-month-section {
            margin-bottom: 12px;
        }

        .sub-day-card {
            background: color-mix(in srgb, var(--card) 96%, var(--muted-foreground));
            border-radius: 14px;
            border: 1px solid var(--border);
            margin-bottom: 14px;
            overflow: hidden;
            box-shadow: 0 1px 5px var(--shadow-color);
        }

        [data-theme="dark"] .sub-day-card {
            background: color-mix(in srgb, var(--card) 94%, var(--muted-foreground));
        }

        .sub-day-card--past {
            opacity: 0.88;
        }

        [data-theme="dark"] .sub-day-card--past {
            opacity: 0.82;
        }

        .sub-day-card__header {
            padding: 12px 14px 8px;
            border-bottom: 1px solid var(--border);
            background: var(--card);
        }

        .sub-day-card__title {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin: 0;
            flex-wrap: wrap;
        }

        .sub-day-card__num {
            font-size: 1.75rem;
            font-weight: 900;
            line-height: 1;
            color: var(--foreground);
            letter-spacing: -0.02em;
        }

        .sub-day-card__meta {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .sub-day-card__weekday {
            font-size: 0.9375rem;
            font-weight: 800;
            color: var(--foreground);
        }

        .sub-day-card__month-short {
            font-size: 0.6875rem;
            font-weight: 700;
            color: var(--muted-foreground);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .sub-day-card__meals {
            padding: 8px 8px 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .sub-month-section-heading {
            position: sticky;
            top: 0;
            z-index: 2;
            margin: 0 0 8px;
            padding: 10px 12px;
            font-size: 0.8125rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            color: var(--foreground);
            background: color-mix(in srgb, var(--card) 92%, var(--muted-foreground));
            border-radius: 10px;
            border-inline-start: 3px solid var(--primary);
        }

        [data-theme="dark"] .sub-month-section-heading {
            background: color-mix(in srgb, var(--card) 88%, var(--muted-foreground));
        }

        .sub-status {
            display: inline-flex;
            align-items: center;
            padding: 3px 8px;
            border-radius: 999px;
            font-size: 0.6875rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .sub-status--active {
            background: rgba(34, 197, 94, 0.15);
            color: #15803d;
        }

        .sub-status--paused {
            background: rgba(245, 158, 11, 0.18);
            color: #b45309;
        }

        .sub-status--cancelled,
        .sub-status--expired {
            background: rgba(148, 163, 184, 0.2);
            color: var(--muted-foreground);
        }

        [data-theme="dark"] .sub-status--active {
            background: rgba(34, 197, 94, 0.2);
            color: #4ade80;
        }

        [data-theme="dark"] .sub-status--paused {
            background: rgba(245, 158, 11, 0.22);
            color: #fbbf24;
        }

        .sub-delivery-card {
            background: var(--card);
            border-radius: 12px;
            margin-bottom: 6px;
            overflow: hidden;
            box-shadow: 0 1px 4px var(--shadow-color);
        }

        .sub-delivery-card--in-day {
            margin-bottom: 0;
            border-radius: 10px;
            box-shadow: 0 1px 3px var(--shadow-color);
        }

        .sub-delivery-left--meal-only {
            flex: 1;
            min-width: 0;
            align-items: center;
        }

        .sub-delivery-slot-name {
            font-size: 0.9375rem;
            font-weight: 800;
            color: var(--foreground);
            letter-spacing: 0.01em;
        }

        .sub-delivery-row-bar {
            display: flex;
            align-items: stretch;
            min-height: 44px;
        }

        .sub-delivery-toggle {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border: none;
            background: transparent;
            cursor: pointer;
            text-align: start;
            font: inherit;
            color: inherit;
        }

        .sub-delivery-toggle--static {
            cursor: default;
        }

        .sub-delivery-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            flex: 1;
        }

        .sub-delivery-daynum {
            flex: 0 0 auto;
            width: 2rem;
            text-align: center;
            font-weight: 800;
            font-size: 1.0625rem;
            line-height: 1.1;
            color: var(--foreground);
        }

        .sub-delivery-meta-col {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }

        .sub-delivery-weekday {
            font-size: 0.6875rem;
            font-weight: 700;
            color: var(--muted-foreground);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .sub-delivery-right {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .sub-delivery-chevron {
            flex-shrink: 0;
            color: var(--muted-foreground);
            transition: transform 0.2s ease;
        }

        .sub-delivery-chevron.is-open {
            transform: rotate(180deg);
        }

        [dir="rtl"] .sub-delivery-chevron.is-open {
            transform: rotate(-180deg);
        }

        .sub-delivery-status {
            display: inline-flex;
            max-width: 9.5rem;
            padding: 4px 9px;
            border-radius: 999px;
            font-size: 0.625rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            line-height: 1.25;
            text-align: end;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sub-delivery-status--pending {
            background: rgba(251, 191, 36, 0.35);
            color: #92400e;
            border: 1px solid rgba(245, 158, 11, 0.45);
        }

        .sub-delivery-status--confirmed {
            background: rgba(59, 130, 246, 0.16);
            color: #1e40af;
            border: 1px solid rgba(59, 130, 246, 0.35);
        }

        .sub-delivery-status--skipped,
        .sub-delivery-status--missed {
            background: rgba(148, 163, 184, 0.28);
            color: #475569;
            border: 1px solid rgba(148, 163, 184, 0.4);
        }

        .sub-delivery-status--cancelled {
            background: rgba(148, 163, 184, 0.28);
            color: #475569;
            border: 1px solid rgba(148, 163, 184, 0.4);
        }

        [data-theme="dark"] .sub-delivery-status--cancelled {
            color: #cbd5e1;
        }

        .sub-delivery-status--delivered {
            background: rgba(34, 197, 94, 0.28);
            color: #14532d;
            border: 1px solid rgba(34, 197, 94, 0.45);
        }

        [data-theme="dark"] .sub-delivery-status--pending {
            color: #fcd34d;
            border-color: rgba(251, 191, 36, 0.35);
        }

        [data-theme="dark"] .sub-delivery-status--delivered {
            color: #86efac;
            border-color: rgba(34, 197, 94, 0.4);
        }

        [data-theme="dark"] .sub-delivery-status--confirmed {
            color: #93c5fd;
        }

        [data-theme="dark"] .sub-delivery-status--skipped,
        [data-theme="dark"] .sub-delivery-status--missed {
            color: #94a3b8;
        }

        .sub-delivery-skip-inline {
            flex: 0 0 auto;
            align-self: center;
            margin-inline-end: 6px;
            padding: 6px 8px;
            border: none;
            background: transparent;
            font: inherit;
            font-size: 0.6875rem;
            font-weight: 800;
            color: #ef4444;
            cursor: pointer;
            text-decoration: underline;
            text-underline-offset: 2px;
            white-space: nowrap;
        }

        .sub-delivery-skip-inline:hover {
            color: #dc2626;
        }

        [data-theme="dark"] .sub-delivery-skip-inline {
            color: #f87171;
        }

        .sub-delivery-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .sub-delivery-date {
            font-weight: 700;
            font-size: 0.9375rem;
        }

        .sub-delivery-slot {
            font-size: 0.75rem;
            color: var(--muted-foreground);
        }

        .sub-delivery-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
        }

        .sub-delivery-body {
            padding: 8px 10px 10px;
            border-top: 1px solid var(--border);
        }

        .sub-delivery-info-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            font-size: 0.8125rem;
            padding: 6px 0;
        }

        .sub-delivery-info-row span:first-child {
            color: var(--muted-foreground);
            font-weight: 600;
            flex-shrink: 0;
        }

        .sub-delivery-info-row span:last-child {
            text-align: end;
            font-weight: 600;
            word-break: break-word;
        }

        .sub-delivery-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.8125rem;
            padding: 8px 0;
        }

        .sub-delivery-row span:first-child {
            color: var(--muted-foreground);
            font-weight: 600;
        }

        .sub-meal-picker {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            padding: 8px 0;
        }

        .sub-meal-btn {
            padding: 8px 12px;
            border-radius: 10px;
            border: 2px solid var(--border);
            background: var(--card);
            color: var(--foreground);
            font-size: 0.8125rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .sub-meal-btn:hover {
            border-color: var(--primary);
        }

        .sub-meal-btn.active {
            background: rgba(245, 166, 35, 0.12);
            border-color: var(--primary);
            color: var(--primary);
        }

        .sub-meal-pick-btn {
            padding: 7px 11px;
            border-radius: 10px;
            border: 2px solid var(--border);
            background: var(--card);
            color: var(--foreground);
            font-size: 0.8125rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .sub-meal-pick-btn:hover {
            border-color: var(--primary);
        }

        .sub-meal-pick-btn.active {
            background: rgba(245, 166, 35, 0.12);
            border-color: var(--primary);
            color: var(--primary);
        }

        .sub-skip-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 10px;
            background: transparent;
            border: 1px solid #fecaca;
            color: #ef4444;
            font-size: 0.8125rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s ease;
            margin-top: 8px;
        }

        .sub-skip-btn:hover {
            background: #fee2e2;
        }

        [data-theme="dark"] .sub-skip-btn {
            border-color: rgba(239, 68, 68, 0.3);
        }

        [data-theme="dark"] .sub-skip-btn:hover {
            background: rgba(239, 68, 68, 0.12);
        }

        .sub-wallet-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            background: var(--card);
            border-radius: var(--radius);
            margin-bottom: 10px;
            box-shadow: 0 2px 10px var(--shadow-color);
        }

        .sub-wallet-label {
            font-weight: 700;
            font-size: 0.9375rem;
        }

        .sub-wallet-balance {
            font-weight: 800;
            font-size: 1.0625rem;
        }

        .sub-summary-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            background: var(--card);
            border-radius: var(--radius);
            margin-bottom: 10px;
            box-shadow: 0 2px 10px var(--shadow-color);
        }

        .sub-summary-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .sub-summary-name {
            font-weight: 800;
            font-size: 0.9375rem;
        }

        .sub-summary-period {
            font-size: 0.75rem;
            color: var(--muted-foreground);
        }

        .sub-submit-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 14px;
            border-radius: 14px;
            border: none;
            background: linear-gradient(135deg, var(--primary), #e89410);
            color: var(--primary-foreground);
            font-size: 1rem;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
            margin-top: 8px;
            box-shadow: 0 6px 20px rgba(245, 166, 35, 0.3);
        }

        .sub-submit-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 10px 28px rgba(245, 166, 35, 0.4);
        }

        .sub-submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* --- Custom plan wizard (Azeed redesign) --- */
        .sub-page--wizard {
            --wz-accent: #e8951a;
            --wz-surface: #faf6f0;
            --wz-border: #ede8e3;
            --wz-muted: #8e8896;
            --wz-ink: #1c1c1e;
            --wz-selected-bg: #fef5e7;
            --wz-card: #fff;

            display: flex;
            flex-direction: column;
            min-height: 100dvh;
            padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
            background: var(--wz-surface);
            max-width: 448px;
        }

        [data-theme="dark"] .sub-page--wizard {
            --wz-surface: var(--background);
            --wz-border: var(--border);
            --wz-muted: var(--muted-foreground);
            --wz-ink: var(--foreground);
            --wz-selected-bg: rgba(232, 149, 26, 0.14);
            --wz-card: var(--card);
        }

        .sub-page--wizard .sub-flash {
            flex-shrink: 0;
        }

        .sub-page-header--wizard {
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding: 4px 0 0;
            gap: 12px;
        }

        .sub-page-title--wizard {
            flex: 1;
            margin: 0;
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--wz-ink);
            letter-spacing: -0.02em;
        }

        .sub-page-back--wizard {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: var(--wz-card);
            color: var(--wz-ink);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
            flex-shrink: 0;
        }

        .sub-page-back--wizard:hover {
            background: var(--wz-card);
            filter: brightness(0.98);
        }

        [data-theme="dark"] .sub-page-back--wizard {
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
        }

        .sub-wallet-low {
            color: #b91c1c;
        }

        [data-theme="dark"] .sub-wallet-low {
            color: #fca5a5;
        }

        .sub-wizard-layout {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
        }

        .sub-wizard-progress {
            flex-shrink: 0;
            padding: 0 0 14px;
        }

        .sub-wizard-dots {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .sub-wizard-dot-seg {
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 0;
        }

        .sub-wizard-dot {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.6875rem;
            font-weight: 700;
            transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        }

        .sub-wizard-dot--pending {
            background: #e8e0d8;
            color: #aaa;
        }

        [data-theme="dark"] .sub-wizard-dot--pending {
            background: color-mix(in srgb, var(--card) 70%, var(--border));
            color: var(--muted-foreground);
        }

        .sub-wizard-dot--active {
            background: var(--wz-accent);
            color: #fff;
            box-shadow: 0 0 0 4px rgba(232, 149, 26, 0.22);
        }

        .sub-wizard-dot--done {
            background: var(--wz-accent);
            color: #fff;
        }

        .sub-wizard-dot-check {
            display: block;
        }

        .sub-wizard-dot-connector {
            flex: 1;
            height: 2px;
            margin-inline: 2px;
            background: #e8e0d8;
            border-radius: 1px;
            transition: background 0.2s ease;
        }

        [data-theme="dark"] .sub-wizard-dot-connector {
            background: var(--border);
        }

        .sub-wizard-dot-connector--done {
            background: var(--wz-accent);
        }

        .sub-wizard-progress__meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }

        .sub-wizard-progress__label {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--wz-muted);
        }

        .sub-wizard-progress__count {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--wz-accent);
            direction: ltr;
            unicode-bidi: isolate;
        }

        .sub-wizard-scroll {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding: 4px 0 12px;
            scrollbar-width: none;
        }

        .sub-wizard-scroll::-webkit-scrollbar {
            display: none;
        }

        .sub-wizard-step {
            margin-bottom: 8px;
        }

        .sub-wizard-heading {
            font-size: 1.375rem;
            font-weight: 800;
            color: var(--wz-ink);
            margin: 0 0 18px;
            letter-spacing: -0.02em;
        }

        .sub-wizard-fields {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .sub-wizard-fields--tight-top {
            margin-top: 16px;
        }

        .sub-wizard-fields-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        @media (max-width: 380px) {
            .sub-wizard-fields-row {
                grid-template-columns: 1fr;
            }
        }

        .sub-wizard-field-group {
            margin-bottom: 0;
        }

        .sub-wizard-field-label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #6e6875;
            margin-bottom: 6px;
        }

        [data-theme="dark"] .sub-wizard-field-label {
            color: var(--muted-foreground);
        }

        .sub-wizard-input,
        .sub-wizard-select,
        .sub-wizard-textarea {
            width: 100%;
            padding: 13px 16px;
            border: 1.5px solid var(--wz-border);
            border-radius: 14px;
            background: var(--wz-card);
            color: var(--wz-ink);
            font-size: 0.9375rem;
            font-family: inherit;
            transition: border-color 0.2s ease;
            box-sizing: border-box;
        }

        .sub-wizard-input:focus,
        .sub-wizard-select:focus,
        .sub-wizard-textarea:focus {
            outline: none;
            border-color: var(--wz-accent);
        }

        .sub-wizard-textarea {
            resize: vertical;
            min-height: 72px;
            line-height: 1.55;
        }

        .sub-wizard-textarea--fixed {
            min-height: 80px;
            resize: none;
        }

        .sub-wizard-select {
            appearance: none;
            -webkit-appearance: none;
            padding-inline-end: 40px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8896' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center left 14px;
        }

        [dir='rtl'] .sub-wizard-select {
            background-position: center right 14px;
        }

        .sub-wizard-chip-label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #6e6875;
            margin-bottom: 8px;
        }

        [data-theme="dark"] .sub-wizard-chip-label {
            color: var(--muted-foreground);
        }

        .sub-wizard-chip-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 18px;
        }

        .sub-wizard-chip {
            padding: 10px 20px;
            border-radius: 12px;
            background: var(--wz-card);
            border: 2px solid var(--wz-border);
            font-family: inherit;
            font-size: 0.9375rem;
            font-weight: 600;
            color: var(--wz-ink);
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
        }

        .sub-wizard-chip--selected {
            border-color: var(--wz-accent);
            background: var(--wz-selected-bg);
            color: var(--wz-accent);
        }

        .sub-wizard-option-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .sub-wizard-option-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
            padding: 16px 18px;
            border-radius: 16px;
            background: var(--wz-card);
            border: 2px solid var(--wz-border);
            cursor: pointer;
            font-family: inherit;
            text-align: start;
            transition: border-color 0.2s ease, background 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .sub-wizard-option-card--duration {
            padding-block: 14px;
        }

        .sub-wizard-option-card--selected {
            border-color: var(--wz-accent);
            background: var(--wz-selected-bg);
        }

        .sub-wizard-option-card__main {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .sub-wizard-option-card__icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f0ea;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        [data-theme="dark"] .sub-wizard-option-card__icon {
            background: color-mix(in srgb, var(--card) 85%, var(--border));
        }

        .sub-wizard-option-card--selected .sub-wizard-option-card__icon {
            background: rgba(232, 149, 26, 0.15);
        }

        .sub-wizard-option-card__text {
            font-size: 0.9375rem;
            font-weight: 600;
            color: var(--wz-ink);
        }

        .sub-wizard-option-radio {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid #d5cfc8;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        [data-theme="dark"] .sub-wizard-option-radio {
            border-color: var(--border);
        }

        .sub-wizard-option-radio--checked {
            border-color: var(--wz-accent);
            background: var(--wz-accent);
        }

        .sub-wizard-option-radio__inner {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #fff;
        }

        .sub-wizard-checkbox-pills {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .sub-wizard-checkbox-pill {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 11px 14px;
            border-radius: 12px;
            background: var(--wz-card);
            border: 2px solid var(--wz-border);
            font-family: inherit;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--wz-ink);
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .sub-wizard-checkbox-pill--checked {
            border-color: var(--wz-accent);
            background: var(--wz-selected-bg);
            color: var(--wz-accent);
        }

        .sub-wizard-check-box {
            width: 18px;
            height: 18px;
            border-radius: 6px;
            border: 2px solid #d5cfc8;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .sub-wizard-check-box--on {
            background: var(--wz-accent);
            border-color: var(--wz-accent);
        }

        .sub-wizard-check-icon {
            display: block;
        }

        .sub-wizard-mode-card {
            width: 100%;
            margin-bottom: 10px;
            padding: 0;
            border-radius: 16px;
            background: var(--wz-card);
            border: 2px solid var(--wz-border);
            transition: border-color 0.2s ease, background 0.2s ease;
            overflow: hidden;
        }

        .sub-wizard-mode-card--selected {
            border-color: var(--wz-accent);
            background: var(--wz-selected-bg);
        }

        .sub-wizard-mode-card__activate {
            width: 100%;
            padding: 18px;
            border: none;
            background: transparent;
            cursor: pointer;
            font: inherit;
            text-align: start;
            color: inherit;
            font-family: inherit;
            -webkit-tap-highlight-color: transparent;
        }

        .sub-wizard-mode-card__top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .sub-wizard-mode-card__title {
            display: block;
            font-size: 1rem;
            font-weight: 700;
            color: var(--wz-ink);
        }

        .sub-wizard-mode-card__desc {
            display: block;
            font-size: 0.8125rem;
            color: var(--wz-muted);
            margin-top: 4px;
            line-height: 1.45;
        }

        .sub-wizard-nutrition-fields {
            margin-top: 0;
            padding: 0 18px 18px;
        }

        .sub-wizard-section-divider {
            height: 1px;
            background: var(--wz-border);
            margin: 0 0 14px;
        }

        .sub-wizard-nutrition-row {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }

        .sub-wizard-nutrition-label {
            font-size: 0.8125rem;
            font-weight: 600;
            color: #6e6875;
        }

        [data-theme="dark"] .sub-wizard-nutrition-label {
            color: var(--muted-foreground);
        }

        .sub-wizard-nutrition-input {
            width: 80px;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1.5px solid var(--wz-border);
            background: var(--wz-card);
            color: var(--wz-ink);
            font-size: 0.9375rem;
            font-weight: 600;
            text-align: center;
            font-family: inherit;
        }

        .sub-wizard-nutrition-input:focus {
            outline: none;
            border-color: var(--wz-accent);
        }

        .sub-wizard-delivery-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .sub-wizard-delivery-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            padding: 20px 14px;
            border-radius: 18px;
            background: var(--wz-card);
            border: 2px solid var(--wz-border);
            cursor: pointer;
            font-family: inherit;
            transition: border-color 0.2s ease, background 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .sub-wizard-delivery-card--selected {
            border-color: var(--wz-accent);
            background: var(--wz-selected-bg);
        }

        .sub-wizard-delivery-card__icon {
            font-size: 2.25rem;
            line-height: 1;
        }

        .sub-wizard-delivery-card__title {
            font-size: 0.9375rem;
            font-weight: 700;
            color: var(--wz-ink);
            text-align: center;
        }

        .sub-wizard-delivery-card--selected .sub-wizard-delivery-card__title {
            color: var(--wz-accent);
        }

        .sub-wizard-delivery-card__sub {
            font-size: 0.75rem;
            color: var(--wz-muted);
            text-align: center;
            line-height: 1.45;
        }

        .sub-wizard-summary-card {
            background: var(--wz-card);
            border-radius: 18px;
            overflow: hidden;
            border: 1.5px solid var(--wz-border);
            margin-bottom: 14px;
        }

        .sub-wizard-summary-card__header {
            padding: 14px 18px;
            background: var(--wz-accent);
            font-size: 0.875rem;
            font-weight: 700;
            color: #fff;
        }

        .sub-wizard-summary-card__row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 13px 18px;
            border-bottom: 1px solid #f5f0ea;
        }

        [data-theme="dark"] .sub-wizard-summary-card__row {
            border-bottom-color: var(--border);
        }

        .sub-wizard-summary-card__row:last-of-type {
            border-bottom: none;
        }

        .sub-wizard-summary-card__key {
            font-size: 0.8125rem;
            color: var(--wz-muted);
            font-weight: 500;
        }

        .sub-wizard-summary-card__val {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--wz-ink);
            text-align: end;
        }

        .sub-wizard-summary-card__total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 18px;
            background: var(--wz-selected-bg);
        }

        .sub-wizard-summary-card__total-key {
            font-size: 1rem;
            font-weight: 800;
            color: var(--wz-ink);
        }

        .sub-wizard-summary-card__total-val {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--wz-accent);
        }

        .sub-wizard-summary-card__val .currency-wrapper,
        .sub-wizard-summary-card__total-val .currency-wrapper,
        .sub-wizard-balance-val .currency-wrapper {
            display: inline-flex;
            align-items: center;
        }

        .sub-wizard-summary-card__total-val .currency-symbol .price,
        .sub-wizard-summary-card__val .currency-symbol .price {
            font-weight: 800;
        }

        .sub-wizard-payment-label {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--wz-ink);
            margin-bottom: 10px;
        }

        .sub-wizard-payment-toggle {
            display: flex;
            gap: 8px;
            margin-bottom: 14px;
        }

        .sub-wizard-payment-option {
            flex: 1;
            padding: 13px;
            border-radius: 14px;
            background: var(--wz-card);
            border: 2px solid var(--wz-border);
            font-family: inherit;
            font-size: 0.875rem;
            font-weight: 700;
            color: #6e6875;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .sub-wizard-payment-option--selected {
            border-color: var(--wz-accent);
            background: var(--wz-selected-bg);
            color: var(--wz-accent);
        }

        .sub-wizard-balance-card {
            background: var(--wz-card);
            border-radius: 14px;
            border: 1.5px solid var(--wz-border);
            padding: 14px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .sub-wizard-balance-label {
            font-size: 0.8125rem;
            color: var(--wz-muted);
            font-weight: 500;
        }

        .sub-wizard-balance-val {
            font-size: 1rem;
            font-weight: 800;
            color: var(--wz-ink);
        }

        .sub-wizard-balance-note {
            font-size: 0.75rem;
            color: var(--wz-muted);
            background: #f5f0ea;
            padding: 10px 14px;
            border-radius: 10px;
            margin: 0 0 14px;
            line-height: 1.6;
            font-weight: 500;
        }

        [data-theme="dark"] .sub-wizard-balance-note {
            background: color-mix(in srgb, var(--card) 88%, var(--border));
        }

        .sub-wizard-flash-tight {
            margin-bottom: 12px;
        }

        .sub-wizard-footer {
            flex-shrink: 0;
            display: flex;
            flex-direction: row;
            gap: 10px;
            padding: 12px 0 0;
            margin-top: auto;
            border-top: 1px solid var(--wz-border);
            background: var(--wz-surface);
        }

        .sub-wizard-btn-primary {
            flex: 1;
            padding: 15px;
            border-radius: 16px;
            background: var(--wz-accent);
            border: none;
            font-family: inherit;
            font-size: 1rem;
            font-weight: 700;
            color: #fff;
            cursor: pointer;
            transition: transform 0.15s ease, opacity 0.15s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .sub-wizard-btn-primary:active:not(:disabled) {
            transform: scale(0.98);
            opacity: 0.92;
        }

        .sub-wizard-btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .sub-wizard-btn-secondary {
            padding: 15px 22px;
            border-radius: 16px;
            background: var(--wz-card);
            border: 2px solid var(--wz-border);
            font-family: inherit;
            font-size: 1rem;
            font-weight: 700;
            color: #6e6875;
            cursor: pointer;
            transition: transform 0.15s ease;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }

        [data-theme="dark"] .sub-wizard-btn-secondary {
            color: var(--muted-foreground);
        }

        .sub-wizard-btn-secondary:active {
            transform: scale(0.98);
        }

        .sub-wizard-submit-spinner {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sub-wizard-submit-spinner span {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.35);
            border-top-color: #fff;
            border-radius: 50%;
            animation: menu-push-spin 0.7s linear infinite;
        }

        .sub-guest-auth-hint {
            margin: 12px auto 0;
            padding: 0 12px;
            max-width: 22rem;
            font-size: 0.875rem;
            line-height: 1.55;
            color: var(--muted-foreground);
            font-weight: 600;
        }

        .sub-guest-auth-btn {
            width: auto !important;
            min-width: min(100%, 17.5rem);
            margin-top: 20px !important;
            padding: 14px 28px !important;
        }

        .menu-auth-root {
            position: relative;
        }

        .menu-auth-overlay {
            position: fixed;
            inset: 0;
            z-index: 12050;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            padding: 12px;
            padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
            background: rgba(15, 18, 28, 0.48);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        [data-theme="dark"] .menu-auth-overlay {
            background: rgba(0, 0, 0, 0.62);
        }

        @media (min-width: 480px) {
            .menu-auth-overlay {
                justify-content: center;
                padding: 24px;
            }
        }

        .menu-auth-panel {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 420px;
            max-height: min(92vh, 640px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.22);
            animation: menu-auth-panel-in 0.28s ease-out;
        }

        @media (min-width: 480px) {
            .menu-auth-panel {
                border-radius: var(--radius);
                box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
            }
        }

        @keyframes menu-auth-panel-in {
            from {
                opacity: 0;
                transform: translateY(16px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @media (min-width: 480px) {
            @keyframes menu-auth-panel-in {
                from {
                    opacity: 0;
                    transform: scale(0.96);
                }

                to {
                    opacity: 1;
                    transform: scale(1);
                }
            }
        }

        .menu-auth-panel__header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding: 18px 18px 12px;
            border-bottom: 1px solid var(--border);
        }

        .menu-auth-panel__title {
            margin: 0;
            font-size: 1.125rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--foreground);
            line-height: 1.3;
        }

        .menu-auth-panel__close {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 12px;
            background: var(--secondary);
            color: var(--foreground);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease;
        }

        .menu-auth-panel__close:hover {
            background: var(--btn-secondary-bg);
        }

        .menu-auth-panel__body {
            padding: 18px 18px 22px;
            overflow-y: auto;
        }

        .menu-auth-panel__lede {
            margin: 0 0 16px;
            font-size: 0.875rem;
            line-height: 1.55;
            color: var(--muted-foreground);
            font-weight: 600;
        }

        .menu-auth-panel__lede strong {
            color: var(--foreground);
            font-weight: 800;
        }

        .menu-auth-field {
            margin-bottom: 16px;
        }

        .menu-auth-label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--foreground);
        }

        .menu-auth-row {
            display: flex;
            align-items: stretch;
            gap: 0;
            border: 2px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            background: var(--card);
            transition: border-color 0.15s ease;
        }

        .menu-auth-row:focus-within {
            border-color: var(--primary);
        }

        .menu-auth-prefix {
            display: flex;
            align-items: center;
            padding: 0 12px;
            font-size: 0.875rem;
            font-weight: 800;
            color: var(--muted-foreground);
            background: var(--secondary);
            border-inline-end: 1px solid var(--border);
        }

        .menu-auth-input {
            flex: 1;
            min-width: 0;
            border: none;
            padding: 14px 14px;
            font-size: 1rem;
            font-weight: 600;
            font-family: inherit;
            background: transparent;
            color: var(--foreground);
        }

        .menu-auth-input:focus {
            outline: none;
        }

        .menu-auth-input--otp {
            display: block;
            width: 100%;
            box-sizing: border-box;
            border: 2px solid var(--border);
            border-radius: 12px;
            text-align: center;
            font-size: 1.375rem;
            letter-spacing: 0.35em;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            transition: border-color 0.15s ease;
        }

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

        .menu-auth-actions {
            margin-top: 8px;
        }

        .menu-auth-actions .sub-submit-btn {
            margin-top: 12px;
        }

        .menu-auth-btn-row {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .menu-auth-link {
            display: block;
            width: 100%;
            margin-top: 16px;
            padding: 12px;
            border: none;
            background: transparent;
            color: var(--primary);
            font-size: 0.875rem;
            font-weight: 800;
            cursor: pointer;
            font-family: inherit;
            text-align: center;
        }

        .menu-auth-link:hover {
            text-decoration: underline;
        }

        .menu-auth-spinner {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.35);
            border-top-color: #fff;
            border-radius: 50%;
            animation: menu-push-spin 0.7s linear infinite;
        }

        .sub-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .sub-list-card {
            display: block;
            text-decoration: none;
            color: var(--foreground);
            background: var(--card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: 0 1px 6px var(--shadow-color);
            border: 1px solid var(--border);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
            animation: fadeInUp 0.35s ease backwards;
        }

        .sub-list-card:nth-child(2) {
            animation-delay: 0.06s;
        }

        .sub-list-card:nth-child(3) {
            animation-delay: 0.12s;
        }

        .sub-list-card:hover {
            border-color: rgba(245, 166, 35, 0.45);
            box-shadow: 0 4px 16px var(--shadow-color);
        }

        .sub-list-card:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        .sub-list-card-inner {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            min-height: 4.5rem;
        }

        .sub-list-card-body {
            flex: 1;
            min-width: 0;
        }

        .sub-list-card-head {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 10px;
            margin-bottom: 6px;
        }

        .sub-list-name {
            margin: 0;
            font-weight: 800;
            font-size: 1rem;
            line-height: 1.25;
            color: var(--foreground);
        }

        .sub-list-dates {
            margin: 0 0 6px;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--muted-foreground);
            line-height: 1.35;
        }

        .sub-list-price-row {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 6px 10px;
        }

        .sub-list-price-label {
            font-size: 0.6875rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--muted-foreground);
        }

        .sub-list-card .sub-list-price-value,
        .sub-list-card .sub-list-price-value .currency-wrapper,
        .sub-list-card .sub-list-price-value .currency-symbol,
        .sub-list-card .sub-list-price-value .price {
            color: var(--foreground);
            font-weight: 800;
            font-size: 0.9375rem;
        }

        .sub-list-chevron-wrap {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 10px;
            background: rgba(245, 166, 35, 0.12);
            color: var(--primary);
        }

        .sub-list-card:hover .sub-list-chevron-wrap {
            background: rgba(245, 166, 35, 0.2);
        }

        .sub-list-chevron {
            display: block;
        }

        [dir="rtl"] .sub-list-chevron {
            transform: scaleX(-1);
        }

        .sub-list-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px;
        }

        .sub-list-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .sub-list-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }

        .sub-list-actions {
            display: flex;
            padding: 0 14px 14px;
        }

        .sub-list-link {
            flex: 1;
            text-align: center;
            padding: 10px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--primary), #e89410);
            color: var(--primary-foreground);
            font-weight: 700;
            font-size: 0.875rem;
            text-decoration: none;
            transition: box-shadow 0.2s ease;
        }

        .sub-list-link:hover {
            box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
        }

        /* ========================================
                   Subscription Calendar Detail
                   ======================================== */

        /* Header */
        .sub-cal-header {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            padding: 0;
            margin-bottom: 14px;
        }

        .sub-cal-back {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: var(--card);
            border: 1.5px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--foreground);
            text-decoration: none;
            transition: background 0.15s;
        }

        .sub-cal-back:hover { background: var(--muted); }

        .sub-cal-header-text { flex: 1; min-width: 0; }

        .sub-cal-header-title {
            font-size: 1.0625rem;
            font-weight: 800;
            color: var(--foreground);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sub-cal-header-sub {
            font-size: 0.75rem;
            color: var(--muted-foreground);
            font-weight: 500;
            margin-top: 1px;
        }

        /* Subscription banner */
        .sub-cal-banner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 11px 14px;
            background: var(--card);
            border-radius: 14px;
            border: 1.5px solid var(--border);
            margin-bottom: 12px;
        }

        .sub-cal-banner-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

        .sub-cal-banner-plan {
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--foreground);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sub-cal-banner-dates {
            font-size: 0.6875rem;
            color: var(--muted-foreground);
            font-weight: 500;
        }

        /* Month tabs */
        .sub-cal-month-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .sub-cal-month-tabs::-webkit-scrollbar { display: none; }

        .sub-cal-month-tab {
            flex-shrink: 0;
            padding: 6px 16px;
            border-radius: 20px;
            background: var(--card);
            border: 2px solid var(--border);
            font-family: inherit;
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--muted-foreground);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .sub-cal-month-tab.active,
        .sub-cal-month-tab[aria-selected="true"] {
            background: var(--primary);
            border-color: var(--primary);
            color: var(--primary-foreground);
        }

        /* Week strip */
        .sub-cal-week-strip {
            margin-bottom: 12px;
        }

        /* Override old sub-cal-week-days display so week rows stack correctly */
        .sub-page--cal .sub-cal-week-days {
            display: block;
        }

        .sub-cal-week-row {
            display: flex;
            gap: 4px;
            width: 100%;
        }

        .sub-cal-week-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .sub-cal-week-label {
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--foreground);
        }

        .sub-cal-week-arrows { display: flex; gap: 6px; }

        .sub-cal-week-arrow {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: var(--card);
            border: 1.5px solid var(--border);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--foreground);
            transition: background 0.15s;
        }

        .sub-cal-week-arrow:disabled {
            opacity: 0.35;
            cursor: default;
        }

        .sub-cal-week-arrow:not(:disabled):hover { background: var(--muted); }

        .sub-cal-day-btn {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            padding: 8px 2px;
            border-radius: 12px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-family: inherit;
            transition: background 0.2s;
        }

        .sub-cal-day-btn.active {
            background: var(--primary);
        }

        .sub-cal-day-btn.off {
            cursor: default;
            opacity: 0.4;
        }

        .sub-cal-day-name {
            font-size: 0.625rem;
            font-weight: 600;
            color: var(--muted-foreground);
        }

        .sub-cal-day-btn.active .sub-cal-day-name {
            color: rgba(255, 255, 255, 0.8);
        }

        .sub-cal-day-num {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 0.9375rem;
            font-weight: 800;
            color: var(--foreground);
        }

        .sub-cal-day-btn.active .sub-cal-day-num {
            color: #fff;
        }

        .sub-cal-day-btn.today:not(.active) .sub-cal-day-num {
            background: rgba(232, 149, 26, 0.15);
            color: var(--primary);
        }

        .sub-cal-day-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--primary);
        }

        .sub-cal-day-btn.active .sub-cal-day-dot {
            background: rgba(255, 255, 255, 0.7);
        }

        /* Content area */
        .sub-cal-content { padding-top: 4px; }

        /* Day header */
        .sub-cal-day-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .sub-cal-day-title {
            font-size: 1.0625rem;
            font-weight: 800;
            color: var(--foreground);
        }

        .sub-cal-day-sub {
            font-size: 0.75rem;
            color: var(--muted-foreground);
            font-weight: 500;
            margin-top: 2px;
        }

        .sub-cal-day-count {
            flex-shrink: 0;
            padding: 5px 11px;
            border-radius: 20px;
            background: rgba(232, 149, 26, 0.1);
            font-size: 0.6875rem;
            font-weight: 700;
            color: var(--primary);
            white-space: nowrap;
        }

        /* Meal card */
        .sub-cal-meal-card {
            background: var(--card);
            border-radius: 14px;
            border: 1.5px solid var(--border);
            overflow: hidden;
            margin-bottom: 10px;
        }

        .sub-cal-meal-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            padding: 12px 14px;
        }

        .sub-cal-meal-left { flex: 1; min-width: 0; }

        .sub-cal-badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 0.625rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .sub-cal-badge--breakfast { background: #FFF3CD; color: #856404; }
        .sub-cal-badge--lunch     { background: #D4EDDA; color: #155724; }
        .sub-cal-badge--dinner    { background: #CCE5FF; color: #004085; }
        .sub-cal-badge--snack     { background: #F8D7DA; color: #721C24; }

        [data-theme="dark"] .sub-cal-badge--breakfast { background: rgba(255, 193, 7, 0.18); color: #fcd34d; }
        [data-theme="dark"] .sub-cal-badge--lunch     { background: rgba(34, 197, 94, 0.15); color: #86efac; }
        [data-theme="dark"] .sub-cal-badge--dinner    { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
        [data-theme="dark"] .sub-cal-badge--snack     { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

        .sub-cal-meal-name {
            font-size: 0.9375rem;
            font-weight: 700;
            color: var(--foreground);
            margin-bottom: 2px;
        }

        .sub-cal-meal-cutoff {
            font-size: 0.6875rem;
            color: var(--muted-foreground);
            font-weight: 500;
            margin-top: 4px;
        }

        .sub-cal-meal-right { flex-shrink: 0; padding-top: 2px; }

        .sub-cal-meal-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px 12px;
            border-top: 1px solid var(--border);
        }

        .sub-cal-swap-btn {
            flex: 1;
            padding: 8px 14px;
            border-radius: 10px;
            border: 1.5px solid var(--primary);
            background: rgba(232, 149, 26, 0.08);
            color: var(--primary);
            font-family: inherit;
            font-size: 0.8125rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s;
            text-align: center;
        }

        .sub-cal-swap-btn:hover { background: rgba(232, 149, 26, 0.16); }
        .sub-cal-swap-btn:active { background: var(--primary); color: var(--primary-foreground); }

        .sub-cal-skip-btn {
            padding: 8px 12px;
            border-radius: 10px;
            border: 1.5px solid var(--border);
            background: transparent;
            color: var(--muted-foreground);
            font-family: inherit;
            font-size: 0.8125rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }

        .sub-cal-skip-btn:hover {
            border-color: #fecaca;
            color: #ef4444;
        }

        /* Rest day card */
        .sub-cal-rest-day {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px 14px;
            background: var(--card);
            border-radius: 14px;
            border: 1.5px dashed var(--border);
            margin-bottom: 14px;
        }

        .sub-cal-rest-icon { font-size: 1.75rem; }

        .sub-cal-rest-title {
            font-size: 0.9375rem;
            font-weight: 700;
            color: var(--muted-foreground);
        }

        .sub-cal-rest-sub {
            font-size: 0.8125rem;
            color: var(--muted-foreground);
            margin-top: 2px;
        }

        /* Week overview */
        .sub-cal-week-overview { margin-top: 6px; }

        .sub-cal-week-overview-header {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.6875rem;
            font-weight: 700;
            color: var(--muted-foreground);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin: 14px 0 10px;
        }

        .sub-cal-week-overview-line {
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        .sub-cal-other-day {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 11px 14px;
            background: var(--card);
            border-radius: 12px;
            border: 1.5px solid var(--border);
            margin-bottom: 7px;
            cursor: pointer;
            font-family: inherit;
            text-align: start;
            transition: border-color 0.15s;
        }

        .sub-cal-other-day:hover { border-color: var(--primary); }

        .sub-cal-other-day--off {
            cursor: default;
            opacity: 0.55;
        }

        .sub-cal-other-day--off:hover { border-color: var(--border); }

        .sub-cal-other-day-info { display: flex; flex-direction: column; gap: 2px; }

        .sub-cal-other-day-name {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--foreground);
        }

        .sub-cal-other-day-count {
            font-size: 0.75rem;
            color: var(--muted-foreground);
            font-weight: 500;
        }

        .sub-cal-other-day-arrow {
            color: var(--muted-foreground);
            flex-shrink: 0;
        }

        [dir="rtl"] .sub-cal-other-day-arrow {
            transform: scaleX(-1);
        }

        /* Swap modal */
        .sub-cal-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            display: flex;
            align-items: flex-end;
            z-index: 200;
        }

        .sub-cal-modal-sheet {
            width: 100%;
            max-width: 448px;
            margin: 0 auto;
            background: var(--background);
            border-radius: 24px 24px 0 0;
            padding: 16px 20px calc(env(safe-area-inset-bottom, 16px) + 16px);
            animation: subCalSlideUp 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes subCalSlideUp {
            from { transform: translateY(100%); }
            to   { transform: translateY(0); }
        }

        .sub-cal-modal-handle {
            width: 40px;
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            margin: 0 auto 16px;
        }

        .sub-cal-modal-title {
            font-size: 1.0625rem;
            font-weight: 800;
            color: var(--foreground);
            margin-bottom: 4px;
        }

        .sub-cal-modal-sub {
            font-size: 0.8125rem;
            color: var(--muted-foreground);
            margin-bottom: 14px;
        }

        .sub-cal-modal-empty {
            font-size: 0.8125rem;
            color: var(--muted-foreground);
            line-height: 1.5;
            margin: -6px 0 14px;
            padding: 10px 12px;
            border-radius: 10px;
            background: var(--secondary);
            border: 1px solid var(--border);
        }

        .sub-cal-alt-meals { display: flex; flex-direction: column; gap: 8px; }

        .sub-cal-alt-card {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 14px;
            background: var(--card);
            border-radius: 12px;
            border: 2px solid var(--border);
            cursor: pointer;
            font-family: inherit;
            text-align: start;
            transition: all 0.15s;
        }

        .sub-cal-alt-card:hover { border-color: var(--primary); }

        .sub-cal-alt-card.selected {
            border-color: var(--primary);
            background: rgba(232, 149, 26, 0.08);
        }

        .sub-cal-alt-info { flex: 1; min-width: 0; }

        .sub-cal-alt-name {
            font-size: 0.9375rem;
            font-weight: 700;
            color: var(--foreground);
        }

        .sub-cal-alt-check {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .sub-cal-modal-confirm {
            width: 100%;
            margin-top: 14px;
            padding: 15px;
            border-radius: 14px;
            background: var(--primary);
            border: none;
            font-family: inherit;
            font-size: 1rem;
            font-weight: 700;
            color: var(--primary-foreground);
            cursor: pointer;
            transition: opacity 0.15s;
        }

        .sub-cal-modal-confirm:disabled {
            opacity: 0.45;
            cursor: default;
        }

        /* =============================================
           DARK MODE — Coins & Rewards Components
           ============================================= */

        /* my-rewards page */
        [data-theme="dark"] .my-rewards-page {
            background: var(--background);
        }

        [data-theme="dark"] .my-rewards-page-header {
            background: var(--card);
            border-bottom-color: var(--border);
        }

        [data-theme="dark"] .my-rewards-page-title {
            color: var(--foreground);
        }

        [data-theme="dark"] .my-rewards-section-title {
            color: var(--foreground);
        }

        [data-theme="dark"] .my-rewards-reward-card {
            background: var(--card);
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] .my-rewards-reward-name {
            color: var(--foreground);
        }

        [data-theme="dark"] .my-rewards-reward-cost {
            color: var(--muted-foreground);
        }

        [data-theme="dark"] .my-rewards-soon-btn {
            background: rgba(255, 152, 0, 0.15);
        }

        [data-theme="dark"] .my-rewards-tx {
            background: var(--card);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        }

        [data-theme="dark"] .my-rewards-tx-label {
            color: var(--foreground);
        }

        [data-theme="dark"] .my-rewards-empty {
            color: var(--muted-foreground);
        }

        /* coins cart panel */
        [data-theme="dark"] .coins-panel {
            border-top-color: var(--border);
        }

        [data-theme="dark"] .coins-panel--building {
            background: var(--card);
        }

        [data-theme="dark"] .coins-panel--ready {
            background: linear-gradient(180deg, rgba(255, 152, 0, 0.12) 0%, var(--card) 60%);
        }

        [data-theme="dark"] .coins-panel--redeemed {
            background: linear-gradient(180deg, rgba(76, 175, 80, 0.12) 0%, var(--card) 60%);
        }

        [data-theme="dark"] .coins-icon-circle {
            background: rgba(255, 152, 0, 0.15);
        }

        [data-theme="dark"] .coins-icon-circle--green {
            background: rgba(76, 175, 80, 0.15);
        }

        [data-theme="dark"] .coins-panel-title {
            color: var(--foreground);
        }

        [data-theme="dark"] .coins-dot--empty {
            background: rgba(255, 152, 0, 0.18);
            border-color: rgba(255, 152, 0, 0.3);
        }

        [data-theme="dark"] .coins-reward-label {
            color: var(--muted-foreground);
        }

        [data-theme="dark"] .coins-reward-card {
            background: rgba(255, 152, 0, 0.1);
        }

        [data-theme="dark"] .coins-reward-name {
            color: var(--foreground);
        }

        [data-theme="dark"] .coins-reward-cost {
            color: var(--muted-foreground);
        }

        [data-theme="dark"] .coins-panel-footer-note {
            color: var(--muted-foreground);
        }

        /* coins modal (shared by cart panel and my-rewards page) */
        [data-theme="dark"] .coins-modal {
            background: var(--card);
        }

        [data-theme="dark"] .coins-modal-title {
            color: var(--foreground);
        }

        [data-theme="dark"] .coins-modal-body {
            color: var(--muted-foreground);
        }

        [data-theme="dark"] .coins-modal-cancel {
            background: var(--btn-secondary-bg);
            color: var(--muted-foreground);
            border-color: var(--border);
        }

        /* coins success banner (success page) */
        [data-theme="dark"] .coins-success-card--earned {
            background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.08));
        }

        [data-theme="dark"] .coins-success-card--unlocked {
            background: linear-gradient(135deg, rgba(255, 152, 0, 0.18), rgba(255, 152, 0, 0.1));
            box-shadow: 0 4px 20px rgba(255, 152, 0, 0.2);
        }

        [data-theme="dark"] .coins-success-balance {
            color: #ffb74d;
        }

        [data-theme="dark"] .coins-success-body {
            color: #ffb74d;
        }

        [data-theme="dark"] .coins-success-progress-text {
            color: #ffa726;
        }

        /* coins header pill */
        [data-theme="dark"] .coins-pill {
            background: rgba(255, 152, 0, 0.12);
            color: #ffa726;
            border-color: rgba(255, 152, 0, 0.5);
        }

        /* =========================================
           Stamp Card Section (loyalty card UI)
           ========================================= */
        .stamp-card-section {
            max-width: 448px;
            margin-inline: auto;
            padding: 0 24px 8px;
            position: relative;
            width: 100%;
            min-width: 0;
            overflow-x: clip;
        }

        .stamp-card {
            background: var(--card);
            border-radius: var(--radius, 14px);
            border: 1px solid var(--border);
            box-shadow: 0 1px 3px var(--shadow-color);
            overflow: hidden;
            transition: box-shadow 0.35s ease, transform 0.2s ease;
            max-width: 100%;
            min-width: 0;
        }

        .stamp-card--ready {
            animation: stamp-glow-card 2.2s ease-in-out infinite alternate;
        }

        @keyframes stamp-glow-card {
            from { box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 22%, transparent); }
            to   { box-shadow: 0 12px 44px color-mix(in srgb, var(--primary) 38%, transparent); }
        }

        .stamp-card-header {
            background: var(--card);
            padding: 10px 12px 9px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid var(--border);
        }

        .stamp-card-brand {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .stamp-card-emoji-icon {
            font-size: 22px;
            line-height: 1;
            flex-shrink: 0;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.10));
        }

        .stamp-card-name {
            font-weight: 700;
            font-size: clamp(0.8125rem, 3.6vw, 0.9375rem);
            color: var(--card-foreground);
            letter-spacing: -0.01em;
            line-height: 1.25;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .stamp-card-number {
            flex-shrink: 0;
            font-size: 0.6875rem;
            color: var(--muted-foreground);
            font-family: ui-monospace, 'SF Mono', Consolas, monospace;
            letter-spacing: 0.12em;
            font-weight: 600;
        }

        /* Stamp field — inherits card background */
        .stamp-card-body--field {
            background: transparent;
            padding: 10px 12px 6px;
            margin: 0;
            border-radius: 0;
            box-shadow: none;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }

        .stamp-card-body--celebrating {
            animation: stamp-field-pulse 1.8s ease-in-out infinite alternate;
        }

        @keyframes stamp-field-pulse {
            from { filter: brightness(1); }
            to   { filter: brightness(1.04); }
        }

        .stamp-card-ready-label {
            margin: 0 0 8px;
            text-align: center;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--primary);
            text-shadow: none;
        }

        .stamp-card-hint {
            margin: 6px 4px 0;
            text-align: center;
            font-size: 0.75rem;
            line-height: 1.3;
            font-weight: 600;
            color: var(--muted-foreground);
            text-shadow: none;
            overflow-wrap: break-word;
            word-break: break-word;
            max-width: 100%;
        }

        /* Progress pill: “3 / 8” centered below stamp grid */
        .stamp-progress-pill {
            display: flex;
            justify-content: center;
            margin-top: 8px;
        }

        .stamp-progress-pill__inner {
            background: color-mix(in srgb, var(--primary) 10%, var(--card));
            color: var(--primary);
            border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
            border-radius: 999px;
            padding: 3px 12px;
            font-size: 0.75rem;
            font-weight: 700;
            font-family: ui-monospace, 'SF Mono', Consolas, monospace;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.04em;
        }

        .stamp-slots--reference {
            display: grid;
            /* columns set via inline :style — just set gap and centering here */
            gap: clamp(4px, 1.5vw, 8px);
            justify-content: center;
            width: 100%;
            min-width: 0;
        }

        .stamp-slot--on-purple {
            width: clamp(36px, 11vw, 52px);
            height: clamp(36px, 11vw, 52px);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
            transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
            flex-shrink: 0;
            overflow: hidden;
        }

        .stamp-slot-emoji {
            font-size: clamp(1.1rem, 5vw, 1.55rem);
            line-height: 1;
            text-align: center;
        }

        @media (max-width: 360px) {
            .stamp-card-body--field {
                padding-inline: 10px;
            }
            .stamp-slot--on-purple {
                width: 34px;
                height: 34px;
            }
            .stamp-slot-emoji {
                font-size: 1.05rem;
            }
        }

        /* Empty = light gray dashed circle */
        .stamp-slot--on-purple.stamp-slot--empty {
            background: var(--surface, #f5f5f5);
            border: 1.5px dashed var(--border);
            box-shadow: none;
        }

        .stamp-slot--on-purple.stamp-slot--empty .stamp-slot-emoji {
            opacity: 0.18;
            filter: grayscale(0.4);
        }

        /* Filled = primary-color circle (earned) */
        .stamp-slot--on-purple.stamp-slot--filled {
            background: var(--primary);
            border: 1.5px solid transparent;
            box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 32%, transparent);
            animation: stamp-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        }

        .stamp-slot--on-purple.stamp-slot--filled .stamp-slot-emoji {
            opacity: 1;
        }

        .stamp-slot--just-earned {
            animation: stamp-pop 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
        }

        .stamp-slots--celebrating .stamp-slot--celebrating {
            animation: stamp-bounce 0.75s ease-in-out infinite alternate both;
        }

        @keyframes stamp-pop {
            0%   { transform: scale(0.72); opacity: 0.65; }
            70%  { transform: scale(1.06); }
            100% { transform: scale(1); opacity: 1; }
        }

        @keyframes stamp-bounce {
            0%   { transform: scale(1) translateY(0); }
            100% { transform: scale(1.08) translateY(-4px); }
        }

        .stamp-card-stats {
            background: var(--surface, #f9f9f9);
            padding: 8px 12px 7px;
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            justify-content: flex-start;
            gap: 4px 8px;
            border-top: 1px solid var(--border);
            font-size: 0.875rem;
            color: var(--muted-foreground);
            font-weight: 600;
        }

        .stamp-card-stats--guest {
            justify-content: flex-end;
        }

        .stamp-stat-primary {
            font-weight: 700;
            color: var(--foreground);
        }

        .stamp-digits {
            font-family: ui-monospace, 'SF Mono', Consolas, monospace;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.04em;
            font-size: 1em;
        }

        .stamp-digits--sm {
            font-size: 0.95em;
        }

        .stamp-stat-meta {
            font-size: 0.75rem;
            color: var(--muted-foreground);
            font-weight: 600;
        }

        .stamp-stat-dot {
            opacity: 0.45;
            margin-inline: 2px;
        }

        .stamp-card-login {
            background: var(--card);
            padding: 0 12px 10px;
            border-top: none;
        }

        .stamp-login-btn {
            width: 100%;
            padding: 9px 12px;
            border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--border));
            border-radius: 12px;
            background: transparent;
            color: var(--primary);
            font-size: 0.8125rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s;
        }

        .stamp-login-btn:hover {
            background: color-mix(in srgb, var(--primary) 6%, var(--card));
        }

        .stamp-card-claim {
            background: var(--card);
            padding: 10px 12px 12px;
            border-top: 1px solid var(--border);
        }

        .stamp-claim-btn {
            width: 100%;
            padding: 11px 14px;
            background: var(--primary);
            color: var(--primary-foreground);
            border: none;
            border-radius: 12px;
            font-size: 0.875rem;
            font-weight: 800;
            font-family: inherit;
            cursor: pointer;
            letter-spacing: 0.01em;
            box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent);
            transition: opacity 0.2s, transform 0.12s, box-shadow 0.2s;
        }

        .stamp-claim-btn:hover:not(:disabled) {
            opacity: 0.92;
            transform: translateY(-1px);
            box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 42%, transparent);
        }

        .stamp-claim-btn:active:not(:disabled) { transform: translateY(0); }
        .stamp-claim-btn:disabled { opacity: 0.55; cursor: not-allowed; }

        .stamp-variant-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 8px 24px 32px;
            overflow-y: auto;
        }

        .stamp-variant-btn {
            width: 100%;
            text-align: start;
            padding: 14px 16px;
            background: var(--card);
            color: var(--foreground);
            border: 1.5px solid var(--border);
            border-radius: 12px;
            font-size: 0.9375rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s, color 0.15s;
        }

        .stamp-variant-btn:hover {
            border-color: var(--primary);
            background: color-mix(in srgb, var(--primary) 8%, var(--card));
            color: var(--foreground);
        }

        .stamp-variant-btn:active {
            background: color-mix(in srgb, var(--primary) 16%, var(--card));
        }

        .stamp-error {
            color: #c62828;
            font-size: 0.75rem;
            margin-top: 8px;
            text-align: center;
            font-weight: 600;
        }

        .stamp-toast {
            position: fixed;
            bottom: 88px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary);
            color: var(--primary-foreground);
            padding: 12px 22px;
            border-radius: 999px;
            font-size: 0.875rem;
            font-weight: 700;
            z-index: 9998;
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
            max-width: calc(100vw - 32px);
            text-align: center;
            pointer-events: none;
        }

        [dir=”rtl”] .stamp-card-header { flex-direction: row-reverse; }
        [dir=”rtl”] .stamp-card-brand  { flex-direction: row-reverse; }
        [dir=”rtl”] .stamp-card-stats,
        [dir=”rtl”] .stamp-card-stats--guest { flex-direction: row-reverse; justify-content: flex-end; }

        [data-theme=”dark”] .stamp-card {
            background: var(--card);
            border-color: var(--border);
            box-shadow: 0 1px 6px var(--shadow-color);
        }

        [data-theme=”dark”] .stamp-card-header {
            background: var(--card);
            border-bottom-color: var(--border);
        }

        [data-theme=”dark”] .stamp-slot--on-purple.stamp-slot--empty {
            background: var(--surface);
            border-color: var(--border);
        }

        [data-theme=”dark”] .stamp-progress-pill__inner {
            background: color-mix(in srgb, var(--primary) 12%, var(--card));
            border-color: color-mix(in srgb, var(--primary) 35%, transparent);
        }

        [data-theme=”dark”] .stamp-card-stats {
            background: var(--surface);
            border-top-color: var(--border);
            color: var(--muted-foreground);
        }

        [data-theme=”dark”] .stamp-card-login,
        [data-theme=”dark”] .stamp-card-claim {
            background: var(--card);
            border-top-color: var(--border);
        }

        [data-theme=”dark”] .stamp-stat-primary { color: var(--foreground); }

        [data-theme=”dark”] .stamp-login-btn {
            background: transparent;
            color: var(--primary);
        }

        [data-theme=”dark”] .stamp-card-hint,
        [data-theme=”dark”] .stamp-card-ready-label {
            color: var(--primary);
        }
