/**
 * Voidlust Profile / Account — all modes (site desktop, mobile, PWA).
 * Form IDs and handlers unchanged; visual layer only.
 */

:root {
    --vl-profile-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    --vl-profile-border: 1px solid rgba(255, 255, 255, 0.1);
    --vl-profile-gold: rgba(201, 167, 106, 0.88);
    --vl-profile-bordeaux: rgba(111, 8, 24, 0.55);
    --vl-profile-radius: 20px;
}

/* ── Page shell ── */
body.settings-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(111, 8, 24, 0.22), transparent 38%),
        radial-gradient(circle at 88% 12%, rgba(90, 58, 138, 0.14), transparent 32%),
        linear-gradient(180deg, #050307 0%, #030205 100%);
    color: #f4edf5;
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100dvh;
}

body.settings-page .settings-main {
    max-width: 440px;
    margin: 0 auto;
    padding: 88px 16px 48px;
}

body.settings-page .settings-header {
    background: rgba(5, 3, 7, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.settings-page .settings-header-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(244, 237, 245, 0.92);
}

body.settings-page .settings-back-btn {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 6, 10, 0.55);
    color: rgba(244, 237, 245, 0.72);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

body.settings-page .settings-back-btn:hover {
    border-color: rgba(201, 167, 106, 0.32);
    background: rgba(111, 8, 24, 0.28);
}

/* ── Profile hero card ── */
.vl-profile-hero {
    position: relative;
    margin: 0 0 18px;
    padding: 24px 20px 22px;
    border-radius: var(--vl-profile-radius);
    background: var(--vl-profile-glass);
    border: var(--vl-profile-border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
    overflow: hidden;
}

.vl-profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 167, 106, 0.1), transparent 58%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(111, 8, 24, 0.18), transparent 65%);
}

.vl-profile-hero > * {
    position: relative;
    z-index: 1;
}

.vl-profile-hero__avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.vl-profile-avatar {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 35% 28%, rgba(143, 18, 56, 0.35), rgba(8, 4, 10, 0.92));
    border: 1px solid rgba(201, 167, 106, 0.28);
    box-shadow: 0 0 28px rgba(111, 8, 24, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.vl-profile-avatar--goddess {
    border-color: rgba(201, 167, 106, 0.52);
    box-shadow: 0 0 32px rgba(201, 167, 106, 0.22), 0 0 18px rgba(111, 8, 24, 0.18);
}

.vl-profile-avatar__crown-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    width: 22px;
    height: 16px;
    background: linear-gradient(180deg, rgba(201, 167, 106, 0.95), rgba(140, 100, 40, 0.9));
    clip-path: polygon(50% 0%, 68% 38%, 88% 28%, 78% 100%, 22% 100%, 12% 28%, 32% 38%);
    box-shadow: 0 0 12px rgba(201, 167, 106, 0.45);
    display: none;
}

.vl-profile-avatar--goddess .vl-profile-avatar__crown-badge {
    display: block;
}

.vl-profile-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.vl-profile-avatar__initials {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(244, 237, 245, 0.92);
    text-shadow: 0 0 18px rgba(143, 18, 56, 0.35);
}

.vl-profile-avatar__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.vl-profile-avatar__btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 6, 10, 0.55);
    color: rgba(244, 237, 245, 0.72);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.vl-profile-avatar__btn:hover {
    border-color: rgba(201, 167, 106, 0.35);
    color: var(--vl-profile-gold);
}

.vl-profile-avatar__btn--danger {
    border-color: rgba(180, 40, 40, 0.35);
    color: rgba(224, 112, 112, 0.88);
}

.vl-profile-hero__name {
    margin: 0 0 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.85rem, 6vw, 2.35rem);
    font-weight: 600;
    line-height: 1.1;
    color: #f4edf5;
}

.vl-profile-hero__tagline {
    margin: 0 0 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.4;
    color: rgba(244, 237, 245, 0.58);
}

.vl-profile-hero__email {
    margin: 0 0 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    color: rgba(244, 237, 245, 0.48);
    word-break: break-all;
}

