        :root {
            --navy: #1F2937;
            --navy-light: #374151;
            --gold: #C9A961;
            --gold-dark: #A78847;
            --cream: #F9F7F4;
            --white: #FFFFFF;
            --gray: #6B7280;
            --gray-light: #E5E7EB;
            --success: #059669;
            --error: #DC2626;
            --summer-coral: #E89B7B;
            --summer-teal: #7AB8B8;
        }

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

        body {
            font-family: 'Lato', sans-serif;
            background: var(--cream);
            color: var(--navy);
            line-height: 1.6;
            overflow-x: hidden;
        }

        h1, h2, h3, h4 {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        /* Background Pattern */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.08) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }

        .container {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            z-index: 1;
        }

        /* Header */
        .header {
            text-align: center;
            padding: 20px 15px 25px;
            position: relative;
        }

        .header-top {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            margin-bottom: 15px;
            position: relative;
        }

        .menu-icon {
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            background: var(--cream);
            border-radius: 10px;
            padding: 8px;
            justify-self: start;
        }

        .menu-icon span {
            width: 24px;
            height: 2px;
            background: var(--navy);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .header-center {
            text-align: center;
        }

        .wallet-button {
            background: var(--cream);
            color: var(--navy);
            padding: 10px;
            border-radius: 10px;
            border: none;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
            font-family: 'Lato', sans-serif;
            white-space: nowrap;
            justify-self: end;
        }

        .wallet-button:hover {
            background: var(--gray-light);
            transform: translateY(-2px);
        }

        .wallet-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .wallet-text {
            display: none;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 4px;
            letter-spacing: 0.5px;
            line-height: 1.2;
        }

        .tagline {
            font-size: 14px;
            color: var(--gold);
            font-family: 'Playfair Display', serif;
            font-weight: 400;
            font-style: italic;
            letter-spacing: 0.5px;
            line-height: 1.2;
        }

        .summer-badge {
            display: inline-block;
            background: linear-gradient(135deg, var(--summer-coral), var(--gold));
            color: white;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            margin-top: 0;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
        }

        /* Desktop Header Styles */
        @media (min-width: 768px) {
            .header {
                padding: 40px 20px 30px;
            }

            .header-top {
                margin-bottom: 15px;
            }

            .summer-badge {
                margin-top: 15px;
            }

            .menu-icon {
                width: 44px;
                height: 44px;
                justify-self: start;
            }

            .wallet-button {
                padding: 10px 20px;
                background: var(--navy);
                color: white;
            }

            .wallet-button:hover {
                background: var(--navy-light);
            }

            .wallet-text {
                display: inline;
            }

            .logo {
                font-size: 42px;
                margin-bottom: 8px;
                letter-spacing: 1px;
            }

            .tagline {
                font-size: 24px;
                letter-spacing: 1px;
            }

            .summer-badge {
                padding: 8px 20px;
                font-size: 13px;
                margin-top: 15px;
            }
        }

        /* Sub Navigation */
        .sub-nav {
            background: white;
            box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 100;
            display: none;
            border-top: 1px solid var(--gray-light);
        }

        .sub-nav.visible {
            display: block;
        }

        .sub-nav-items {
            display: flex;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            padding-bottom: calc(12px + env(safe-area-inset-bottom)); /* iOS safe area */
            max-width: 600px;
            margin: 0 auto;
        }

        .sub-nav-item {
            flex: 1;
            padding: 12px 8px;
            background: var(--cream);
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            color: var(--navy);
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Lato', sans-serif;
            text-align: center;
            white-space: nowrap;
        }

        .sub-nav-item.active {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: white;
        }

        .sub-nav-item:hover {
            background: var(--gray-light);
        }

        .sub-nav-item.active:hover {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
        }

        /* Desktop: Sub-nav at top */
        @media (min-width: 768px) {
            .sub-nav {
                position: sticky;
                top: 0;
                bottom: auto;
                box-shadow: 0 2px 10px rgba(0,0,0,0.05);
                border-top: none;
                border-bottom: 1px solid var(--gray-light);
            }

            .sub-nav-items {
                padding: 15px 20px;
                gap: 8px;
            }

            .sub-nav-item {
                padding: 12px 20px;
                font-size: 14px;
            }
        }

        /* Sidebar Menu */
        .sidebar {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            height: 100vh;
            background: white;
            box-shadow: 2px 0 20px rgba(0,0,0,0.1);
            transition: left 0.3s ease;
            z-index: 1000;
            overflow-y: auto;
        }

        .sidebar.open {
            left: 0;
        }

        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            display: none;
            z-index: 999;
        }

        .sidebar-overlay.visible {
            display: block;
        }

        .sidebar-header {
            padding: 30px 20px;
            border-bottom: 1px solid var(--gray-light);
        }

        .sidebar-close {
            background: none;
            border: none;
            font-size: 28px;
            color: var(--navy);
            cursor: pointer;
            float: right;
            line-height: 1;
        }

        .sidebar-user {
            clear: both;
            padding-top: 10px;
        }

        .sidebar-user-name {
            font-size: 24px;
            font-family: 'Playfair Display', serif;
            color: var(--navy);
            margin-bottom: 5px;
        }

        .sidebar-user-email {
            font-size: 13px;
            color: var(--gray);
        }

        .sidebar-menu {
            padding: 20px 0;
        }

        .sidebar-menu-item {
            display: block;
            padding: 15px 25px;
            color: var(--navy);
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.2s ease;
            border-left: 4px solid transparent;
        }

        .sidebar-menu-item:hover {
            background: var(--cream);
            border-left-color: var(--gold);
        }

        .sidebar-menu-item.danger {
            color: var(--error);
            margin-top: 20px;
            border-top: 1px solid var(--gray-light);
            padding-top: 25px;
        }

        /* Page Container */
        .page {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .page.active {
            display: block;
        }

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

        /* Card Styles */
        .card {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 40px rgba(26, 35, 50, 0.1);
            max-width: 500px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--gold), var(--summer-coral), var(--summer-teal));
        }

        .card-title {
            font-size: 32px;
            color: var(--navy);
            margin-bottom: 10px;
            text-align: center;
        }

        .card-subtitle {
            font-size: 14px;
            color: var(--gray);
            text-align: center;
            margin-bottom: 30px;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--navy);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-input {
            width: 100%;
            padding: 14px 18px;
            border: 2px solid var(--gray-light);
            border-radius: 12px;
            font-size: 15px;
            font-family: 'Lato', sans-serif;
            transition: all 0.3s ease;
            background: var(--cream);
        }

        /* Select dropdown styling */
        select.form-input {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231F2937' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 18px center;
            padding-right: 45px;
        }

        select.form-input option {
            padding: 10px;
            background: white;
            color: var(--navy);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--gold);
            background: white;
            box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
        }

        .form-input.error {
            border-color: var(--error);
        }

        .form-input.success {
            border-color: var(--success);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 20px;
        }

        .checkbox-group input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .checkbox-group label {
            font-size: 13px;
            color: var(--gray);
            cursor: pointer;
        }

        /* Button Styles */
        .btn {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Lato', sans-serif;
            margin-top: 10px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: white;
            box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
        }

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

        .btn-secondary {
            background: transparent;
            color: var(--navy);
            border: 2px solid var(--gray-light);
        }

        .btn-secondary:hover {
            border-color: var(--gold);
            color: var(--gold);
        }

        /* Auth Switch Link */
        .auth-switch {
            text-align: center;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid var(--gray-light);
            font-size: 14px;
            color: var(--gray);
        }

        .auth-switch a {
            color: var(--gold);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .auth-switch a:hover {
            color: var(--gold-dark);
            text-decoration: underline;
        }

        /* Forgot Password Link */
        .forgot-password {
            text-align: right;
            margin-top: 8px;
        }

        .forgot-password a {
            color: var(--gold);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .forgot-password a:hover {
            color: var(--gold-dark);
            text-decoration: underline;
        }

        /* OTP Input */
        .otp-container {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin: 30px 0;
        }

        .otp-input {
            width: 50px;
            height: 60px;
            text-align: center;
            font-size: 24px;
            font-weight: 600;
            border: 2px solid var(--gray-light);
            border-radius: 12px;
            background: var(--cream);
            color: var(--navy);
            transition: all 0.3s ease;
        }

        .otp-input:focus {
            outline: none;
            border-color: var(--gold);
            background: white;
            box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
        }

        .resend-code {
            text-align: center;
            margin-top: 20px;
            font-size: 13px;
            color: var(--gray);
        }

        .resend-code a {
            color: var(--gold);
            text-decoration: none;
            font-weight: 600;
        }

        /* Journey Dashboard */
        .dashboard-header {
            text-align: center;
            padding: 40px 20px;
            background: white;
            border-radius: 20px;
            margin-bottom: 30px;
            box-shadow: 0 10px 40px rgba(26, 35, 50, 0.1);
        }

        .welcome-text {
            font-size: 18px;
            color: var(--gray);
            margin-bottom: 10px;
        }

        .user-name {
            font-size: 42px;
            color: var(--navy);
            margin-bottom: 20px;
        }

        .progress-section {
            max-width: 600px;
            margin: 30px auto;
        }

        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 14px;
            color: var(--gray);
            font-weight: 600;
        }

        .progress-bar {
            height: 12px;
            background: var(--gray-light);
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--gold), var(--summer-coral));
            border-radius: 10px;
            transition: width 0.6s ease;
            position: relative;
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Promotion Banner */
        .promotion-banner {
            background: linear-gradient(135deg, var(--gold), var(--summer-coral));
            border-radius: 20px;
            padding: 25px 30px;
            margin: 25px 0;
            display: flex;
            align-items: center;
            gap: 20px;
            box-shadow: 0 8px 30px rgba(201, 169, 97, 0.3);
            animation: subtle-pulse 3s ease-in-out infinite;
        }

        @keyframes subtle-pulse {
            0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(201, 169, 97, 0.3); }
            50% { transform: scale(1.02); box-shadow: 0 12px 40px rgba(201, 169, 97, 0.4); }
        }

        .promotion-icon {
            font-size: 48px;
            flex-shrink: 0;
            animation: bounce 2s ease-in-out infinite;
        }

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

        .promotion-content {
            flex: 1;
            color: white;
        }

        .promotion-title {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 700;
            margin-bottom: 5px;
            opacity: 0.9;
            font-family: 'Lato', sans-serif;
        }

        .promotion-amount {
            font-size: 36px;
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 5px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .promotion-text {
            font-size: 14px;
            opacity: 0.95;
            font-family: 'Lato', sans-serif;
        }

        /* Journey Reward Earned Banner */
        .journey-reward-earned {
            background: linear-gradient(135deg, #1a472a, #2d5a3d);
            border: 2px solid var(--gold);
            border-radius: 20px;
            padding: 25px 30px;
            margin: 25px 0;
            display: flex;
            align-items: center;
            gap: 20px;
            box-shadow: 0 8px 30px rgba(201, 169, 97, 0.4);
            animation: reward-glow 2s ease-in-out infinite;
        }

        @keyframes reward-glow {
            0%, 100% { box-shadow: 0 8px 30px rgba(201, 169, 97, 0.4); }
            50% { box-shadow: 0 12px 40px rgba(201, 169, 97, 0.6); }
        }

        .journey-reward-icon {
            font-size: 48px;
            flex-shrink: 0;
            animation: celebrate-spin 4s ease-in-out infinite;
        }

        @keyframes celebrate-spin {
            0%, 100% { transform: rotate(0deg) scale(1); }
            25% { transform: rotate(-15deg) scale(1.1); }
            75% { transform: rotate(15deg) scale(1.1); }
        }

        .journey-reward-content {
            flex: 1;
            color: white;
        }

        .journey-reward-title {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 700;
            margin-bottom: 5px;
            color: var(--gold);
            font-family: 'Lato', sans-serif;
        }

        .journey-reward-amount {
            font-size: 32px;
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 8px;
            background: linear-gradient(135deg, var(--gold), var(--summer-coral));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .journey-reward-text {
            font-size: 14px;
            opacity: 0.95;
            font-family: 'Lato', sans-serif;
        }

        @media (max-width: 480px) {
            .promotion-banner {
                padding: 20px;
                gap: 15px;
            }

            .promotion-icon {
                font-size: 36px;
            }

            .promotion-amount {
                font-size: 28px;
            }

            .promotion-text {
                font-size: 13px;
            }
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 30px;
        }

        .stat-card {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            color: white;
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .stat-number {
            font-size: 42px;
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            color: var(--gold);
            margin-bottom: 8px;
            line-height: 1;
        }

        .stat-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.8;
            font-family: 'Lato', sans-serif;
        }

        /* Stamp Collection Journey */
        .stamp-book {
            background: white;
            border-radius: 20px;
            padding: 30px 20px;
            box-shadow: 0 8px 30px rgba(26, 35, 50, 0.1);
            margin-top: 20px;
        }

        .stamp-book-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .stamp-book-title {
            font-size: 28px;
            color: var(--navy);
            margin-bottom: 10px;
        }

        .milestone-badge {
            display: inline-block;
            background: linear-gradient(135deg, var(--summer-coral), var(--gold));
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            margin-top: 10px;
        }

        /* Stamp Card - Horizontal Design */
        .stamp-card {
            background: var(--cream);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 15px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .stamp-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 6px;
            height: 100%;
            background: var(--gray-light);
            transition: all 0.3s ease;
        }

        .stamp-card.visited::before {
            background: linear-gradient(180deg, var(--gold), var(--summer-coral));
        }

        .stamp-card.visited {
            background: white;
        }

        .stamp-card:active {
            transform: scale(0.98);
        }

        .stamp-card-inner {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .stamp-icon {
            width: 80px;
            height: 80px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            flex-shrink: 0;
            border: 3px dashed var(--gray-light);
            transition: all 0.4s ease;
            position: relative;
        }

        .stamp-card.visited .stamp-icon {
            border: 3px solid var(--gold);
            background: linear-gradient(135deg, #FFF9F0, white);
            transform: rotate(-5deg);
        }

        .stamp-icon.locked::after {
            content: '🔒';
            position: absolute;
            font-size: 24px;
        }

        .stamp-icon.unlocked::after {
            content: '✓';
            position: absolute;
            font-size: 30px;
            color: var(--gold);
            font-weight: bold;
            animation: stampPop 0.5s ease;
        }

        @keyframes stampPop {
            0% { transform: scale(0) rotate(-180deg); opacity: 0; }
            50% { transform: scale(1.3) rotate(10deg); }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }

        .stamp-details {
            flex: 1;
        }

        .stamp-restaurant {
            font-size: 20px;
            font-weight: 600;
            color: var(--navy);
            margin-bottom: 4px;
            font-family: 'Playfair Display', serif;
        }

        .stamp-type {
            font-size: 12px;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
        }

        .stamp-location {
            font-size: 13px;
            color: var(--gray);
        }

        .stamp-status {
            text-align: right;
            flex-shrink: 0;
        }

        .stamp-status-badge {
            padding: 6px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stamp-status-badge.pending {
            background: var(--gray-light);
            color: var(--gray);
        }

        .stamp-status-badge.visited {
            background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.1));
            color: var(--gold-dark);
        }

        .tap-hint {
            margin-top: 8px;
            font-size: 11px;
            color: var(--gray);
            opacity: 0.8;
        }

        /* Celebration Overlay */
        .celebration {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(26, 35, 50, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            animation: fadeIn 0.3s ease;
        }

        .celebration.active {
            display: flex;
        }

        .celebration-content {
            text-align: center;
            color: white;
            animation: celebrationBounce 0.6s ease;
        }

        @keyframes celebrationBounce {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); opacity: 1; }
        }

        .celebration-emoji {
            font-size: 100px;
            margin-bottom: 20px;
            animation: spin 0.8s ease;
        }

        @keyframes spin {
            0% { transform: rotate(0deg) scale(0); }
            50% { transform: rotate(180deg) scale(1.2); }
            100% { transform: rotate(360deg) scale(1); }
        }

        .celebration-title {
            font-size: 42px;
            font-family: 'Playfair Display', serif;
            margin-bottom: 10px;
        }

        .celebration-text {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 30px;
            font-family: 'Lato', sans-serif;
        }

        .celebration-close {
            padding: 16px 40px;
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            border: none;
            border-radius: 25px;
            color: white;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Confetti */
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            background: var(--gold);
            position: absolute;
            animation: confettiFall 3s ease-out forwards;
            z-index: 1001;
        }

        @keyframes confettiFall {
            0% {
                transform: translateY(-100vh) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* Location Toggle */
        .location-toggle {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 30px 0;
        }

        .location-btn {
            padding: 12px 30px;
            border: 2px solid var(--gray-light);
            background: white;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--navy);
        }

        .location-btn.active {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: white;
            border-color: var(--gold);
            box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
        }

        /* Reward Badge */
        .reward-badge {
            background: linear-gradient(135deg, var(--summer-coral), var(--gold));
            color: white;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            margin: 30px 0;
            box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
        }

        .reward-badge h3 {
            font-size: 24px;
            margin-bottom: 8px;
        }

        .reward-badge p {
            font-size: 14px;
            opacity: 0.9;
        }

        /* Card Link */
        .card-link-display {
            background: var(--cream);
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
            border: 2px dashed var(--gold);
        }

        .card-number {
            font-size: 24px;
            font-family: 'Courier New', monospace;
            font-weight: 700;
            color: var(--navy);
            text-align: center;
            letter-spacing: 2px;
        }

        /* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(31, 41, 55, 0.8);
            backdrop-filter: blur(4px);
        }

        .modal-content {
            position: relative;
            z-index: 10001;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideUp 0.3s ease;
        }

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

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 32px;
            color: var(--gray);
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .modal-close:hover {
            background: var(--cream);
            color: var(--navy);
            transform: rotate(90deg);
        }

        /* Completion Modal */
        .completion-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .completion-icon {
            font-size: 80px;
            animation: celebration-bounce 0.6s ease-out;
        }

        @keyframes celebration-bounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        .coupon-reward {
            background: linear-gradient(135deg, var(--gold), var(--summer-coral));
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .coupon-reward::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: repeating-linear-gradient(
                45deg,
                transparent,
                transparent 10px,
                rgba(255,255,255,0.05) 10px,
                rgba(255,255,255,0.05) 20px
            );
            animation: shimmer-bg 20s linear infinite;
        }

        @keyframes shimmer-bg {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50%, 50%); }
        }

        .coupon-badge {
            display: inline-block;
            background: rgba(255,255,255,0.3);
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 2px;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
        }

        .coupon-amount {
            font-size: 56px;
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 10px;
            text-shadow: 0 4px 20px rgba(0,0,0,0.2);
            position: relative;
            z-index: 1;
        }

        .coupon-description {
            font-size: 16px;
            margin-bottom: 25px;
            opacity: 0.95;
            position: relative;
            z-index: 1;
        }

        .coupon-code-section {
            background: white;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        .coupon-label {
            color: var(--gray);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .coupon-code {
            font-size: 32px;
            font-family: 'Courier New', monospace;
            font-weight: 700;
            color: var(--navy);
            letter-spacing: 4px;
            padding: 10px;
            background: var(--cream);
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .coupon-expiry {
            color: var(--gray);
            font-size: 13px;
            font-style: italic;
        }

        .coupon-instructions {
            font-size: 14px;
            opacity: 0.9;
            position: relative;
            z-index: 1;
        }

        /* Rewards Sub-page */
        .reward-card {
            background: linear-gradient(135deg, var(--gold), var(--summer-coral));
            border-radius: 20px;
            padding: 40px;
            color: white;
            text-align: center;
            margin-bottom: 20px;
            box-shadow: 0 10px 40px rgba(201, 169, 97, 0.3);
        }

        .reward-title {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 15px;
            opacity: 0.9;
        }

        .reward-amount {
            font-size: 64px;
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 15px;
            text-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }

        .reward-subtitle {
            font-size: 16px;
            margin-bottom: 30px;
            opacity: 0.95;
        }

        .reward-code-box {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .reward-code-label {
            color: var(--gray);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .reward-code-display {
            font-size: 36px;
            font-family: 'Courier New', monospace;
            font-weight: 700;
            color: var(--navy);
            letter-spacing: 6px;
            padding: 15px;
            background: var(--cream);
            border-radius: 10px;
            margin-bottom: 12px;
        }

        .reward-expiry-text {
            color: var(--gray);
            font-size: 14px;
            font-style: italic;
        }

        .reward-instructions {
            font-size: 15px;
            line-height: 1.6;
            opacity: 0.95;
        }

        /* Rewards counter header */
        .rewards-counter {
            display: flex;
            align-items: center;
            gap: 12px;
            background: white;
            border-radius: 16px;
            padding: 18px 22px;
            margin-bottom: 20px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        }

        .rewards-counter-badge {
            width: 48px;
            height: 48px;
            flex-shrink: 0;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--gold), var(--summer-coral));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Playfair Display', serif;
            font-size: 22px;
            font-weight: 700;
        }

        .rewards-counter-text {
            display: flex;
            flex-direction: column;
        }

        .rewards-counter-title {
            font-family: 'Playfair Display', serif;
            font-size: 18px;
            color: var(--navy);
            font-weight: 700;
        }

        .rewards-counter-sub {
            font-size: 13px;
            color: var(--gray);
        }

        /* Fine-print legal terms inside a reward card */
        .reward-terms {
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            font-size: 11px;
            line-height: 1.5;
            opacity: 0.9;
            text-align: left;
        }

        .reward-terms strong {
            font-weight: 700;
        }

        .no-reward-message {
            text-align: center;
            padding: 60px 20px;
            color: var(--gray);
        }

        .no-reward-message .icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .no-reward-message h3 {
            font-family: 'Playfair Display', serif;
            font-size: 24px;
            color: var(--navy);
            margin-bottom: 10px;
        }

        .no-reward-message p {
            font-size: 15px;
            line-height: 1.6;
        }

        @media (max-width: 480px) {
            .coupon-amount {
                font-size: 48px;
            }

            .coupon-code {
                font-size: 24px;
                letter-spacing: 2px;
            }

            .reward-amount {
                font-size: 52px;
            }

            .reward-code-display {
                font-size: 28px;
                letter-spacing: 3px;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .logo {
                font-size: 36px;
            }

            .tagline {
                font-size: 14px;
            }

            .card {
                padding: 30px 20px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .stats-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }

            .user-name {
                font-size: 32px;
            }

            .otp-input {
                width: 45px;
                height: 55px;
                font-size: 20px;
            }

            .dashboard-header {
                padding: 30px 15px;
            }

            .stat-card {
                padding: 15px;
            }

            .stat-number {
                font-size: 36px;
            }

            .stat-label {
                font-size: 10px;
            }

            .stamp-card {
                padding: 18px;
            }

            .stamp-icon {
                width: 70px;
                height: 70px;
                font-size: 35px;
            }

            .stamp-restaurant {
                font-size: 18px;
            }

            .stamp-card-inner {
                gap: 15px;
            }

            .location-btn {
                padding: 10px 20px;
                font-size: 13px;
            }

            .celebration-emoji {
                font-size: 80px;
            }

            .celebration-title {
                font-size: 36px;
            }

            .celebration-text {
                font-size: 16px;
                padding: 0 20px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 15px;
            }

            .logo {
                font-size: 32px;
            }

            .header {
                padding: 30px 15px;
            }

            .card {
                padding: 25px 15px;
                border-radius: 16px;
            }

            .card-title {
                font-size: 28px;
            }

            .stamp-book {
                padding: 20px 15px;
            }

            .stats-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }

            .stat-card {
                padding: 12px;
            }

            .stat-number {
                font-size: 28px;
            }

            .stat-label {
                font-size: 9px;
            }

            .stamp-card {
                padding: 15px;
                margin-bottom: 12px;
            }

            .stamp-icon {
                width: 65px;
                height: 65px;
                font-size: 32px;
            }

            .stamp-restaurant {
                font-size: 17px;
            }

            .stamp-type {
                font-size: 11px;
            }

            .stamp-location {
                font-size: 12px;
            }

            .stamp-card-inner {
                gap: 12px;
            }

            .location-toggle {
                gap: 10px;
            }

            .progress-section {
                padding: 0 10px;
            }
        }

        /* Success Message */
        .success-message {
            background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.05));
            color: var(--success);
            padding: 12px 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            border: 1px solid var(--success);
        }

        .error-message {
            background: rgba(220, 38, 38, 0.1);
            color: var(--error);
            padding: 12px 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            border: 1px solid var(--error);
        }

        /* Helper Text */
        .helper-text {
            font-size: 12px;
            color: var(--gray);
            margin-top: 5px;
        }

        .helper-text.error {
            color: var(--error);
        }

        /* Link Cards Page */
        .linked-cards-container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }

        .section-title {
            font-size: 28px;
            font-family: 'Playfair Display', serif;
            color: var(--navy);
            margin-bottom: 20px;
        }

        .linked-card-item {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .linked-card-info {
            flex: 1;
        }

        .linked-card-number {
            font-size: 18px;
            font-weight: 600;
            color: var(--navy);
            font-family: 'Courier New', monospace;
            margin-bottom: 5px;
        }

        .linked-card-label {
            font-size: 12px;
            color: var(--gray);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .linked-card-actions {
            display: flex;
            gap: 10px;
        }

        .btn-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: var(--cream);
            color: var(--navy);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .btn-icon:hover {
            background: var(--gray-light);
        }

        .btn-icon.danger {
            color: var(--error);
        }

        .btn-danger {
            background: #dc2626;
            color: white;
            border: none;
        }

        .btn-danger:hover {
            background: #b91c1c;
        }

        .add-card-button {
            width: 100%;
            padding: 20px;
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: white;
            border: none;
            border-radius: 16px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
            margin-top: 20px;
        }

        .add-card-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
        }

        /* QR Code Page */
        .qr-container {
            max-width: 400px;
            margin: 40px auto;
            text-align: center;
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        }

        .qr-code-display {
            width: 250px;
            height: 250px;
            margin: 30px auto;
            background: var(--cream);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .qr-code-display canvas {
            border-radius: 12px;
        }

        /* Card Token Display */
        .card-token-display {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            padding: 50px 40px;
            border-radius: 20px;
            margin: 30px auto;
            max-width: 400px;
            box-shadow: 0 10px 40px rgba(31, 41, 55, 0.2);
        }

        .token-label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--gold);
            font-weight: 600;
            margin-bottom: 20px;
            font-family: 'Lato', sans-serif;
        }

        .token-number {
            font-size: 42px;
            font-family: 'Courier New', monospace;
            font-weight: 700;
            color: white;
            letter-spacing: 8px;
            line-height: 1.3;
            text-align: center;
        }

        @media (max-width: 480px) {
            .token-number {
                font-size: 32px;
                letter-spacing: 4px;
            }
        }

        /* History Page */
        .history-container {
            max-width: 700px;
            margin: 0 auto;
            padding: 20px;
        }

        .history-item {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }

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

        .history-restaurant {
            font-size: 20px;
            font-family: 'Playfair Display', serif;
            color: var(--navy);
            margin-bottom: 4px;
        }

        .history-date {
            font-size: 13px;
            color: var(--gray);
        }

        .history-badge {
            padding: 6px 12px;
            background: linear-gradient(135deg, rgba(201, 169, 97, 0.2), rgba(201, 169, 97, 0.1));
            color: var(--gold-dark);
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .history-details {
            font-size: 14px;
            color: var(--gray);
            line-height: 1.6;
        }

        /* Sub-pages within Dashboard */
        /* Dashboard Page */
        #dashboard-page {
            padding-bottom: 80px; /* Space for bottom nav on mobile */
        }

        @media (min-width: 768px) {
            #dashboard-page {
                padding-bottom: 20px; /* Normal padding on desktop */
            }
        }

        .sub-page {
            display: none;
        }

        .sub-page.active {
            display: block;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--gray);
        }

        .empty-state-icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.3;
        }

        /* Loading spinner (used during API calls) */
        .btn.loading {
            position: relative;
            color: transparent !important;
            pointer-events: none;
        }

        .btn.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            margin: -10px 0 0 -10px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-top-color: #fff;
            border-radius: 50%;
            animation: btn-spin 0.7s linear infinite;
        }

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

        .loading-inline {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray);
            font-size: 14px;
        }

        .loading-inline::before {
            content: '';
            display: block;
            width: 32px;
            height: 32px;
            margin: 0 auto 16px;
            border: 3px solid var(--gray-light);
            border-top-color: var(--gold);
            border-radius: 50%;
            animation: btn-spin 0.8s linear infinite;
        }

        /* Toast notifications for errors / success */
        .toast {
            position: fixed;
            bottom: 90px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: var(--navy);
            color: white;
            padding: 14px 22px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
            z-index: 20000;
            opacity: 0;
            transition: all 0.3s ease;
            max-width: 90%;
            text-align: center;
        }

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

        .toast.error {
            background: var(--error);
        }

        .toast.success {
            background: var(--success);
        }

        .empty-state-text {
            font-size: 16px;
            margin-bottom: 10px;
        }
