        /* Home page layout */
        .home-container {
            min-height: 100vh;
            padding: var(--space-sm);
            padding-top: 48px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            max-width: 500px;
            margin: 0 auto;
        }

        /* Text shadows for readability against backgrounds */
        .home-container, .home-container * {
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
        }

        .logo {
            font-size: 3rem;
            margin-bottom: 4px;
            text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
        }

        h1 {
            text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
        }

        .tagline {
            font-size: 1.1rem;
            margin-bottom: var(--space-sm);
            text-align: center;
            color: var(--text-muted);
            font-style: italic;
        }

        /* Daily quote */
        .daily-quote {
            text-align: center;
            margin-bottom: var(--space-lg);
            max-width: 400px;
            width: 100%;
            animation: quoteIn 1s ease 0.3s both;
        }

        .daily-quote-text {
            font-family: 'Cormorant Garamond', serif;
            font-style: italic;
            font-weight: 300;
            font-size: 1.05rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.85);
        }

        .daily-quote-source {
            font-size: 0.82rem;
            color: var(--text-muted);
            margin-top: 6px;
        }

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

        .another-quote-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 0.78rem;
            cursor: pointer;
            padding: 6px 0;
            margin-top: 8px;
            transition: color 0.2s ease;
        }
        .another-quote-btn:hover {
            color: rgba(255, 255, 255, 0.8);
        }
        .another-quote-btn svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }

        /* Nav buttons */
        .nav-buttons {
            display: flex;
            gap: 14px;
            justify-content: center;
            max-width: 420px;
            width: 100%;
        }

        .nav-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px 24px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            color: #fff;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            letter-spacing: 0.02em;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.18);
            transform: translateY(-1px);
        }

        .nav-btn:active {
            transform: translateY(0);
        }

        /* Hide old action buttons */
        .action-buttons, .start-chat-btn {
            display: none !important;
        }

        @media (max-width: 480px) {
            .home-container {
                padding: 16px;
                padding-top: 68px;
            }

            .nav-buttons {
                flex-direction: column;
                gap: 10px;
            }

        }

        /* Auth blur on home content */
        .auth-blur {
            filter: blur(8px);
            pointer-events: none;
            user-select: none;
        }

        /* Auth overlay */
        .auth-overlay {
            position: fixed;
            inset: 0;
            z-index: 2000;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            overflow-y: auto;
            background: rgba(0, 0, 0, 0.6);
            padding: 16px;
        }

        .auth-card {
            width: 100%;
            max-width: 400px;
            margin: auto;
            background: rgba(30, 34, 42, 0.85);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 36px 32px 28px;
            color: #fff;
        }

        .auth-card h2 {
            text-align: center;
            font-size: 1.6rem;
            font-weight: 300;
            margin-bottom: 4px;
        }

        .auth-card .auth-subtitle {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 8px;
        }

        .auth-free-note {
            position: relative;
            text-align: center;
            color: #fff;
            background: rgba(156, 175, 136, 0.18);
            border: 1px solid rgba(156, 175, 136, 0.55);
            border-radius: 12px;
            padding: 9px 14px;
            font-size: 0.85rem;
            margin: 6px 0 20px;
        }

        /* Arrow pointing down at the Sign Up segment (right half of the toggle) */
        .auth-free-note::after {
            content: '';
            position: absolute;
            left: 76%;
            bottom: -9px;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 9px solid transparent;
            border-right: 9px solid transparent;
            border-top: 9px solid rgba(156, 175, 136, 0.55);
        }

        /* Tabs → segmented control */
        .auth-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 24px;
            padding: 4px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
        }

        .auth-tab-btn {
            flex: 1;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 0.95rem;
            font-weight: 500;
            padding: 9px 0;
            cursor: pointer;
            border-radius: 9px;
            transition: all 0.2s ease;
        }

        .auth-tab-btn.active {
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
        }

        .auth-tab-btn:hover:not(.active) {
            color: #fff;
        }

        /* Views */
        .auth-view {
            display: none;
        }

        .auth-view.active {
            display: block;
        }

        /* Form fields */
        .auth-field {
            margin-bottom: 16px;
        }

        .auth-field label {
            display: block;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 6px;
        }

        .auth-field input {
            width: 100%;
            padding: 11px 14px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            color: #fff;
            font-size: 0.95rem;
            transition: border-color 0.2s ease;
        }

        .auth-field input:focus {
            outline: none;
            border-color: var(--accent-color);
        }

        .auth-field input::placeholder {
            color: rgba(255, 255, 255, 0.35);
        }

        .auth-error {
            color: #e57373;
            font-size: 0.82rem;
            min-height: 1.2em;
            margin-bottom: 8px;
        }

        .auth-success {
            color: var(--success-color);
            font-size: 0.85rem;
            margin-bottom: 12px;
            display: none;
        }

        .auth-submit-btn {
            width: 100%;
            padding: 12px;
            background: var(--accent-color);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: opacity 0.2s ease;
        }

        .auth-submit-btn:hover:not(:disabled) {
            opacity: 0.9;
        }

        .auth-submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .auth-link {
            display: block;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.85rem;
            margin-top: 12px;
            cursor: pointer;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .auth-link:hover {
            color: #fff;
        }

        .auth-signup-nudge {
            color: var(--accent-color);
            margin-top: 6px;
        }

        .auth-signup-nudge:hover {
            color: #fff;
        }

        /* Divider */
        .auth-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 24px 0;
            color: var(--text-muted);
            font-size: 0.82rem;
        }

        .auth-divider::before,
        .auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
        }

        /* Google button */
        .auth-google-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            color: #fff;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .auth-google-btn:hover {
            background: rgba(255, 255, 255, 0.14);
        }

        .auth-google-btn svg {
            width: 18px;
            height: 18px;
        }

        /* Footer links */
        .auth-footer {
            text-align: center;
            margin-top: 20px;
            font-size: 0.78rem;
            color: var(--text-muted);
        }

        .auth-footer a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .auth-footer a:hover {
            color: #fff;
        }

        @media (max-width: 480px) {
            .auth-card {
                padding: 28px 20px 22px;
            }
        }

        /* Your Bundles section (conditional, rendered when user has entitlements) */
        .home-bundles {
            margin-top: var(--space-xl);
            max-width: 420px;
            width: 100%;
            text-align: center;
        }
        .home-bundles__heading {
            font-size: 0.78rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 10px;
            font-weight: 500;
            opacity: 0.75;
        }
        .home-bundles__grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        /* Bundle tile reuses .nav-btn but stacks title above tagline */
        .home-bundles__grid .nav-btn {
            flex: none;
            flex-direction: column;
            gap: 2px;
            padding: 12px 20px;
        }
        .home-bundles__tagline {
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.55);
            font-weight: 400;
            letter-spacing: 0;
        }
