@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #5b48d4;
    --primary-dark: #2e1f8c;
    --primary-soft: #efedff;
    --accent: #a893ff;
    --accent-2: #7e9cff;
    --text: #101a3d;
    --text-soft: #354061;
    --muted: #6d7591;
    --border: rgba(91, 72, 212, 0.14);
    --border-strong: rgba(91, 72, 212, 0.28);
    --card: rgba(255,255,255,.88);
    --shadow:
        0 22px 60px rgba(57, 43, 139, .12),
        0 4px 18px rgba(57, 43, 139, .05);
    --shadow-hover:
        0 30px 80px rgba(57, 43, 139, .18),
        0 8px 24px rgba(57, 43, 139, .08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.75;
    background: #f5f6fc;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
summary {
    font: inherit;
}

strong {
    color: var(--primary-dark);
}

em {
    color: #4936bd;
}

::selection {
    color: #fff;
    background: var(--primary);
}


/* =========================================================
   BACKGROUND
========================================================= */

.faq-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 10%, rgba(168,147,255,.26), transparent 26%),
        radial-gradient(circle at 87% 18%, rgba(126,156,255,.19), transparent 28%),
        linear-gradient(180deg, #f9f9ff 0%, #f4f5fc 48%, #f6f5ff 100%);
}

.faq-orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(28px);
    opacity: .52;
    will-change: transform;
}

.faq-orb-1 {
    width: 360px;
    height: 360px;
    top: 8%;
    left: -130px;
    background: radial-gradient(circle, rgba(127,101,234,.52), transparent 68%);
    animation: orbFloatOne 18s ease-in-out infinite;
}

.faq-orb-2 {
    width: 460px;
    height: 460px;
    right: -180px;
    top: 32%;
    background: radial-gradient(circle, rgba(124,172,255,.40), transparent 68%);
    animation: orbFloatTwo 22s ease-in-out infinite;
}

.faq-orb-3 {
    width: 420px;
    height: 420px;
    left: 27%;
    bottom: -240px;
    background: radial-gradient(circle, rgba(187,150,255,.37), transparent 70%);
    animation: orbFloatThree 20s ease-in-out infinite;
}

@keyframes orbFloatOne {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(75px,45px,0) scale(1.12); }
}

@keyframes orbFloatTwo {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(-90px,-45px,0) scale(1.09); }
}

@keyframes orbFloatThree {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(55px,-70px,0) scale(1.08); }
}

.faq-grid {
    position: absolute;
    inset: 0;
    opacity: .42;
    background-image:
        linear-gradient(rgba(91,72,212,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91,72,212,.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at center, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 78%);
}

.faq-noise {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.9) 0 1px, transparent 1.5px),
        radial-gradient(circle at 60% 70%, rgba(91,72,212,.28) 0 1px, transparent 1.5px);
    background-size: 34px 34px, 47px 47px;
}


/* =========================================================
   PAGE PROGRESS
========================================================= */

.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 4px;
    overflow: hidden;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(8px);
}

.page-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent), var(--accent-2));
    box-shadow: 0 0 14px rgba(91,72,212,.45);
}


/* =========================================================
   PAGE
========================================================= */

.faq-page {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 50px 0 100px;
}


/* =========================================================
   HERO
========================================================= */