.vl-profile-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.vl-profile-hero__crystals {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(244, 237, 245, 0.82);
}

.vl-profile-hero__crystals img {
    width: 14px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(143, 18, 56, 0.45));
}

.vl-profile-hero__dot {
    color: rgba(244, 237, 245, 0.28);
}

.vl-profile-hero__tier {
    color: var(--vl-profile-gold);
}

.vl-profile-hero__tier--goddess {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.14em;
    text-shadow: 0 0 16px rgba(201, 167, 106, 0.28);
}

.vl-profile-hero__edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(201, 167, 106, 0.38);
    background: linear-gradient(135deg, rgba(111, 8, 24, 0.55), rgba(40, 8, 14, 0.85));
    color: #f4edf5;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vl-profile-hero__edit-btn:hover {
    box-shadow: 0 8px 24px rgba(111, 8, 24, 0.32);
}

/* ── Quick actions (mobile / PWA) ── */
.vl-profile-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.vl-profile-quick__btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 6, 10, 0.55);
    color: rgba(244, 237, 245, 0.88);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.vl-profile-quick__btn span {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vl-profile-gold);
}

.vl-profile-quick__btn:active {
    transform: scale(0.98);
}

/* ── Settings cards ── */
body.settings-page .settings-cards-grid {
    gap: 14px;
}

body.settings-page .settings-card-block {
    margin-bottom: 0;
    padding: 20px 18px;
    border-radius: var(--vl-profile-radius);
    background: var(--vl-profile-glass);
    border: var(--vl-profile-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body.settings-page .settings-card-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vl-profile-gold);
    margin-bottom: 14px;
}

body.settings-page .settings-input,
body.settings-page .settings-input.glass-input {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 4, 8, 0.65);
    color: #f4edf5;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.settings-page .settings-input:focus {
    outline: none;
    border-color: rgba(201, 167, 106, 0.42);
    box-shadow: 0 0 0 3px rgba(111, 8, 24, 0.28);
}

body.settings-page .settings-input::placeholder {
    color: rgba(244, 237, 245, 0.35);
}

body.settings-page .settings-card-btn {
    border-radius: 999px;
    border: 1px solid rgba(201, 167, 106, 0.35);
    background: linear-gradient(135deg, rgba(111, 8, 24, 0.88), rgba(50, 8, 16, 0.95));
    color: #f4edf5;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.settings-page .settings-card-btn:hover {
    box-shadow: 0 8px 24px rgba(111, 8, 24, 0.35);
}

body.settings-page .settings-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 6, 10, 0.55);
    color: rgba(244, 237, 245, 0.78);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.settings-page .settings-glass-toggle-row {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(6, 4, 8, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.settings-page .settings-glass-toggle-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    color: rgba(244, 237, 245, 0.78);
}

body.settings-page .settings-pwa-only-note,
body.settings-page .settings-legal-note {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(244, 237, 245, 0.52);
}

body.settings-page .settings-delete-wrap {
    margin-top: 20px;
    padding: 20px 18px;
    border-radius: var(--vl-profile-radius);
    border: 1px solid rgba(143, 18, 56, 0.32);
    background: linear-gradient(145deg, rgba(12, 4, 8, 0.72), rgba(6, 3, 5, 0.88));
}

body.settings-page .settings-delete-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(224, 112, 112, 0.88);
}

body.settings-page .settings-delete-btn {
    border-radius: 999px;
    border: 1px solid rgba(180, 40, 40, 0.45);
    background: rgba(40, 8, 12, 0.65);
    color: rgba(240, 140, 140, 0.92);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.settings-page .settings-legal-links {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    opacity: 0.5;
}

body.settings-page .settings-legal-links a {
    color: rgba(244, 237, 245, 0.55);
}

/* ── Portal menu (Voidlust profile) ── */
.portal-menu-content {
    background: linear-gradient(160deg, rgba(14, 8, 12, 0.98), rgba(5, 3, 7, 0.99)) !important;
    border: 1px solid rgba(201, 167, 106, 0.22) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(111, 8, 24, 0.18) !important;
    padding: 28px 22px 24px !important;
    max-width: 340px !important;
}

.portal-menu-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-menu-profile__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, rgba(143, 18, 56, 0.32), rgba(8, 4, 10, 0.92));
    border: 1px solid rgba(201, 167, 106, 0.28);
    overflow: hidden;
    margin-bottom: 4px;
}

