        /* ===== ACCOUNT PAGE STYLES ===== */

        /* Page wrapper — matches login page layout approach */
        .account-wrapper {
            max-width: 760px;
            margin: 0 auto;
            padding: 2rem 1rem 4rem;
        }

        /* Page title row */
        .account-page-title {
            font-family: var(--font-heading);
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--color-heading);
            margin: 0 0 0.25rem;
        }

        [data-theme="dark"] .account-page-title {
            color: var(--color-text);
        }

        .account-subtitle {
            font-family: var(--font-body);
            font-size: 0.95rem;
            color: var(--color-text-light);
            margin: 0 0 2rem;
        }

        /* Info card — shows email, join date, tier */
        .account-card {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-card);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .account-card-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        /* Avatar circle — initials derived from email */
        .account-avatar {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--color-accent);
            color: #fff;
            font-family: var(--font-heading);
            font-size: 1.25rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .account-meta {
            flex: 1;
            min-width: 0;
        }

        .account-email {
            font-family: var(--font-body);
            font-size: 1rem;
            font-weight: 600;
            color: var(--color-text);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .account-joined {
            font-family: var(--font-body);
            font-size: 0.85rem;
            color: var(--color-text-light);
            margin-top: 0.15rem;
        }

        /* Tier badge */
        .tier-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.3rem 0.75rem;
            border-radius: var(--radius-pill);
            font-family: var(--font-body);
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        .tier-badge.free {
            background: var(--color-muted);
            color: var(--color-text-light);
            border: 1px solid var(--color-border);
        }

        .tier-badge.pro {
            background: #FEF3C7;
            color: #92400E;
            border: 1px solid #FCD34D;
        }

        [data-theme="dark"] .tier-badge.pro {
            background: #451A03;
            color: #FCD34D;
            border-color: #92400E;
        }

        /* Sign out button inside the card */
        .btn-signout {
            background: none;
            border: 1.5px solid var(--color-border);
            border-radius: var(--radius-sm);
            padding: 0.5rem 1rem;
            font-family: var(--font-body);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--color-text-light);
            cursor: pointer;
            transition: border-color 0.2s, color 0.2s;
            margin-top: 0.75rem;
        }

        .btn-signout:hover {
            border-color: var(--color-patriot);
            color: var(--color-patriot);
        }

        /* ===== UPGRADE BANNER (Phase 3 placeholder) ===== */
        .upgrade-banner {
            background: linear-gradient(135deg, #1E3A5F 0%, #0369A1 100%);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 1.25rem;
            flex-wrap: wrap;
        }

        .upgrade-banner-icon {
            font-size: 2rem;
            flex-shrink: 0;
        }

        .upgrade-banner-text {
            flex: 1;
            min-width: 200px;
        }

        .upgrade-banner-text h3 {
            font-family: var(--font-heading);
            font-size: 1.1rem;
            font-weight: 700;
            margin: 0 0 0.25rem;
            color: #fff;
        }

        .upgrade-banner-text p {
            font-family: var(--font-body);
            font-size: 0.9rem;
            margin: 0;
            color: rgba(255,255,255,0.8);
        }

        .btn-upgrade {
            background: #fff;
            color: #0369A1;
            border: none;
            border-radius: var(--radius-sm);
            padding: 0.6rem 1.25rem;
            font-family: var(--font-body);
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: opacity 0.2s;
        }

        .btn-upgrade:hover {
            opacity: 0.9;
        }

        /* ===== FAVORITES SECTION ===== */
        .favorites-section h2 {
            font-family: var(--font-heading);
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--color-heading);
            margin: 0 0 1rem;
        }

        [data-theme="dark"] .favorites-section h2 {
            color: var(--color-text);
        }

        /* Loading skeleton */
        .favorites-loading {
            text-align: center;
            padding: 3rem 1rem;
            font-family: var(--font-body);
            color: var(--color-text-light);
        }

        /* Empty state */
        .favorites-empty {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 3rem 1.5rem;
            text-align: center;
        }

        .favorites-empty-icon {
            font-size: 2.5rem;
            display: block;
            margin-bottom: 0.75rem;
        }

        .favorites-empty h3 {
            font-family: var(--font-heading);
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-text);
            margin: 0 0 0.5rem;
        }

        .favorites-empty p {
            font-family: var(--font-body);
            font-size: 0.9rem;
            color: var(--color-text-light);
            margin: 0 0 1.25rem;
        }

        .btn-browse {
            display: inline-block;
            padding: 0.6rem 1.25rem;
            background: var(--color-accent);
            color: #fff;
            border-radius: var(--radius-sm);
            font-family: var(--font-body);
            font-size: 0.9rem;
            font-weight: 700;
            text-decoration: none;
            transition: background 0.2s;
        }

        .btn-browse:hover {
            background: var(--color-accent-hover);
        }

        /* Favorites list */
        .favorites-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        /* Individual favorite row */
        .favorite-row {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 1rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* Category label pill */
        .fav-category {
            display: inline-block;
            padding: 0.2rem 0.6rem;
            background: var(--color-muted);
            color: var(--color-text-light);
            border-radius: var(--radius-pill);
            font-family: var(--font-body);
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: capitalize;
            flex-shrink: 0;
        }

        .fav-company {
            flex: 1;
            font-family: var(--font-body);
            font-size: 1rem;
            font-weight: 600;
            color: var(--color-text);
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* "View" link — goes to the category page */
        .fav-link {
            font-family: var(--font-body);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--color-accent);
            text-decoration: none;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .fav-link:hover {
            text-decoration: underline;
        }

        /* Remove button */
        .btn-remove-fav {
            background: none;
            border: none;
            color: var(--color-text-light);
            font-size: 1.1rem;
            cursor: pointer;
            padding: 0.25rem;
            border-radius: var(--radius-sm);
            flex-shrink: 0;
            line-height: 1;
            transition: color 0.2s;
        }

        .btn-remove-fav:hover {
            color: var(--color-patriot);
        }

        /* Responsive — stack favorite row on narrow phones */
        @media (max-width: 480px) {
            .favorite-row {
                flex-wrap: wrap;
            }

            .fav-company {
                order: -1;
                width: 100%;
                white-space: normal;
            }

            .upgrade-banner {
                flex-direction: column;
                text-align: center;
            }
        }

/* ── Profile personalization form ─────────────────────────────────────────── */
.profile-personalize__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.profile-personalize__intro { color: var(--color-text-light, #6b7280); font-size: 0.9rem; margin: 0.25rem 0 1rem; }
.profile-personalize.is-prompt { border: 2px solid var(--color-accent, #2563eb); box-shadow: 0 2px 16px rgba(37, 99, 235, 0.12); }
.profile-dismiss { background: none; border: none; color: var(--color-text-light, #6b7280); font-size: 0.85rem; cursor: pointer; text-decoration: underline; }
.profile-form { display: grid; gap: 1rem; margin-top: 0.5rem; }
.profile-field { display: flex; flex-direction: column; gap: 0.35rem; border: none; padding: 0; margin: 0; }
.profile-field__label { font-weight: 600; font-size: 0.9rem; }
.profile-field select { padding: 0.55rem 0.7rem; border: 1px solid var(--color-border, rgba(0, 0, 0, 0.15)); border-radius: 8px; font-size: 0.95rem; background: var(--color-surface, #fff); color: inherit; }
.profile-field--radio { flex-direction: row; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.profile-radio { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; }
.profile-form__actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.25rem; }
.profile-save-status { font-size: 0.9rem; color: var(--color-text-light, #6b7280); }

/* ── Gamification progress card ───────────────────────────────────────────── */
.gam-card { margin-bottom: 1rem; }
.gam-title { margin: 0 0 0.75rem; font-size: 1.1rem; }
.gam-row { display: flex; align-items: center; gap: 0.85rem; }
.gam-level-badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 1.1rem; color: #fff; background: #94A3B8; flex: 0 0 auto; }
.gam-l2 { background: #64748B; }
.gam-l3 { background: #0369A1; }
.gam-l4 { background: #0D9488; }
.gam-l5 { background: #D97706; }
.gam-l6 { background: #D97706; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.55), 0 0 14px rgba(124, 58, 237, 0.4); }
.gam-tier-img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; border-radius: 8px; }
.gam-meta { flex: 1 1 auto; min-width: 0; }
.gam-level-name { font-weight: 700; }
.gam-xp { font-size: 0.85rem; color: var(--color-text-light, #6b7280); }
.gam-streak { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.gam-bar { margin: 0.75rem 0 0.4rem; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.gam-bar-fill { height: 100%; border-radius: 999px; background: var(--color-accent, #2563eb); transition: width 0.4s ease; }
.gam-badges-count { font-size: 0.85rem; color: var(--color-text-light, #6b7280); }
[data-theme="dark"] .gam-bar { background: rgba(255, 255, 255, 0.1); }
.gam-badges-head { font-size: 0.85rem; color: var(--color-text-light, #6b7280); margin-top: 0.25rem; }
.gam-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.gam-badge { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; color: #fff; }
.gam-t-bronze { background: #B45309; }
.gam-t-silver { background: #64748B; }
.gam-t-gold { background: #D97706; }
.gam-t-platinum { background: #7c3aed; }