.faq-hero {
    position: relative;
    isolation: isolate;
    min-height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
    margin-bottom: 26px;
    padding: 44px 28px 34px;
    text-align: center;
    border: 1px solid rgba(217,213,244,.92);
    border-radius: 32px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,.98) 0 18%, rgba(255,255,255,.64) 46%, transparent 72%),
        linear-gradient(145deg, rgba(245,243,255,.92), rgba(237,242,255,.88));
    box-shadow:
        0 28px 70px rgba(58,43,143,.14),
        inset 0 1px 0 rgba(255,255,255,.9);
    animation: heroEnter .9s cubic-bezier(.18,.82,.22,1) both;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-rings {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.hero-rings span {
    position: absolute;
    border: 1px dashed rgba(91,72,212,.15);
    border-radius: 50%;
    animation: ringSpin 26s linear infinite;
}

.hero-rings span:nth-child(1) {
    width: 190px;
    height: 190px;
}

.hero-rings span:nth-child(2) {
    width: 300px;
    height: 300px;
    animation-direction: reverse;
    animation-duration: 34s;
}

.hero-rings span:nth-child(3) {
    width: 440px;
    height: 440px;
    opacity: .56;
    animation-duration: 46s;
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

.hero-emblem {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 25px;
    background: linear-gradient(145deg, #7967eb 0%, #5b48d4 50%, #39269e 100%);
    box-shadow:
        0 18px 35px rgba(91,72,212,.33),
        inset 0 1px 0 rgba(255,255,255,.36);
    transform: rotate(-5deg);
    animation: emblemFloat 4.6s ease-in-out infinite;
}

.hero-emblem svg {
    width: 44px;
    height: 44px;
}

@keyframes emblemFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
}

.faq-hero h1 {
    max-width: 820px;
    font-family: 'Sora', sans-serif;
    font-size: clamp(30px, 5.4vw, 58px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -.055em;
    color: transparent;
    background: linear-gradient(135deg, #21166f 0%, #5b48d4 50%, #a893ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 8px 20px rgba(91,72,212,.1));
}

.quest-progress {
    width: min(640px, 92%);
    margin-top: 6px;
}

.quest-progress-track {
    height: 8px;
    overflow: hidden;
    border: 1px solid rgba(91,72,212,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    box-shadow: inset 0 2px 4px rgba(51,39,126,.06);
}

.quest-progress-track span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b48d4, #8e78ef, #7e9cff);
    box-shadow: 0 0 16px rgba(91,72,212,.32);
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.quest-dots {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.quest-dot {
    height: 6px;
    border-radius: 999px;
    background: rgba(91,72,212,.12);
    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.quest-dot.is-complete {
    transform: translateY(-1px) scaleY(1.35);
    background: linear-gradient(90deg, #7662e9, #a893ff);
    box-shadow: 0 4px 10px rgba(91,72,212,.2);
}


/* =========================================================
   GROUPS
========================================================= */

.faq-group {
    position: relative;
    margin-top: 24px;
    padding: 26px;
    opacity: 0;
    transform: translateY(28px);
    border: 1px solid rgba(220,217,241,.92);
    border-radius: 26px;
    background: rgba(255,255,255,.62);
    box-shadow: 0 18px 45px rgba(57,43,139,.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.75,.2,1),
        box-shadow .35s ease;
}

.faq-group.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-group:hover {
    box-shadow: 0 24px 58px rgba(57,43,139,.1);
}

.faq-group h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 10px 18px 10px 17px;
    color: var(--primary-dark);
    font-family: 'Sora', sans-serif;
    font-size: clamp(17px, 2.6vw, 22px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.025em;
    border: 1px solid rgba(91,72,212,.13);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(243,240,255,.92));
    box-shadow: 0 8px 18px rgba(91,72,212,.07);
}

.faq-group h2::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 5px rgba(91,72,212,.08);
    animation: groupPulse 2.7s ease-in-out infinite;
}

@keyframes groupPulse {
    0%,100% { transform: scale(1); box-shadow: 0 0 0 5px rgba(91,72,212,.08); }
    50% { transform: scale(1.22); box-shadow: 0 0 0 9px rgba(91,72,212,.03); }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}


/* =========================================================
   FAQ CARDS
========================================================= */

.faq-card {
    --mx: 50%;
    --my: 50%;
    --rx: 0deg;
    --ry: 0deg;

    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 19px;
    background:
        radial-gradient(circle at var(--mx) var(--my), rgba(168,147,255,.13), transparent 26%),
        rgba(255,255,255,.88);
    box-shadow: 0 8px 24px rgba(57,43,139,.055);
    transform:
        perspective(1000px)
        rotateX(var(--rx))
        rotateY(var(--ry))
        translateZ(0);
    transform-style: preserve-3d;
    transition:
        transform .22s ease,
        border-color .28s ease,
        box-shadow .28s ease,
        background .28s ease;
}

.faq-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    opacity: 0;
    background: linear-gradient(180deg, var(--accent), var(--primary), var(--accent-2));
    transition: opacity .3s ease;
}

.faq-card:hover {
    border-color: rgba(91,72,212,.25);
    box-shadow: var(--shadow);
}

.faq-card[open] {
    border-color: rgba(91,72,212,.30);
    background:
        radial-gradient(circle at var(--mx) var(--my), rgba(168,147,255,.15), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,.97), rgba(249,247,255,.97));
    box-shadow: var(--shadow-hover);
}

.faq-card[open]::before {
    opacity: 1;
}

.faq-card.is-pulsing {
    animation: cardPulse .66s cubic-bezier(.2,.8,.2,1);
}

@keyframes cardPulse {
    0% { box-shadow: var(--shadow-hover); }
    42% { box-shadow: 0 0 0 8px rgba(91,72,212,.08), 0 32px 80px rgba(57,43,139,.19); }
    100% { box-shadow: var(--shadow-hover); }
}

.faq-card summary {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) 42px;
    gap: 14px;
    align-items: center;
    min-height: 78px;
    padding: 15px 17px 15px 15px;
    list-style: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary:focus-visible {
    outline: 3px solid rgba(91,72,212,.22);
    outline-offset: -3px;
    border-radius: 18px;
}

.faq-number {
    min-width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0 9px;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    border-radius: 14px;
    background: linear-gradient(145deg, #7967eb, #5b48d4);
    box-shadow:
        0 9px 18px rgba(91,72,212,.22),
        inset 0 1px 0 rgba(255,255,255,.3);
    transform: rotate(-2deg);
    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease;
}

.faq-card[open] .faq-number {
    transform: rotate(3deg) scale(1.06);
    box-shadow:
        0 13px 24px rgba(91,72,212,.3),
        inset 0 1px 0 rgba(255,255,255,.35);
}

.faq-question {
    color: var(--text);
    font-family: 'Sora', sans-serif;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 760;
    line-height: 1.45;
    letter-spacing: -.018em;
}

.faq-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    justify-self: end;
    border: 1px solid rgba(91,72,212,.13);
    border-radius: 12px;
    background: linear-gradient(145deg, #fff, #f3f0ff);
    box-shadow: 0 6px 14px rgba(91,72,212,.08);
    transition:
        transform .38s cubic-bezier(.2,.8,.2,1),
        background .3s ease,
        box-shadow .3s ease;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.faq-toggle::after {
    transform: rotate(90deg);
}

.faq-card[open] .faq-toggle {
    transform: rotate(180deg);
    background: linear-gradient(145deg, #7662e9, #5b48d4);
    box-shadow: 0 9px 18px rgba(91,72,212,.24);
}

.faq-card[open] .faq-toggle::before,
.faq-card[open] .faq-toggle::after {
    background: #fff;
}

.faq-card[open] .faq-toggle::after {
    transform: rotate(0deg);
}

.faq-answer {
    position: relative;
    z-index: 1;
    padding: 0 24px 24px 78px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.9;
    animation: answerReveal .48s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes answerReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.faq-answer::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 22px;
    left: 38px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(91,72,212,.38), rgba(168,147,255,.08));
}

.faq-answer p + p {
    margin-top: 15px;
}


/* =========================================================
   COMPLETION BURST
========================================================= */

.completion-burst {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10000;
    width: 0;
    height: 0;
    pointer-events: none;
}

.completion-burst i {
    --x: 0px;
    --y: 0px;
    --size: 7px;
    --rotate: 0deg;
    --delay: 0s;

    position: absolute;
    left: 0;
    top: 0;
    width: var(--size);
    height: calc(var(--size) * 1.7);
    border-radius: 2px;
    opacity: 0;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    transform: translate(-50%, -50%);
}

.completion-burst i:nth-child(3n + 1) {
    background: linear-gradient(180deg, #7e9cff, #5b48d4);
}

.completion-burst i:nth-child(3n + 2) {
    background: linear-gradient(180deg, #ffd166, #a893ff);
}

.completion-burst.is-active i {
    animation: burstPiece 1.45s cubic-bezier(.16,.75,.25,1) var(--delay) forwards;
}

@keyframes burstPiece {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg) scale(.4);
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--x)), calc(-50% + var(--y)))
            rotate(var(--rotate))
            scale(1);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) {
    .faq-page {
        width: calc(100% - 24px);
        padding-top: 30px;
    }

    .faq-hero {
        min-height: 280px;
        border-radius: 26px;
    }

    .faq-group {
        padding: 21px;
        border-radius: 22px;
    }

    .faq-answer {
        padding-left: 69px;
    }

    .faq-answer::before {
        left: 33px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
    .faq-page {
        width: calc(100% - 16px);
        padding: 18px 0 70px;
    }

    .faq-hero {
        min-height: 245px;
        gap: 14px;
        margin-bottom: 17px;
        padding: 32px 16px 25px;
        border-radius: 22px;
    }

    .hero-emblem {
        width: 64px;
        height: 64px;
        border-radius: 20px;
    }

    .hero-emblem svg {
        width: 37px;
        height: 37px;
    }

    .hero-rings span:nth-child(1) {
        width: 150px;
        height: 150px;
    }

    .hero-rings span:nth-child(2) {
        width: 235px;
        height: 235px;
    }

    .hero-rings span:nth-child(3) {
        width: 330px;
        height: 330px;
    }

    .quest-dots {
        gap: 3px;
    }

    .quest-dot {
        height: 5px;
    }

    .faq-group {
        margin-top: 16px;
        padding: 14px;
        border-radius: 19px;
    }

    .faq-group h2 {
        margin-bottom: 13px;
        padding: 8px 13px;
        border-radius: 12px;
    }

    .faq-list {
        gap: 10px;
    }

    .faq-card {
        border-radius: 16px;
    }

    .faq-card summary {
        grid-template-columns: auto minmax(0,1fr) 34px;
        gap: 10px;
        min-height: 68px;
        padding: 11px;
    }

    .faq-number {
        min-width: 41px;
        height: 41px;
        padding: 0 7px;
        font-size: 11px;
        border-radius: 12px;
    }

    .faq-question {
        font-size: 12.5px;
        line-height: 1.4;
    }

    .faq-toggle {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .faq-toggle::before,
    .faq-toggle::after {
        width: 13px;
    }

    .faq-answer {
        padding: 0 15px 18px 55px;
        font-size: 11.6px;
        line-height: 1.82;
    }

    .faq-answer::before {
        left: 27px;
        bottom: 17px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {
    .faq-hero h1 {
        font-size: 28px;
    }

    .faq-group {
        padding: 11px;
    }

    .faq-card summary {
        grid-template-columns: 38px minmax(0,1fr) 30px;
        gap: 8px;
        padding: 10px 9px;
    }

    .faq-number {
        min-width: 38px;
        height: 38px;
        font-size: 10px;
    }

    .faq-toggle {
        width: 30px;
        height: 30px;
    }

    .faq-question {
        font-size: 11.7px;
    }

    .faq-answer {
        padding-left: 48px;
        padding-right: 12px;
        font-size: 11px;
    }

    .faq-answer::before {
        left: 23px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .faq-group {
        opacity: 1;
        transform: none;
    }

    .faq-card {
        transform: none !important;
    }
}

/* ============================================================

   PERSONIUM HEADER — ENHANCED VERSION

   HEADER ONLY. About-page content is untouched.

   ============================================================ */



.site-header {

    position: sticky;

    top: 14px;

    z-index: 999;

    width: min(1160px, calc(100% - 32px));

    margin: 14px auto 0;

}



.header-inner {

    position: relative;

    min-height: 58px;

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 9px 12px 9px 16px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(220, 222, 240, 0.92);

    border-radius: 17px;

    box-shadow: 0 10px 30px rgba(56, 52, 125, 0.10);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

}



.site-header.scrolled .header-inner {

    background: rgba(255, 255, 255, 0.99);

    box-shadow: 0 16px 38px rgba(54, 51, 110, 0.15);

}



.header-brand {

    display: flex;

    align-items: center;

    gap: 9px;

    flex: 0 0 auto;

    color: var(--primary-dark);

    font-family: 'Sora', sans-serif;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.09em;

}



.header-brand img {

    width: 30px;

    height: 30px;

    padding: 3px;

    object-fit: contain;

    border: 1px solid rgba(118, 98, 233, 0.14);

    border-radius: 10px;

    background: linear-gradient(145deg, #f1eeff, #e4ddff);

}



.header-collapse {

    min-width: 0;

    flex: 1 1 auto;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 14px;

    margin-left: auto;

}



.header-nav {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 3px;

    padding: 3px;

    background: rgba(118, 98, 233, 0.045);

    border: 1px solid rgba(118, 98, 233, 0.08);

    border-radius: 11px;

}



.header-nav a {

    padding: 7px 10px;

    border-radius: 8px;

    color: #3a4467;

    font-size: 11px;

    font-weight: 650;

    white-space: nowrap;

    transition:

        color 0.2s ease,

        background 0.2s ease,

        transform 0.2s ease;

}



.header-nav a:hover,

.header-nav a.is-active,

.header-nav a:focus-visible {

    color: var(--primary-dark);

    background: #fff;

    outline: none;

}



.header-nav a:hover,

.header-nav a:focus-visible {

    transform: translateY(-1px);

}



.header-actions {

    flex: 0 0 auto;

    min-width: max-content;

    display: flex;

    align-items: center;

    gap: 8px;

}





/* Compact PC profile — prevents collision with Logout */

.header-profile {

    width: 42px;

    min-width: 42px;

    height: 42px;

    display: inline-grid;

    place-items: center;

    padding: 3px;

    flex: 0 0 42px;

    overflow: visible;

    color: var(--primary);

    border: 1px solid rgba(118, 98, 233, 0.18);

    border-radius: 12px;

    background: linear-gradient(145deg, #f7f5ff, #ece8ff);

    box-shadow: 0 5px 13px rgba(98, 82, 220, 0.10);

    transition:

        transform 0.22s ease,

        border-color 0.22s ease,

        box-shadow 0.22s ease;

}



.header-profile:hover,

.header-profile:focus-visible {

    transform: translateY(-2px);

    border-color: rgba(118, 98, 233, 0.34);

    box-shadow: 0 10px 22px rgba(98, 82, 220, 0.17);

    outline: none;

}



.header-profile-avatar {

    width: 34px;

    height: 34px;

    display: grid;

    place-items: center;

    overflow: hidden;

    border-radius: 9px;

    background: linear-gradient(145deg, #f1eeff, #ded7ff);

}



.header-profile-avatar > img {

    width: 100%;

    height: 100%;

    padding: 0;

    object-fit: cover;

    object-position: center;

    border-radius: 9px;

}



.header-default-profile {

    width: 100%;

    height: 100%;

    display: grid;

    place-items: center;

    color: var(--primary);

}



.header-default-profile svg {

    width: 20px;

    height: 20px;

}



.header-profile-copy {

    display: none;

}





/* Logout stays separate from profile */

.logout-btn {

    min-width: 82px;

    min-height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    flex: 0 0 auto;

    padding: 8px 12px;

    color: #b3324a;

    font-family: 'Sora', sans-serif;

    font-size: 10.5px;

    font-weight: 700;

    border: 1px solid rgba(217, 74, 94, 0.20);

    border-radius: 12px;

    background: rgba(217, 74, 94, 0.06);

    white-space: nowrap;

    transition:

        transform 0.2s ease,

        background 0.2s ease,

        color 0.2s ease,

        box-shadow 0.2s ease;

}



.logout-btn svg {

    width: 14px;

    height: 14px;

}



.logout-btn:hover,

.logout-btn:focus-visible {

    color: #fff;

    background: linear-gradient(135deg, #e46476, #c93a4d);

    border-color: transparent;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(217, 74, 94, 0.25);

    outline: none;

}



.header-cta {

    min-height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 9px 17px;

    color: #fff;

    background: linear-gradient(135deg, #7765ed, #5945ce);

    border-radius: 12px;

    font-family: 'Sora', sans-serif;

    font-size: 10.5px;

    font-weight: 700;

    white-space: nowrap;

    box-shadow: 0 7px 17px rgba(98, 82, 220, 0.25);

}



.nav-toggle {

    display: none;

}



.nav-toggle-label {

    display: none;

}





/* ============================================================

   SMALLER PC / TABLET HEADER — 651px to 900px

   ============================================================ */

@media (min-width: 651px) and (max-width: 900px) {



    .site-header {

        width: calc(100% - 24px);

    }



    .header-inner {

        gap: 10px;

        padding-left: 12px;

        padding-right: 10px;

    }



    .header-brand {

        gap: 7px;

        font-size: 11px;

    }



    .header-brand img {

        width: 28px;

        height: 28px;

    }



    .nav-toggle-label {

        display: none;

    }



    .header-collapse {

        width: auto;

        max-height: none;

        margin: 0 0 0 auto;

        padding: 0;

        flex: 1 1 auto;

        display: flex;

        flex-direction: row;

        align-items: center;

        justify-content: flex-end;

        gap: 8px;

        overflow: visible;

        opacity: 1;

        transform: none;

        border-top: 0;

        pointer-events: auto;

        transition: none;

    }



    .header-nav {

        width: auto;

        flex-direction: row;

        gap: 1px;

        padding: 2px;

    }



    .header-nav a {

        width: auto;

        padding: 6px 7px;

        font-size: 9.4px;

        border: 0;

        background: transparent;

    }



    .header-actions {

        width: auto;

        margin: 0;

        padding: 0;

        flex-direction: row;

        gap: 6px;

        border-top: 0;

    }



    .header-profile {

        width: 38px;

        min-width: 38px;

        height: 38px;

        flex-basis: 38px;

    }



    .header-profile-avatar {

        width: 30px;

        height: 30px;

    }



    .logout-btn {

        min-width: 38px;

        min-height: 38px;

        width: 38px;

        padding: 0;

    }



    .logout-btn span {

        display: none;

    }



    .header-cta {

        width: auto;

        min-height: 38px;

        padding: 8px 12px;

        font-size: 9.5px;

    }

}





/* ============================================================

   MOBILE HEADER — ≤ 650px

   ============================================================ */

@media (max-width: 650px) {



    .site-header {

        top: 10px;

        width: calc(100% - 16px);

        margin: 8px auto 0;

    }



    .header-inner {

        min-height: 54px;

        padding: 8px 10px 8px 11px;

        display: flex;

        flex-wrap: wrap;

        align-items: center;

        justify-content: space-between;

        gap: 0;

        row-gap: 8px;

        border-radius: 16px;

        box-shadow: 0 10px 28px rgba(48, 40, 108, 0.12);

    }



    .header-brand {

        min-width: 0;

        margin-right: auto;

        gap: 8px;

        font-size: 12px;

        letter-spacing: 0.075em;

    }



    .header-brand img {

        width: 28px;

        height: 28px;

        padding: 2px;

        border-radius: 9px;

    }



    .nav-toggle {

        position: absolute;

        opacity: 0;

        pointer-events: none;

    }



    .nav-toggle-label {

        width: 36px;

        height: 36px;

        margin-left: 10px;

        display: flex;

        flex-shrink: 0;

        align-items: center;

        justify-content: center;

        flex-direction: column;

        gap: 4px;

        cursor: pointer;

        border: 1px solid rgba(98, 82, 220, 0.14);

        border-radius: 11px;

        background: rgba(98, 82, 220, 0.07);

        -webkit-tap-highlight-color: transparent;

        user-select: none;

    }



    .nav-toggle-label span {

        width: 16px;

        height: 2px;

        display: block;

        border-radius: 999px;

        background: var(--primary);

        transform-origin: center;

        transition:

            transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),

            opacity 0.2s ease;

    }



    .header-collapse {

        flex: 0 0 100%;

        width: 100%;

        max-height: 0;

        margin: 0;

        padding: 0;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 8px;

        overflow: hidden;

        opacity: 0;

        transform: translateY(-7px);

        pointer-events: none;

        border-top: 0;

        transition:

            max-height 0.42s cubic-bezier(0.2, 0.7, 0.2, 1),

            opacity 0.24s ease,

            transform 0.30s ease,

            padding-top 0.32s ease,

            margin-top 0.32s ease;

    }



    .nav-toggle:checked ~ .header-collapse {

        max-height: 590px;

        margin-top: 2px;

        padding-top: 10px;

        opacity: 1;

        transform: translateY(0);

        pointer-events: auto;

        border-top: 1px solid rgba(98, 82, 220, 0.10);

    }



    .header-nav {

        width: 100%;

        padding: 0;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 7px;

        border: 0;

        background: transparent;

    }



    .header-nav a {

        width: 100%;

        min-height: 42px;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 9px 10px;

        text-align: center;

        font-size: 10.5px;

        font-weight: 700;

        border: 1px solid rgba(98, 82, 220, 0.10);

        border-radius: 11px;

        background: linear-gradient(

            135deg,

            rgba(255,255,255,.95),

            rgba(245,243,255,.90)

        );

    }



    .header-nav a.is-active {

        color: var(--primary-dark);

        border-color: rgba(98, 82, 220, 0.20);

        background: rgba(98, 82, 220, 0.10);

    }



    .header-actions {

        width: 100%;

        min-width: 0;

        margin-top: 1px;

        padding-top: 9px;

        display: grid;

        grid-template-columns: minmax(0, 1fr) auto;

        align-items: stretch;

        gap: 7px;

        border-top: 1px dashed rgba(98, 82, 220, 0.17);

    }



    .header-profile {

        width: 100%;

        min-width: 0;

        height: 50px;

        padding: 5px 9px 5px 6px;

        display: flex;

        align-items: center;

        justify-content: flex-start;

        gap: 9px;

        flex: none;

        border-radius: 12px;

    }



    .header-profile-avatar {

        width: 38px;

        height: 38px;

        flex: 0 0 38px;

        border-radius: 10px;

    }



    .header-profile-avatar > img {

        border-radius: 10px;

    }



    .header-profile-copy {

        min-width: 0;

        display: flex;

        flex: 1;

        flex-direction: column;

        align-items: flex-start;

        gap: 1px;

        line-height: 1.1;

    }



    .header-profile-copy > span {

        color: var(--muted);

        font-size: 8.5px;

        font-weight: 700;

    }



    .header-profile-copy > strong {

        color: var(--primary-dark);

        font-family: 'Sora', sans-serif;

        font-size: 10.5px;

        font-weight: 800;

        letter-spacing: 0.06em;

    }



    .logout-btn {

        width: 50px;

        min-width: 50px;

        min-height: 50px;

        padding: 0;

        border-radius: 12px;

    }



    .logout-btn svg {

        width: 17px;

        height: 17px;

    }



    .logout-btn span {

        display: none;

    }



    .header-cta {

        grid-column: 1 / -1;

        width: 100%;

        min-height: 46px;

        justify-content: center;

        border-radius: 12px;

        font-size: 11px;

    }



    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {

        transform: translateY(6px) rotate(45deg);

    }



    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {

        opacity: 0;

        transform: scaleX(0);

    }



    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {

        transform: translateY(-6px) rotate(-45deg);

    }

}





/* ============================================================

   SMALL MOBILE HEADER — ≤ 420px

   ============================================================ */

@media (max-width: 420px) {



    .site-header {

        top: 8px;

        width: calc(100% - 14px);

        margin-top: 7px;

    }



    .header-inner {

        min-height: 50px;

        padding: 7px 8px 7px 9px;

        border-radius: 14px;

    }



    .header-brand {

        gap: 7px;

        font-size: 11px;

        letter-spacing: 0.06em;

    }



    .header-brand img {

        width: 26px;

        height: 26px;

    }



    .nav-toggle-label {

        width: 32px;

        height: 32px;

        margin-left: 7px;

        border-radius: 10px;

    }



    .nav-toggle-label span {

        width: 14px;

    }



    .nav-toggle:checked ~ .header-collapse {

        max-height: 560px;

        padding-top: 8px;

    }



    .header-nav {

        gap: 6px;

    }



    .header-nav a {

        min-height: 39px;

        padding: 8px 7px;

        font-size: 9.5px;

        border-radius: 10px;

    }



    .header-actions {

        gap: 6px;

        padding-top: 8px;

    }



    .header-profile {

        height: 46px;

        padding: 4px 7px 4px 5px;

        gap: 7px;

        border-radius: 11px;

    }



    .header-profile-avatar {

        width: 36px;

        height: 36px;

        flex-basis: 36px;

    }



    .header-profile-copy > span {

        font-size: 8px;

    }



    .header-profile-copy > strong {

        font-size: 10px;

    }



    .logout-btn {

        width: 46px;

        min-width: 46px;

        min-height: 46px;

        border-radius: 11px;

    }



    .header-cta {

        min-height: 43px;

        padding: 9px 13px;

        font-size: 10px;

        border-radius: 11px;

    }

}


/* =========================================================
   RESEARCHER CONTACTS
   ========================================================= */
.researcher-contact {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.researcher-contact-item {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: color .2s ease, transform .2s ease;
}

.researcher-contact-item svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    color: var(--primary);
}

.researcher-contact-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.researcher-contact-item:hover,
.researcher-contact-item:focus-visible {
    color: var(--primary-dark);
    transform: translateX(2px);
    outline: none;
}

@media (max-width: 520px) {
    .researcher-contact {
        gap: 5px;
    }

    .researcher-contact-item {
        font-size: 9.8px;
    }

    .researcher-contact-item svg {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }
}


/* FAQ navigation integration */
@media (min-width: 651px) and (max-width: 900px) {
    .header-nav a {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 9px;
    }
}