.portal-menu-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-menu-profile__initials {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.1rem;
    color: rgba(244, 237, 245, 0.9);
}

.portal-menu-profile__name {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f4edf5;
}

.portal-menu-profile__meta {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(201, 167, 106, 0.72);
}

.portal-menu-logo {
    display: none !important;
}

.portal-nav-links {
    text-align: left;
}

.portal-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 14px !important;
    margin-bottom: 6px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 500;
    color: rgba(244, 237, 245, 0.88) !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.portal-link:hover {
    background: rgba(111, 8, 24, 0.22);
    border-color: rgba(201, 167, 106, 0.18);
}

.portal-link .link-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(8, 6, 10, 0.55);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.portal-link.gold-link {
    border-color: rgba(201, 167, 106, 0.22);
    background: rgba(28, 18, 8, 0.35);
}

.portal-link--logout {
    color: rgba(224, 112, 112, 0.88) !important;
}

/* ── Header premium cluster ── */
.vl-header-premium-cluster {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vl-header-crystal-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 10px 0 8px;
    border-radius: 999px;
    background: rgba(8, 6, 10, 0.88);
    border: 1px solid rgba(143, 18, 56, 0.35);
    box-shadow: 0 0 14px rgba(111, 8, 24, 0.16);
    text-decoration: none;
    color: rgba(244, 237, 245, 0.9);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.vl-header-crystal-pill img {
    width: 16px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(143, 18, 56, 0.45));
}

.vl-header-crystal-pill__label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
}

.vl-header-crystal-pill.crystals-premium,
.vl-header-crystal-pill--premium {
    border-color: rgba(201, 167, 106, 0.48);
    box-shadow: 0 0 18px rgba(201, 167, 106, 0.18), inset 0 0 0 1px rgba(201, 167, 106, 0.12);
}

.vl-header-crystal-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(201, 167, 106, 0.32);
    background: rgba(12, 8, 10, 0.88);
    color: var(--vl-profile-gold);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.vl-header-crown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(201, 167, 106, 0.28);
    background: rgba(8, 6, 10, 0.88);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.vl-header-crown-btn__icon {
    width: 18px;
    height: 12px;
    background: linear-gradient(180deg, rgba(201, 167, 106, 0.75), rgba(120, 90, 40, 0.85));
    clip-path: polygon(50% 0%, 68% 38%, 88% 28%, 78% 100%, 22% 100%, 12% 28%, 32% 38%);
    opacity: 0.72;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.vl-header-crown-btn--active {
    border-color: rgba(201, 167, 106, 0.55);
    box-shadow: 0 0 20px rgba(201, 167, 106, 0.28);
    background: linear-gradient(135deg, rgba(28, 18, 8, 0.95), rgba(12, 8, 6, 0.92));
}

.vl-header-crown-btn--active .vl-header-crown-btn__icon {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(201, 167, 106, 0.55));
}

/* Desktop profile grid */
@media (min-width: 900px) {
    body.settings-page.crave-desktop-ui .settings-main,
    body.settings-page .settings-main.settings {
        max-width: 920px;
        padding: 96px 28px 64px;
    }

    body.settings-page .vl-profile-hero {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 4px 24px;
        text-align: left;
        align-items: center;
        padding: 28px 28px;
    }

    body.settings-page .vl-profile-hero__avatar-wrap {
        grid-row: 1 / span 3;
        margin: 0;
    }

    body.settings-page .vl-profile-hero__name {
        grid-column: 2;
        align-self: end;
        margin: 0;
    }

    body.settings-page .vl-profile-hero__tagline {
        grid-column: 2;
        margin: 0;
    }

    body.settings-page .vl-profile-hero__email {
        grid-column: 2;
        margin: 0;
    }

    body.settings-page .vl-profile-hero__meta {
        grid-column: 2;
        justify-content: flex-start;
        margin: 8px 0 0;
    }

    body.settings-page .vl-profile-hero__edit-btn {
        grid-column: 3;
        grid-row: 1 / span 3;
        align-self: center;
    }

    body.settings-page .settings-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    body.settings-page .settings-card-block:hover {
        transform: scale(1.015);
        border-color: rgba(201, 167, 106, 0.22);
    }

    body.settings-page .settings-delete-wrap {
        grid-column: 1 / -1;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    body.settings-page .vl-profile-quick {
        display: none;
    }
}

/* ── PWA profile header ── */
.pwa-profile-header {
    display: none;
}

body.crave-pwa-mode.settings-page .pwa-profile-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px;
    background: rgba(5, 3, 7, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pwa-profile-header__title {
    margin: 0;
    text-align: center;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 237, 245, 0.92);
}

.pwa-profile-header__back,
.pwa-profile-header__action {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 6, 10, 0.55);
    color: rgba(244, 237, 245, 0.72);
    font-size: 1rem;
    cursor: pointer;
}

body.crave-pwa-mode.settings-page .settings-main {
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

body.crave-pwa-mode.settings-page .site-settings-header {
    display: none !important;
}

/* ── PWA hub cards ── */
.vl-pwa-profile-hub {
    display: none;
}

body.crave-pwa-mode .vl-pwa-profile-hub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.vl-pwa-hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 6, 10, 0.55);
    color: rgba(244, 237, 245, 0.72);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.vl-pwa-hub-card span:first-child {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vl-profile-gold);
}

.vl-pwa-hub-card--logout span:first-child {
    color: rgba(224, 112, 112, 0.88);
}

.vl-pwa-hub-card:active {
    transform: scale(0.98);
}

/* ── Mobile site quick actions ── */
.site-mobile-only {
    display: none;
}

body.crave-site-mode.crave-mobile-ui .site-mobile-only {
    display: grid;
}

body.crave-pwa-mode .site-mobile-only {
    display: none !important;
}

/* ── Settings accordions (mobile / PWA) ── */
.vl-settings-section-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 12px;
    margin: 0 0 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

body.crave-pwa-mode .vl-settings-section-toggle,
body.crave-site-mode.crave-mobile-ui .vl-settings-section-toggle {
    display: flex;
}

.vl-settings-section-toggle .settings-card-title {
    margin: 0;
}

.vl-settings-section-chevron {
    color: var(--vl-profile-gold);
    font-size: 1.1rem;
    transform: rotate(90deg);
    transition: transform 0.22s ease;
}

.vl-settings-section--open .vl-settings-section-chevron {
    transform: rotate(-90deg);
}

.vl-settings-section-body {
    display: block;
}

body.crave-pwa-mode .settings-card-block[data-vl-section]:not(.vl-settings-section--open) .vl-settings-section-body,
body.crave-site-mode.crave-mobile-ui .settings-card-block[data-vl-section]:not(.vl-settings-section--open) .vl-settings-section-body {
    display: none;
}

/* ── Header mini avatar + end cluster ── */
.pwa-header-end {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.vl-header-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(201, 167, 106, 0.28);
    background: rgba(8, 6, 10, 0.88);
    text-decoration: none;
    flex-shrink: 0;
}

.vl-header-profile-avatar__initials {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    color: rgba(244, 237, 245, 0.88);
}

body.settings-page #vlProfileHero {
    animation: vlProfileFadeIn 0.45s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
    body.settings-page .settings-card-block,
    .vl-profile-hero__edit-btn,
    .vl-profile-quick__btn,
    .vl-header-crystal-pill,
    .vl-header-crown-btn,
    body.settings-page #vlProfileHero {
        transition: none !important;
        animation: none !important;
    }
}
