/*
 * Shared exFIT theme shell for public-facing pages.
 *
 * Design direction:
 * - Dark charcoal background, never pure black
 * - Neon orange actions and gradients
 * - Neon purple accents for borders and highlights
 * - Rounded surfaces with blurred glass treatment
 * - Full-page fade-in and fade-out transitions
 *
 * This file is meant to become the common UX layer for landing, auth,
 * registration completion, onboarding, profile, invitations, newsletter,
 * and general marketing-style pages. Keep page-specific layout additions
 * small and reuse these primitives where possible.
 */

:root {
    --bg-main: #080910;
    --bg-deep: #0e1018;
    --bg-elevated: rgba(14, 16, 24, 0.84);
    --bg-soft: rgba(23, 25, 37, 0.88);
    --bg-panel: rgba(11, 13, 22, 0.9);
    --accent-orange: #ff7a1a;
    --accent-orange-bright: #ffb254;
    --accent-purple: #bb55ff;
    --accent-purple-soft: rgba(187, 85, 255, 0.26);
    --accent-purple-line: rgba(187, 85, 255, 0.52);
    --text-main: #f6f3ff;
    --text-soft: #dad5ec;
    --text-muted: #aaa7be;
    --border-subtle: rgba(182, 128, 255, 0.2);
    --border-strong: rgba(196, 128, 255, 0.4);
    --danger: #ff5878;
    --success: #3be0ae;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.48);
    --shadow-deep: 0 34px 90px rgba(0, 0, 0, 0.56);
    --radius-hero: 32px;
    --radius-xl: 26px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-pill: 999px;
    --transition-fast: 180ms ease;
    --transition-base: 260ms ease;
    --transition-slow: 420ms ease;
    --font-body: "Bahnschrift", "Aptos", "Trebuchet MS", sans-serif;
    --font-display: "Aptos Display", "Bahnschrift", "Segoe UI Variable Display", sans-serif;
    --bg-video-fit: contain;
    --bg-video-scale: 1;
    --bg-video-blur: 6px;
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.xfit-theme {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(46, 17, 83, 0.68) 0, rgba(8, 9, 16, 0.86) 42%, rgba(6, 7, 13, 0.94) 100%),
        linear-gradient(180deg, #0d0e17 0%, #080910 100%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    animation: xfit-page-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
    overflow-x: hidden;
}

body.xfit-theme.is-leaving {
    animation: xfit-page-out 220ms ease forwards;
}

body.xfit-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.7), transparent 82%);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}

@keyframes xfit-page-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes xfit-page-out {
    from {
        opacity: 1;
        filter: blur(0);
    }

    to {
        opacity: 0;
        filter: blur(5px);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: var(--bg-video-fit);
    object-position: center center;
    z-index: -3;
    opacity: 0.34;
    filter: blur(var(--bg-video-blur)) saturate(1.08) contrast(1.04);
    transform: scale(var(--bg-video-scale));
    pointer-events: none;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at top left, rgba(75, 28, 123, 0.38) 0, rgba(7, 9, 15, 0.52) 40%, rgba(5, 6, 10, 0.86) 100%),
        linear-gradient(180deg, rgba(4, 6, 10, 0.22), rgba(4, 6, 10, 0.84));
    backdrop-filter: blur(3px);
    pointer-events: none;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.shell,
.footer-inner {
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
}

.shell {
    padding: 1.4rem 0 3.4rem;
}

header.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 2.4rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(17, 19, 31, 0.88), rgba(10, 11, 18, 0.72));
    border: 1px solid rgba(188, 104, 255, 0.2);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 0.45rem;
    background:
        linear-gradient(160deg, rgba(255, 122, 26, 0.22), rgba(187, 85, 255, 0.3)),
        rgba(13, 14, 22, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 26px rgba(187, 85, 255, 0.18);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.brand-title,
.section-title,
.hero-title,
.newsletter-title,
.hero-card-title,
.card h3,
.registration-card-header h3 {
    font-family: var(--font-display);
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.brand-sub {
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.nav-actions,
.hero-ctas,
.registration-actions,
.newsletter-form,
.modal-actions,
.hub-pills,
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav-actions {
    align-items: center;
    justify-content: flex-end;
}

.pill-status,
.hero-left-label,
.badge-pill,
.hero-chip,
.registration-mode-pill,
.hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.2rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(195, 131, 255, 0.24);
    background: linear-gradient(180deg, rgba(20, 22, 36, 0.9), rgba(11, 12, 20, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pill-status {
    font-size: 0.79rem;
}

.pill-dot,
.badge-pill span.dot {
    flex: 0 0 auto;
    border-radius: 999px;
}

.pill-dot {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--registration-indicator, var(--accent-purple));
    box-shadow: 0 0 18px var(--registration-indicator, var(--accent-purple));
}

.badge-pill {
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
}

.badge-pill span.dot {
    width: 0.45rem;
    height: 0.45rem;
    background: var(--accent-purple);
    box-shadow: 0 0 12px rgba(187, 85, 255, 0.7);
}

.hero-left-label {
    margin-bottom: 1.15rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.hero-left-label span.badge {
    padding: 0.26rem 0.72rem;
    border-radius: var(--radius-pill);
    color: var(--accent-orange-bright);
    background: rgba(255, 122, 26, 0.14);
    border: 1px solid rgba(255, 122, 26, 0.36);
}

.btn,
.nav-btn,
.newsletter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0.72rem 1.25rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        filter var(--transition-fast);
}

.btn:hover,
.nav-btn:hover,
.newsletter-submit:hover {
    transform: translateY(-1px);
}

.btn:focus-visible,
.nav-btn:focus-visible,
.newsletter-submit:focus-visible,
.newsletter-input:focus-visible,
.modal-input:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 122, 26, 0.18),
        0 0 0 1px rgba(187, 85, 255, 0.28);
}

.btn--primary,
.nav-btn--primary,
.newsletter-submit {
    background: linear-gradient(120deg, var(--accent-orange), var(--accent-purple));
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.36),
        0 0 32px rgba(255, 122, 26, 0.16);
}

.btn--primary:hover,
.nav-btn--primary:hover,
.newsletter-submit:hover {
    filter: brightness(1.04) saturate(1.06);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.44),
        0 0 36px rgba(255, 122, 26, 0.2);
}

.btn--ghost,
.nav-btn--ghost {
    color: var(--text-main);
    background: rgba(14, 15, 24, 0.72);
    border-color: rgba(190, 130, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover,
.nav-btn--ghost:hover {
    background: rgba(22, 24, 38, 0.86);
    border-color: rgba(255, 122, 26, 0.32);
}

.btn--ghost-dark {
    background: rgba(5, 7, 13, 0.88);
}

.hero,
.section-grid,
.registration-grid,
.learning-hub,
.footer-inner {
    display: grid;
    gap: 1.7rem;
}

.hero {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 2.3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.45rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 11ch;
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--accent-orange-bright), #f6ddff 30%, var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-sub,
.card p,
.hub-list,
.registration-highlight,
.reg-note,
.newsletter-desc,
.footer-contact,
.hero-meta,
.hero-progress-label,
.hero-checklist,
.modal-reason,
.modal-label,
.modal-hint {
    color: var(--text-muted);
}

.hero-sub {
    margin: 0 0 1.55rem;
    max-width: 40rem;
    font-size: 1rem;
}

.hero-sub strong,
.hero-meta-item strong,
.footer-contact strong {
    color: var(--text-main);
}

.hero-meta {
    margin-top: 0.25rem;
    font-size: 0.82rem;
}

.hero-meta-item strong {
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.92rem;
}

.hero-right,
.card,
.hero-card,
.hub-visual,
.footer-stat,
.modal-card {
    position: relative;
    overflow: hidden;
}

.card,
.hero-card,
.hub-visual,
.footer-stat,
.modal-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(196, 128, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(18, 20, 31, 0.94), rgba(10, 12, 19, 0.88)),
        rgba(11, 13, 22, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.card::before,
.hero-card::before,
.hub-visual::before,
.modal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 122, 26, 0), rgba(255, 122, 26, 0.75), rgba(187, 85, 255, 0.78), rgba(255, 122, 26, 0));
    opacity: 0.92;
}

.card {
    padding: 1.35rem 1.35rem 1.25rem;
}

.card h3,
.hero-card-title,
.section-title,
.newsletter-title {
    margin-top: 0;
    color: var(--text-main);
}

.card h3,
.hero-card-title {
    font-size: 1rem;
}

.card p {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
}

.card ul,
.card ol,
.hub-list {
    margin: 0.6rem 0 0;
    padding-left: 1.05rem;
    font-size: 0.88rem;
}

.card li,
.hub-list li {
    margin-bottom: 0.45rem;
}

.section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 1.25rem;
}

.section-kicker,
.hub-tag,
.registration-tag,
.footer-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.section-kicker {
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: var(--accent-purple);
}

.section-title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card {
    min-height: 100%;
    padding: 1.45rem 1.25rem;
    background:
        radial-gradient(circle at top, rgba(187, 85, 255, 0.24) 0, rgba(13, 14, 24, 0.94) 44%, rgba(8, 9, 16, 0.98) 100%);
}

.hero-bg-image,
.hub-visual::after {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    filter: blur(4px);
    transform: scale(1.08);
    z-index: -1;
}

.hero-bg-image {
    background-image: url("../images/futureregistration.webp");
}

.hub-visual::after {
    content: "";
    background-image: url("../images/futuristicgym1.webp");
}

.public-tools-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
}

.visitor-return,
.tools-consent,
.public-tools-panel,
.public-tools-side > *,
.tool-result {
    border: 1px solid rgba(196, 128, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(18, 20, 31, 0.94), rgba(10, 12, 19, 0.88)),
        rgba(11, 13, 22, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.visitor-return {
    width: min(100%, 330px);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.visitor-return-title {
    margin-bottom: 0.25rem;
    color: var(--text-main);
    font-weight: 800;
}

.visitor-return-copy,
.tools-consent span,
.mini-article p,
.visitor-locations p,
.location-empty {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.public-tools-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 1.7rem;
}

.public-tools-panel,
.public-tools-side > * {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.public-tools-panel.card {
    padding: 1rem;
}

.tools-consent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.95rem;
    border-radius: var(--radius-md);
}

.tools-consent strong {
    display: block;
    color: var(--text-main);
}

.tools-consent.is-hidden {
    display: none;
}

.tools-consent.is-muted {
    opacity: 0.72;
}

.tools-consent.needs-attention {
    border-color: rgba(255, 122, 26, 0.74);
    box-shadow:
        var(--shadow-soft),
        0 0 0 3px rgba(255, 122, 26, 0.14);
}

.tools-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.tools-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.tool-tab,
.location-toggle {
    min-height: 2.35rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(190, 130, 255, 0.24);
    background: rgba(14, 15, 24, 0.72);
    color: var(--text-soft);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0.45rem 0.9rem;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.tool-tab:hover,
.location-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 26, 0.32);
}

.tool-tab.is-active {
    color: #fff;
    border-color: rgba(255, 122, 26, 0.46);
    background: linear-gradient(120deg, rgba(255, 122, 26, 0.5), rgba(187, 85, 255, 0.46));
}

.tool-pane {
    display: none;
}

.tool-pane.is-active {
    display: block;
}

.tool-pane-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
    gap: 1rem;
    align-items: stretch;
}

.tool-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    align-content: start;
}

.tool-form label {
    position: relative;
    display: grid;
    gap: 0.3rem;
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 800;
}

.tool-form input,
.tool-form select {
    width: 100%;
    min-height: 2.75rem;
    border-radius: 14px;
    border: 1px solid rgba(190, 130, 255, 0.22);
    background: rgba(5, 7, 13, 0.74);
    color: var(--text-main);
    font: inherit;
    padding: 0.65rem 0.75rem;
}

.tool-form .btn {
    align-self: end;
}

.input-unit {
    position: absolute;
    right: 0.7rem;
    bottom: 0.78rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    pointer-events: none;
}

.tool-result.card {
    border-radius: var(--radius-md);
    padding: 1rem;
    min-height: 210px;
}

.tool-result h3,
.mini-article h3,
.visitor-locations h3 {
    margin: 0 0 0.45rem;
    color: var(--text-main);
}

.tool-result p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.result-number {
    margin: 0.2rem 0 0.5rem;
    color: var(--accent-orange-bright);
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.05;
}

.result-detail {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.public-tools-side {
    display: grid;
    gap: 1rem;
}

.public-tools-side > .card {
    padding: 1rem;
}

.guest-summary-line,
.location-row,
.visitor-locations-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.guest-summary-line {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(196, 128, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.guest-summary-line:last-child {
    border-bottom: 0;
}

.guest-summary-line strong {
    color: var(--text-main);
}

.location-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.location-row {
    min-height: 2.45rem;
    border-bottom: 1px solid rgba(196, 128, 255, 0.12);
    color: var(--text-soft);
    font-size: 0.88rem;
}

.location-row:last-child {
    border-bottom: 0;
}

.location-rank {
    display: inline-grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(255, 122, 26, 0.16);
    color: var(--accent-orange-bright);
    font-size: 0.76rem;
    font-weight: 900;
}

.location-name {
    flex: 1 1 auto;
}

.hero-card-header,
.registration-card-header,
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.hero-card-title {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-chip,
.registration-mode-pill,
.hub-pill {
    font-size: 0.74rem;
}

.hero-progress {
    margin: 0.85rem 0 1rem;
}

.hero-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
    font-size: 0.79rem;
}

.hero-progress-bar {
    height: 0.55rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(52, 58, 83, 0.78);
}

.hero-progress-fill {
    width: 68%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-purple));
    box-shadow: 0 0 16px rgba(255, 122, 26, 0.52);
}

.hero-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
}

.hero-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.3rem 0;
}

.hero-check {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    border-radius: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 224, 174, 0.55);
    color: var(--success);
    background: rgba(59, 224, 174, 0.08);
    box-shadow: 0 0 16px rgba(59, 224, 174, 0.12);
    font-size: 0.68rem;
}

.learning-hub {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.9fr);
    align-items: stretch;
}

.hub-tag,
.registration-tag {
    color: var(--accent-orange);
    font-size: 0.76rem;
}

.hub-visual {
    padding: 1.2rem 1.25rem;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 26, 0.22), rgba(10, 12, 19, 0.95));
}

.hub-note {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.registration-grid {
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1.95fr);
}

.registration-highlight {
    font-size: 0.9rem;
    margin-bottom: 0.95rem;
}

.reg-note {
    font-size: 0.8rem;
}

footer.site-footer {
    margin-top: auto;
    padding-bottom: 2.2rem;
}

.footer-inner {
    grid-template-columns: minmax(0, 2.25fr) minmax(0, 1.75fr);
    padding: 1.4rem 0 0;
    border-top: 1px solid rgba(196, 128, 255, 0.16);
}

.newsletter-title {
    font-size: 1.02rem;
    margin: 0 0 0.45rem;
}

.newsletter-desc {
    margin: 0 0 0.85rem;
}

.newsletter-form {
    align-items: stretch;
}

.newsletter-input,
.modal-input {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid rgba(196, 128, 255, 0.2);
    background: rgba(6, 8, 13, 0.74);
    color: var(--text-main);
    font: inherit;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.newsletter-input {
    flex: 1 1 16rem;
    min-width: 14rem;
    border-radius: var(--radius-pill);
}

.newsletter-input::placeholder,
.modal-input::placeholder {
    color: rgba(214, 207, 233, 0.46);
}

.newsletter-input:hover,
.modal-input:hover {
    border-color: rgba(255, 122, 26, 0.22);
}

.footer-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.footer-stat {
    padding: 1rem;
    min-height: 100%;
}

.footer-stat-label {
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-stat-value {
    font-size: 1rem;
    color: var(--text-main);
}

.footer-contact {
    margin-top: 0.9rem;
    font-size: 0.84rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-card {
    width: min(36rem, 100%);
    padding: 1.2rem;
}

.modal-x {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-x:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.03);
}

.modal-reason {
    margin: 0.8rem 0 1rem;
}

.modal-label {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
}

.modal-hint {
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

.modal-error {
    margin-top: 0.8rem;
    color: #ff8298;
}

.hidden {
    display: none !important;
}

.news-link {
    color: #d39aff;
    text-decoration: underline;
    text-decoration-color: rgba(211, 154, 255, 0.6);
    text-underline-offset: 0.18em;
}

.news-link:hover {
    color: #f3deff;
}

@media (max-width: 980px) {
    .hero,
    .registration-grid,
    .learning-hub,
    .public-tools-layout,
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .section-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .public-tools-header,
    .tools-consent,
    .visitor-locations-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .visitor-return {
        width: 100%;
    }

    .tool-pane-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    header.site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .shell,
    .footer-inner {
        width: min(100% - 1rem, 1140px);
    }

    .shell {
        padding-top: 0.7rem;
        padding-bottom: 2.5rem;
    }

    header.site-header {
        padding: 0.95rem;
        border-radius: 1.3rem;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .btn,
    .nav-btn,
    .newsletter-submit {
        width: 100%;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .card,
    .hero-card,
    .hub-visual,
    .modal-card {
        padding: 1.1rem;
    }

    .footer-meta,
    .newsletter-form,
    .tool-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .newsletter-input {
        min-width: 0;
    }

    .modal-actions {
        flex-direction: column;
    }

    .tools-consent-actions,
    .tool-actions,
    .tools-tabs {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.xfit-theme,
    body.xfit-theme.is-leaving {
        animation: none;
    }

    .btn,
    .nav-btn,
    .newsletter-submit,
    .modal-x {
        transition: none;
    }

    .bg-video {
        filter: blur(4px);
    }
}

/* Auth Pages */
body.xfit-theme.auth-theme {
    color: var(--text, var(--text-main));
    min-height: 100vh;
}

body.xfit-theme.auth-theme:not(.login-theme) {
    display: grid;
    place-items: center;
    padding: 18px;
}

body.xfit-theme.auth-theme.login-theme {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 42px 16px 24px;
    overflow: hidden;
    --login-bg-image: url("/assets/auth-bg1.png");
}

body.xfit-theme.auth-theme.login-theme::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--login-bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(10px) saturate(1.15) contrast(1.05);
    transform: scale(1.06);
    z-index: -3;
}

.auth-theme .grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    opacity: 0.25;
    z-index: -1;
}

.auth-theme .bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background:
        radial-gradient(1200px 800px at 20% 10%, rgba(176, 38, 255, 0.18), transparent 60%),
        radial-gradient(1200px 800px at 80% 90%, rgba(255, 106, 0, 0.14), transparent 60%),
        #07070b;
}

.auth-theme .bg img {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: blur(18px) saturate(1.1) contrast(1.05);
    opacity: 0.55;
    transform: scale(1.06);
}

.auth-theme .bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 600px at 20% 10%, rgba(255, 106, 0, 0.18), transparent 60%),
        radial-gradient(900px 600px at 80% 90%, rgba(176, 38, 255, 0.18), transparent 60%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.auth-theme .blob {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(46px);
    opacity: 0.18;
    z-index: -2;
    animation: floaty 14s ease-in-out infinite;
}

.auth-theme .blob.orange {
    background: var(--neonOrange, var(--accent-orange));
    top: -140px;
    left: -120px;
}

.auth-theme .blob.purple {
    background: var(--neonPurple, var(--accent-purple));
    bottom: -170px;
    right: -140px;
    animation-delay: -6s;
}

@keyframes floaty {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 18px) scale(1.06);
    }
}

.auth-theme .wrap {
    width: min(420px, 92vw);
    position: relative;
}

.auth-theme .container,
.auth-theme #authBox {
    width: 100%;
    background: linear-gradient(180deg, var(--card, rgba(10, 10, 14, 0.7)), var(--card-2, var(--card2, rgba(10, 10, 14, 0.48))));
    border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));
    border-radius: 18px;
    padding: 22px 20px 18px;
    box-shadow: var(--shadow, var(--shadow-soft));
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.auth-theme .container::before,
.auth-theme #authBox::before {
    content: "";
    position: absolute;
    left: -40%;
    right: -40%;
    top: -2px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neonOrange, var(--orange, var(--accent-orange))), var(--neonPurple, var(--purple, var(--accent-purple))), transparent);
    filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.65)) drop-shadow(0 0 14px rgba(176, 38, 255, 0.55));
    opacity: 0.95;
}

.auth-theme .container > *,
.auth-theme #authBox > * {
    position: relative;
}

.auth-theme .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 14px;
    width: fit-content;
    opacity: 0.95;
    user-select: none;
}

.auth-theme .brandRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-theme .brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid rgba(255, 138, 0, 0.9);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2), 0 0 22px rgba(255, 138, 0, 0.25);
    position: relative;
}

.auth-theme .brand-badge::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    border: 2px solid rgba(168, 85, 247, 0.65);
    opacity: 0.9;
}

.auth-theme .brand-title {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.auth-theme .brand-title span {
    color: var(--orange, var(--accent-orange));
}

.auth-theme .brand-sub {
    margin-top: -2px;
    font-size: 0.82rem;
    color: var(--muted, var(--text-muted));
    letter-spacing: 0.02em;
}

.auth-theme h2,
.auth-theme .auth-head h2 {
    margin: 0;
    text-align: left;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-theme .accent {
    display: inline-block;
    margin-left: 6px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--neonOrange, var(--orange, var(--accent-orange))), var(--neonPurple, var(--purple, var(--accent-purple))));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-theme .sub,
.auth-theme .auth-head p,
.auth-theme .hint,
.auth-theme .footer-note {
    color: var(--muted, var(--text-muted));
}

.auth-theme .sub {
    font-size: 13px;
    margin: 6px 0 14px;
    line-height: 1.4;
}

.auth-theme .auth-head {
    margin: 0 0 14px;
}

.auth-theme .auth-head p {
    margin: 7px 0 0;
    font-size: 0.92rem;
    line-height: 1.35;
}

.auth-theme .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted, var(--text-muted));
}

.auth-theme .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--neonOrange, var(--orange, var(--accent-orange))), var(--neonPurple, var(--purple, var(--accent-purple))));
    box-shadow: 0 0 12px rgba(255, 106, 0, 0.55), 0 0 16px rgba(176, 38, 255, 0.45);
}

.auth-theme .steps {
    background: var(--card2, rgba(10, 10, 14, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px;
    margin: 10px 0 16px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-theme .steps .row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 2px;
}

.auth-theme .pill {
    flex: 0 0 auto;
    min-height: auto;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.auth-theme .pill.s1 {
    box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.18) inset;
}

.auth-theme .pill.s2 {
    box-shadow: 0 0 0 1px rgba(176, 38, 255, 0.18) inset;
}

.auth-theme .pill.s3 {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.auth-theme label {
    display: block;
    font-size: 0.86rem;
    color: rgba(203, 213, 225, 0.92);
    margin: 10px 0 6px;
}

.auth-theme input:not([type="checkbox"]):not([type="radio"]),
.auth-theme select,
.auth-theme textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(2, 6, 23, 0.55);
    color: var(--text, var(--text-main));
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-theme input::placeholder,
.auth-theme textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.auth-theme input:focus,
.auth-theme select:focus,
.auth-theme textarea:focus {
    border-color: rgba(255, 138, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.12), 0 0 0 1px rgba(176, 38, 255, 0.16);
}

.auth-theme .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.auth-theme .row label {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(203, 213, 225, 0.85);
}

.auth-theme button:not(.text-link) {
    width: 100%;
    margin-top: 14px;
    padding: 11px 12px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--neonOrange, var(--orange, var(--accent-orange))), var(--neonPurple, var(--purple, var(--accent-purple))));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.08s ease, filter 0.15s ease, opacity 0.15s ease;
}

.auth-theme button:not(.text-link):hover:not(:disabled) {
    filter: brightness(1.06) saturate(1.05);
}

.auth-theme button:not(.text-link):active:not(:disabled) {
    transform: translateY(1px) scale(0.995);
}

.auth-theme button:not(.text-link)[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-theme .toggle {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid rgba(176, 38, 255, 0.55);
    padding-bottom: 2px;
}

.auth-theme .toggle:hover {
    color: #fff;
    border-bottom-color: rgba(255, 106, 0, 0.65);
}

body.xfit-theme.auth-theme.login-theme .toggle {
    display: block;
    margin: 14px 0 0;
    text-align: center;
}

.auth-theme .hint {
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

.auth-theme .error,
.auth-theme .notice,
.auth-theme .ok {
    display: block;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.auth-theme .error {
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: rgba(254, 202, 202, 0.95);
}

.auth-theme .notice,
.auth-theme .ok {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgba(220, 252, 231, 0.95);
}

.auth-theme .text-link {
    background: none;
    border: none;
    color: rgba(255, 190, 90, 0.98);
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    width: auto;
    box-shadow: none;
}

.auth-theme .text-link:hover {
    text-decoration: underline;
}

.auth-theme .footer-note {
    margin: 14px auto 0;
    text-align: center;
    font-size: 0.8rem;
}

.auth-theme .footer-note b {
    color: rgba(255, 190, 90, 0.95);
}

.auth-theme .container.registration-modal {
    width: min(980px, calc(100vw - 2rem));
    max-width: 980px;
    padding: 0;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(20, 22, 34, 0.94), rgba(10, 11, 18, 0.92)),
        rgba(10, 10, 14, 0.84);
    box-shadow:
        0 38px 90px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.auth-theme .container.registration-modal::before {
    left: -10%;
    right: -10%;
    top: 0;
    height: 4px;
}

.auth-theme .registration-modal__shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
    min-height: min(78vh, 760px);
}

.auth-theme .registration-modal__hero,
.auth-theme .registration-modal__form-panel {
    position: relative;
    padding: 2rem;
}

.auth-theme .registration-modal__hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.4rem;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 122, 26, 0.18), transparent 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(187, 85, 255, 0.18), transparent 58%),
        linear-gradient(180deg, rgba(28, 31, 46, 0.94), rgba(17, 19, 31, 0.92));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-theme .registration-modal__form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(14, 15, 24, 0.96), rgba(10, 11, 18, 0.94)),
        rgba(9, 10, 16, 0.96);
}

.auth-theme .registration-modal__hero-head {
    align-items: flex-start;
    margin-bottom: 0;
}

.auth-theme .registration-modal__eyebrow {
    margin-bottom: 0.55rem;
    color: rgba(255, 210, 176, 0.92);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-theme .registration-modal__lead {
    max-width: 28rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.auth-theme .registration-modal__invite-note {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-theme .registration-modal__steps {
    margin: 0;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
        rgba(11, 13, 21, 0.5);
}

.auth-theme .registration-modal__steps .row {
    align-items: flex-start;
}

.auth-theme .registration-modal__steps .sub {
    display: block;
    margin: 0.18rem 0 0;
    font-size: 0.8rem;
}

.auth-theme .registration-modal__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.auth-theme .registration-modal__meta-card {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(5, 7, 14, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-theme .registration-modal__meta-label {
    margin-bottom: 0.35rem;
    color: rgba(203, 213, 225, 0.68);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-theme .registration-modal__meta-value {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-theme .registration-modal__form-head {
    margin-bottom: 1.1rem;
}

.auth-theme .registration-modal__form-head .sub {
    margin-bottom: 0;
}

.auth-theme .registration-modal__resend-card {
    margin: 0 0 1rem;
    padding: 1rem 1.05rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
        rgba(11, 13, 21, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.auth-theme .registration-modal__resend-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.auth-theme .registration-modal__resend-title {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.94);
}

.auth-theme .registration-modal__resend-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.auth-theme .registration-modal__resend-form input[type="email"] {
    min-width: min(280px, 100%);
}

.auth-theme .registration-modal__resend-form button {
    width: auto;
    margin-top: 0;
    padding-inline: 1rem;
    white-space: nowrap;
}

.auth-theme .registration-modal__login-link {
    margin-top: 1rem;
}

.auth-theme .hp-wrap {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
}

/* Onboarding */
body.xfit-theme.onboarding {
    color: var(--text, var(--text-main));
}

body.xfit-theme.onboarding .page {
    width: min(980px, 92vw);
    margin: 0 auto;
    padding: 22px 0 40px;
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    opacity: 1;
    transition: opacity 450ms ease, transform 450ms ease;
    z-index: 1;
}

body.xfit-theme.onboarding .page-header {
    padding: 6px 2px 16px;
}

body.xfit-theme.onboarding .page-header h1 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    letter-spacing: 0.2px;
    color: var(--orange, var(--accent-orange));
}

body.xfit-theme.onboarding .page-header p,
body.xfit-theme.onboarding .muted {
    color: var(--muted, var(--text-muted));
}

body.xfit-theme.onboarding .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line, rgba(95, 14, 149, 0.66));
    box-shadow: var(--shadow, var(--shadow-soft));
    border-radius: var(--radius2, 18px);
    padding: 16px;
    margin: 14px 0;
    backdrop-filter: blur(6px);
}

body.xfit-theme.onboarding .card h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

body.xfit-theme.onboarding .row {
    display: flex;
    align-items: center;
}

body.xfit-theme.onboarding .label {
    color: var(--muted, var(--text-muted));
    font-size: 0.9rem;
}

body.xfit-theme.onboarding .value {
    font-size: 1.25rem;
    font-weight: 700;
}

body.xfit-theme.onboarding .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line, rgba(95, 14, 149, 0.66));
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted, var(--text-muted));
    font-size: 0.86rem;
}

body.xfit-theme.onboarding .pill.ok {
    border-color: rgba(157, 255, 58, 0.25);
    color: rgba(157, 255, 58, 0.95);
    background: rgba(157, 255, 58, 0.06);
}

body.xfit-theme.onboarding .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 122, 24, 0.35);
    background: rgba(255, 122, 24, 0.5);
    color: var(--text, var(--text-main));
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

body.xfit-theme.onboarding .btn:hover {
    background: rgba(255, 122, 24, 0.14);
    text-decoration: none;
}

body.xfit-theme.onboarding .btn:active {
    transform: translateY(1px);
}

body.xfit-theme.onboarding .btn-secondary {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.1);
}

body.xfit-theme.onboarding .btn-secondary:hover {
    background: rgba(168, 85, 247, 0.14);
}

body.xfit-theme.onboarding .progressbar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--line, rgba(95, 14, 149, 0.66));
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    margin-top: 12px;
}

body.xfit-theme.onboarding .progressbar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 122, 24, 0.95), rgba(168, 85, 247, 0.95), rgba(157, 255, 58, 0.95));
}

body.xfit-theme.onboarding .checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.xfit-theme.onboarding .checklist > .check-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

body.xfit-theme.onboarding .check-item {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius, 14px);
    border: 1px solid var(--line, rgba(95, 14, 149, 0.66));
    background: rgba(0, 0, 0, 0.18);
}

body.xfit-theme.onboarding .check-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.xfit-theme.onboarding .check-title {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.xfit-theme.onboarding .check-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

body.xfit-theme.onboarding .check-dot.done {
    border-color: rgba(157, 255, 58, 0.5);
    background: rgba(157, 255, 58, 0.55);
    box-shadow: 0 0 18px rgba(157, 255, 58, 0.18);
}

body.xfit-theme.onboarding input,
body.xfit-theme.onboarding select,
body.xfit-theme.onboarding textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line, rgba(95, 14, 149, 0.66));
    background: rgba(0, 0, 0, 0.22);
    color: var(--text, var(--text-main));
    outline: none;
}

body.xfit-theme.onboarding input:focus,
body.xfit-theme.onboarding select:focus,
body.xfit-theme.onboarding textarea:focus {
    border-color: rgba(255, 122, 24, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.12);
}

body.xfit-theme.onboarding .hr {
    height: 1px;
    background: var(--line, rgba(95, 14, 149, 0.66));
    margin: 14px 0;
}

/* Registration + Onboarding Flow */
.flow-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 0 0 3.2rem;
}

.flow-shell--narrow {
    width: min(760px, 100%);
}

.flow-hero,
.flow-panel {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(196, 128, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(17, 19, 31, 0.94), rgba(9, 11, 18, 0.84)),
        rgba(11, 13, 22, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.flow-hero {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.flow-panel {
    padding: 1.5rem;
}

.flow-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(196, 128, 255, 0.18);
    color: var(--text-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flow-title,
.flow-step-title,
.flow-panel h2,
.profile-section-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    color: var(--text-main);
}

.flow-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.02;
}

.flow-copy,
.flow-muted,
.flow-panel p,
.flow-step-copy,
.profile-hint,
.profile-note {
    color: var(--text-muted);
}

.flow-copy {
    max-width: 50rem;
    margin: 0;
}

.flow-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.flow-metric,
.flow-question,
.flow-step,
.flow-meta-card,
.profile-lockup {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-metric-label,
.flow-meta-card strong,
.profile-lockup strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent-orange-bright);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.flow-choice-card,
.flow-exercise-card,
.flow-note-block {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-choice-card h2,
.flow-exercise-card h3,
.flow-note-block strong {
    margin-top: 0;
    color: var(--text-main);
}

.flow-choice-card--cta {
    display: block;
    text-decoration: none;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

.flow-choice-card--cta:hover,
.flow-choice-card--cta:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 26, 0.28);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.flow-choice-card--feature {
    background:
        linear-gradient(180deg, rgba(255, 122, 26, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 122, 26, 0.2);
}

.flow-choice-card--mini {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 8rem;
    height: 100%;
    cursor: pointer;
    border-color: rgba(255, 122, 26, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.flow-choice-card--mini:hover,
.flow-choice-card--mini:focus-within {
    border-color: rgba(255, 122, 26, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.flow-choice-card--mini:has(.flow-radio-row input[type="radio"]:checked) {
    border-color: rgba(255, 122, 26, 0.4);
    background:
        linear-gradient(180deg, rgba(255, 122, 26, 0.14), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 0 1px rgba(255, 122, 26, 0.18),
        0 16px 30px rgba(0, 0, 0, 0.18);
}

.flow-inline-form {
    margin-top: 0.9rem;
}

.flow-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.flow-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.flow-exercise-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.6rem 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.flow-exercise-meta span {
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-note-block p {
    margin-bottom: 0;
}

.flow-notice {
    margin-bottom: 0.95rem;
    padding: 0.82rem 0.95rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
}

.flow-notice--ok {
    color: #d6ffe1;
    background: rgba(59, 224, 174, 0.12);
    border: 1px solid rgba(59, 224, 174, 0.24);
}

.flow-notice--error {
    color: #ffd6e3;
    background: rgba(255, 88, 120, 0.12);
    border: 1px solid rgba(255, 88, 120, 0.24);
}

.flow-progress {
    margin: 1rem 0 1.2rem;
    height: 0.72rem;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(196, 128, 255, 0.18);
}

.flow-progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-purple));
    box-shadow: 0 0 18px rgba(255, 122, 26, 0.24);
}

.flow-step-list,
.flow-form-grid,
.flow-meta {
    display: grid;
    gap: 0.85rem;
}

.flow-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.flow-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 1.1rem;
}

.flow-card-grid--tight {
    margin-top: 1rem;
}

.flow-card-grid--decision {
    margin-top: 1.15rem;
}

.flow-card-grid--thirds,
.flow-card-grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-debrief-grid,
.flow-stat-grid {
    display: grid;
    gap: 0.85rem;
    margin: 1rem 0 1.1rem;
}

.flow-debrief-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.flow-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-stat-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-stat-card strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--text-main);
}

.flow-stat-card .flow-muted {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.82rem;
}

.flow-section-head--debrief {
    margin-top: 1.1rem;
}

.flow-assessment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.flow-score-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(5, 8, 14, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.flow-score-value {
    min-width: 4.4rem;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    color: var(--text-main);
}

.flow-score-meta {
    display: grid;
    gap: 0.22rem;
}

.flow-score-meta strong {
    margin: 0;
}

.flow-score-meta span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.flow-note-block--embedded {
    margin-top: 1rem;
}

.flow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.72rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.flow-badge--success {
    border-color: rgba(59, 224, 174, 0.28);
    background: rgba(59, 224, 174, 0.12);
    color: #dbffee;
}

.flow-badge--info {
    border-color: rgba(122, 186, 255, 0.3);
    background: rgba(122, 186, 255, 0.12);
    color: #ddeeff;
}

.flow-badge--warn {
    border-color: rgba(255, 196, 96, 0.3);
    background: rgba(255, 196, 96, 0.12);
    color: #fff0c9;
}

.flow-badge--danger {
    border-color: rgba(255, 88, 120, 0.28);
    background: rgba(255, 88, 120, 0.12);
    color: #ffd6e3;
}

.flow-badge--neutral {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
}

.flow-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.flow-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
}

.flow-table th,
.flow-table td {
    padding: 0.9rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: middle;
    font-size: 0.9rem;
}

.flow-table th {
    color: var(--accent-orange-bright);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
}

.flow-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.flow-table tbody tr:last-child td {
    border-bottom: none;
}

.flow-table-sub {
    margin-left: 0.3rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.flow-step-list--spaced {
    margin-top: 1.2rem;
}

.flow-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.flow-step-left {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.flow-step-dot {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.flow-step-dot.done {
    background: linear-gradient(180deg, #59f57b, #2ecb52);
    box-shadow: 0 0 0 4px rgba(46, 203, 82, 0.12);
}

.flow-step-title {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.flow-step-copy {
    margin: 0;
}

.flow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.flow-actions form {
    margin: 0;
}

.flow-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.8rem;
}

.flow-options label,
.flow-checklist label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-soft);
    cursor: pointer;
}

.flow-checklist {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.flow-radio-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.85rem;
    color: var(--text-soft);
}

.flow-reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.flow-reason-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0.62rem 0.78rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.flow-reason-option:hover,
.flow-reason-option:focus-within {
    border-color: rgba(255, 122, 26, 0.22);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.flow-reason-option:has(input[type="radio"]:checked) {
    border-color: rgba(255, 122, 26, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 122, 26, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.16);
}

.flow-reason-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.flow-reason-marker {
    width: 0.88rem;
    height: 0.88rem;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    background: rgba(8, 9, 16, 0.95);
    box-shadow: inset 0 0 0 2px rgba(8, 9, 16, 0.65);
}

.flow-reason-option:has(input[type="radio"]:checked) .flow-reason-marker {
    border-color: rgba(255, 178, 84, 0.9);
    background: radial-gradient(circle at center, var(--accent-orange-bright) 0 42%, var(--accent-orange) 43% 100%);
    box-shadow:
        0 0 0 4px rgba(255, 122, 26, 0.16),
        inset 0 0 0 2px rgba(8, 9, 16, 0.2);
}

.flow-reason-text {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 860px) {
    .flow-reason-grid {
        grid-template-columns: 1fr;
    }
}

.flow-choice-card--mini .flow-radio-row input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.flow-choice-card--mini .flow-radio-row span {
    font-weight: 600;
}

.flow-inline-check {
    display: flex !important;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 0.85rem !important;
}

.flow-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.flow-shell label,
.profile-shell label {
    display: block;
    margin: 0 0 0.4rem;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.flow-shell input:not([type="checkbox"]):not([type="radio"]),
.flow-shell select,
.flow-shell textarea,
.profile-shell input:not([type="checkbox"]):not([type="radio"]),
.profile-shell select,
.profile-shell textarea {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid rgba(196, 128, 255, 0.2);
    background: rgba(6, 8, 13, 0.72);
    color: var(--text-main);
    font: inherit;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.flow-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.flow-shell select:focus,
.flow-shell textarea:focus,
.profile-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.profile-shell select:focus,
.profile-shell textarea:focus {
    outline: none;
    border-color: rgba(255, 122, 26, 0.32);
    box-shadow:
        0 0 0 3px rgba(255, 122, 26, 0.14),
        0 0 0 1px rgba(187, 85, 255, 0.18);
}

.flow-shell input[readonly],
.profile-shell input[readonly] {
    cursor: default;
    opacity: 0.8;
    background: rgba(18, 20, 31, 0.86);
}

.flow-shell input[type="checkbox"],
.flow-shell input[type="radio"],
.profile-shell input[type="checkbox"],
.profile-shell input[type="radio"] {
    accent-color: var(--accent-orange);
}

.flow-shell input[type="range"],
.profile-shell input[type="range"] {
    width: 100%;
    height: 1.6rem;
    margin: 0.35rem 0 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.flow-shell input[type="range"]:focus,
.profile-shell input[type="range"]:focus {
    outline: none;
}

.flow-shell input[type="range"]::-webkit-slider-runnable-track,
.profile-shell input[type="range"]::-webkit-slider-runnable-track {
    height: 0.56rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 122, 26, 0.48), rgba(187, 85, 255, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.32);
}

.flow-shell input[type="range"]::-webkit-slider-thumb,
.profile-shell input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    margin-top: -0.24rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, var(--accent-orange-bright), var(--accent-orange));
    box-shadow:
        0 0 0 4px rgba(255, 122, 26, 0.16),
        0 10px 18px rgba(0, 0, 0, 0.3);
}

.flow-shell input[type="range"]::-moz-range-track,
.profile-shell input[type="range"]::-moz-range-track {
    height: 0.56rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 122, 26, 0.48), rgba(187, 85, 255, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.32);
}

.flow-shell input[type="range"]::-moz-range-thumb,
.profile-shell input[type="range"]::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, var(--accent-orange-bright), var(--accent-orange));
    box-shadow:
        0 0 0 4px rgba(255, 122, 26, 0.16),
        0 10px 18px rgba(0, 0, 0, 0.3);
}

.flow-shell input[type="range"]::-moz-focus-outer,
.profile-shell input[type="range"]::-moz-focus-outer {
    border: 0;
}

body.xfit-theme.profile-theme {
    color: var(--text-main);
}

.profile-shell {
    width: min(1100px, 100%);
}

.profile-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-span-12 {
    grid-column: span 12;
}

.profile-span-6 {
    grid-column: span 6;
}

.profile-span-4 {
    grid-column: span 4;
}

.profile-span-3 {
    grid-column: span 3;
}

.profile-section {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.profile-section-title {
    font-size: 1rem;
}

.profile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-note {
    font-size: 0.84rem;
}

body.xfit-theme.admin-theme {
    color: var(--text-main);
}

.admin-shell {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.3rem 0 2.6rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(17, 19, 31, 0.92), rgba(10, 11, 18, 0.78));
    border: 1px solid rgba(188, 104, 255, 0.18);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.admin-header-copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.admin-header-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-header-sub {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.62rem 0.95rem;
    border-radius: 0.95rem;
    color: var(--text-main);
    background: rgba(21, 25, 34, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.admin-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 26, 0.28);
}

.admin-nav a.active {
    border-color: rgba(187, 85, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(187, 85, 255, 0.12);
}

.admin-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(196, 128, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(17, 19, 31, 0.94), rgba(9, 11, 18, 0.84)),
        rgba(11, 13, 22, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    padding: 1.25rem;
}

.admin-card + .admin-card {
    margin-top: 1rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.admin-span-12 {
    grid-column: span 12;
}

.admin-span-8 {
    grid-column: span 8;
}

.admin-span-6 {
    grid-column: span 6;
}

.admin-span-4 {
    grid-column: span 4;
}

.admin-section-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.admin-muted {
    color: var(--text-muted);
}

.admin-stat-grid,
.admin-shortcuts {
    display: grid;
    gap: 0.85rem;
}

.admin-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat {
    padding: 1rem;
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(34, 38, 54, 0.94), rgba(19, 22, 33, 0.94)),
        rgba(20, 23, 35, 0.96);
    border: 1px solid rgba(196, 128, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-stat-label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--accent-orange-bright);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.admin-stat-value {
    font-size: 1rem;
}

.admin-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-shortcut {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(34, 38, 54, 0.94), rgba(19, 22, 33, 0.94)),
        rgba(20, 23, 35, 0.96);
    border: 1px solid rgba(196, 128, 255, 0.18);
    color: var(--text-main);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.admin-shortcut:hover,
.admin-shortcut:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 26, 0.34);
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.26),
        0 0 0 3px rgba(255, 122, 26, 0.1);
    background:
        linear-gradient(180deg, rgba(40, 45, 64, 0.96), rgba(22, 25, 38, 0.96)),
        rgba(24, 27, 40, 0.98);
}

.admin-shortcut strong {
    display: block;
    margin-bottom: 0.3rem;
}

.admin-list {
    margin: 0;
    padding-left: 1.05rem;
    color: var(--text-muted);
}

.admin-list li + li {
    margin-top: 0.45rem;
}

.admin-feed {
    display: grid;
    gap: 0.75rem;
}

.admin-message {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(34, 38, 54, 0.94), rgba(19, 22, 33, 0.94)),
        rgba(20, 23, 35, 0.96);
    border: 1px solid rgba(196, 128, 255, 0.14);
    border-left: 4px solid var(--accent-orange);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-message h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.admin-message time {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.admin-message p {
    margin: 0.65rem 0 0;
    color: var(--text-soft);
}

.admin-form {
    display: grid;
    gap: 0.85rem;
}

.admin-form label {
    display: block;
    margin: 0 0 0.35rem;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid rgba(196, 128, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(20, 23, 35, 0.96), rgba(11, 13, 21, 0.96)),
        rgba(11, 13, 21, 0.98);
    color: var(--text-main);
    font: inherit;
}

.admin-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: rgba(255, 122, 26, 0.32);
    box-shadow:
        0 0 0 3px rgba(255, 122, 26, 0.14),
        0 0 0 1px rgba(187, 85, 255, 0.18);
}

body.xfit-theme.admin-theme .flow-notice {
    background:
        linear-gradient(180deg, rgba(34, 38, 54, 0.96), rgba(19, 22, 33, 0.96)),
        rgba(20, 23, 35, 0.98);
    border-width: 1px;
    border-style: solid;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.xfit-theme.admin-theme .flow-notice--ok {
    border-color: rgba(59, 224, 174, 0.32);
}

body.xfit-theme.admin-theme .flow-notice--error {
    border-color: rgba(255, 88, 120, 0.3);
}

body.xfit-theme.admin-theme .btn.btn--primary {
    color: #fff7f0;
    border-color: rgba(255, 187, 122, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 122, 26, 0.98), rgba(187, 85, 255, 0.96));
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(255, 187, 122, 0.18),
        0 0 30px rgba(255, 122, 26, 0.22);
}

body.xfit-theme.admin-theme .btn.btn--primary:hover,
body.xfit-theme.admin-theme .btn.btn--primary:focus-visible {
    filter: brightness(1.05) saturate(1.08);
    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.42),
        0 0 0 3px rgba(255, 122, 26, 0.14),
        0 0 34px rgba(255, 122, 26, 0.26);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-inline-note {
    font-size: 0.83rem;
    color: var(--text-muted);
}

/* Newsletters */
body.xfit-theme.newsletters-theme .wrap {
    width: min(980px, calc(100% - 1.75rem));
    margin: 0 auto;
    padding: 22px 0 44px;
}

body.xfit-theme.newsletters-theme .topbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(17, 19, 31, 0.88), rgba(10, 11, 18, 0.72));
    border: 1px solid rgba(188, 104, 255, 0.18);
    box-shadow: var(--shadow-soft);
}

body.xfit-theme.newsletters-theme .brand {
    font-weight: 800;
    letter-spacing: 0.3px;
}

body.xfit-theme.newsletters-theme .row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

body.xfit-theme.newsletters-theme .grid {
    display: grid;
    gap: 12px;
}

body.xfit-theme.newsletters-theme .card {
    padding: 14px;
}

body.xfit-theme.newsletters-theme .muted {
    color: var(--text-muted);
}

body.xfit-theme.newsletters-theme .btn {
    min-height: auto;
    padding: 9px 12px;
    text-decoration: none;
}

body.xfit-theme.newsletters-theme input[type="text"] {
    border-radius: 12px;
    border: 1px solid rgba(196, 128, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    padding: 9px 10px;
    min-width: 200px;
}

body.xfit-theme.newsletters-theme .notice {
    border-left: 3px solid rgba(166, 255, 0, 0.8);
    padding: 10px 12px;
    background: rgba(166, 255, 0, 0.06);
    border-radius: 12px;
}

/* Dashboard */
body.xfit-theme.dashboard-theme {
    --bg0: #070a12;
    --bg1: #0b1020;
    --card: rgba(10, 14, 25, 0.62);
    --stroke: rgba(148, 163, 184, 0.22);
    --text: rgba(226, 232, 240, 0.96);
    --muted: rgba(148, 163, 184, 0.86);
    --orange: #ff5a1f;
    --purple: #8b5cf6;
    --r: 18px;
    --shadow: 0 18px 30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(15, 23, 42, 0.9);
    --glow: 0 0 32px rgba(255, 90, 31, 0.16), 0 0 34px rgba(139, 92, 246, 0.14);
    --max: 1400px;
    color: var(--text);
    background:
        radial-gradient(1200px 700px at 20% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
        radial-gradient(900px 600px at 85% 10%, rgba(255, 90, 31, 0.2), transparent 55%),
        linear-gradient(180deg, var(--bg0), var(--bg1));
}

body.xfit-theme.dashboard-theme .shell {
    width: min(var(--max), 100%);
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px 18px 26px;
    display: grid;
    grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
    gap: 14px;
}

body.xfit-theme.dashboard-theme .side,
body.xfit-theme.dashboard-theme .topbar,
body.xfit-theme.dashboard-theme .card {
    background: var(--card);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

body.xfit-theme.dashboard-theme .side {
    position: sticky;
    top: 14px;
    align-self: start;
    border-radius: calc(var(--r) + 6px);
    overflow: hidden;
}

body.xfit-theme.dashboard-theme .sideHead {
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    align-items: center;
    gap: 10px;
}

body.xfit-theme.dashboard-theme .mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(10, 14, 25, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--glow);
}

body.xfit-theme.dashboard-theme .mark span {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--orange);
}

body.xfit-theme.dashboard-theme .main {
    min-width: 0;
}

body.xfit-theme.dashboard-theme .topbar {
    border-radius: calc(var(--r) + 6px);
    padding: 14px 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

body.xfit-theme.dashboard-theme .topbar h1 {
    margin: 0;
    font-size: 18px;
}

body.xfit-theme.dashboard-theme .topbar p,
body.xfit-theme.dashboard-theme label {
    color: var(--muted);
}

body.xfit-theme.dashboard-theme .topbar p {
    margin: 6px 0 0;
    font-size: 13px;
}

body.xfit-theme.dashboard-theme .topActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

body.xfit-theme.dashboard-theme .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.12);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

body.xfit-theme.dashboard-theme .btn:hover {
    border-color: rgba(255, 90, 31, 0.35);
}

body.xfit-theme.dashboard-theme .card {
    grid-column: span 12;
    border-radius: var(--r);
    overflow: hidden;
    min-width: 0;
}

body.xfit-theme.dashboard-theme .cardHead {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.xfit-theme.dashboard-theme .cardHead h2 {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.2px;
    min-width: 0;
    flex: 1 1 auto;
}

body.xfit-theme.dashboard-theme .cardBody {
    padding: 14px;
    min-width: 0;
}

body.xfit-theme.dashboard-theme label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
}

body.xfit-theme.dashboard-theme input,
body.xfit-theme.dashboard-theme select {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.22);
    color: var(--text);
    outline: none;
}

body.xfit-theme.dashboard-theme .panel,
body.xfit-theme.dashboard-theme .scroll,
body.xfit-theme.dashboard-theme .module-card,
body.xfit-theme.dashboard-theme .module-card__body,
body.xfit-theme.dashboard-theme .status-grid,
body.xfit-theme.dashboard-theme .topbar > div,
body.xfit-theme.dashboard-theme .topActions,
body.xfit-theme.dashboard-theme .cardHead > *,
body.xfit-theme.dashboard-theme .tabs,
body.xfit-theme.dashboard-theme .status-grid .kv,
body.xfit-theme.dashboard-theme .status-grid .status-wide,
body.xfit-theme.dashboard-theme .rowItem,
body.xfit-theme.dashboard-theme .rowItem > div,
body.xfit-theme.dashboard-theme .metric,
body.xfit-theme.dashboard-theme .metric .v,
body.xfit-theme.dashboard-theme .badge {
    max-width: 100%;
    min-width: 0;
}

body.xfit-theme.dashboard-theme .rowItem {
    align-items: flex-start;
    flex-wrap: wrap;
}

body.xfit-theme.dashboard-theme .rowItem > div:last-child {
    margin-left: auto;
}

body.xfit-theme.dashboard-theme .metric .v,
body.xfit-theme.dashboard-theme .rowItem strong,
body.xfit-theme.dashboard-theme .rowItem small,
body.xfit-theme.dashboard-theme .status-grid .kv-label,
body.xfit-theme.dashboard-theme .status-grid .kv-value,
body.xfit-theme.dashboard-theme .msgSubject,
body.xfit-theme.dashboard-theme .badge {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1120px) {
    body.xfit-theme.dashboard-theme .shell {
        grid-template-columns: minmax(0, 1fr);
    }

    body.xfit-theme.dashboard-theme .side {
        position: static;
        top: auto;
    }

    body.xfit-theme.dashboard-theme .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    body.xfit-theme.dashboard-theme .topActions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    body.xfit-theme.dashboard-theme .metrics,
    body.xfit-theme.dashboard-theme .formGrid,
    body.xfit-theme.dashboard-theme .sessGrid,
    body.xfit-theme.dashboard-theme .drawer-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.xfit-theme.dashboard-theme .metric,
    body.xfit-theme.dashboard-theme .col6,
    body.xfit-theme.dashboard-theme .col4,
    body.xfit-theme.dashboard-theme .col3 {
        grid-column: span 1;
    }

    body.xfit-theme.dashboard-theme .quickRow {
        flex-direction: column;
    }

    body.xfit-theme.dashboard-theme .quickRow .navlink {
        width: 100%;
    }

    body.xfit-theme.dashboard-theme .rowItem > div:last-child {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    body.xfit-theme.dashboard-theme .shell {
        padding-inline: 0.75rem;
    }

    body.xfit-theme.dashboard-theme .metrics,
    body.xfit-theme.dashboard-theme .formGrid,
    body.xfit-theme.dashboard-theme .sessGrid,
    body.xfit-theme.dashboard-theme .drawer-metrics,
    body.xfit-theme.dashboard-theme .calGrid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.xfit-theme.dashboard-theme .metric,
    body.xfit-theme.dashboard-theme .col12,
    body.xfit-theme.dashboard-theme .col6,
    body.xfit-theme.dashboard-theme .col4,
    body.xfit-theme.dashboard-theme .col3 {
        grid-column: span 1;
    }

    body.xfit-theme.dashboard-theme .cardHead {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    body.xfit-theme.onboarding .checklist {
        grid-template-columns: 1fr;
    }

    .flow-metrics,
    .flow-debrief-grid,
    .flow-field-grid,
    .flow-card-grid,
    .flow-summary-grid,
    .flow-stat-grid {
        grid-template-columns: 1fr;
    }

    .flow-step,
    .profile-intro,
    .profile-footer,
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-span-6,
    .profile-span-4,
    .profile-span-3,
    .admin-span-8,
    .admin-span-6,
    .admin-span-4 {
        grid-column: span 12;
    }

    .admin-stat-grid,
    .admin-shortcuts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    body.xfit-theme.auth-theme.login-theme {
        padding-top: 24px;
    }

    .auth-theme .container,
    .auth-theme #authBox {
        padding: 22px 18px 18px;
    }

    .auth-theme .container.registration-modal {
        width: min(100%, calc(100vw - 1rem));
        border-radius: 22px;
    }

    .auth-theme .registration-modal__shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-theme .registration-modal__hero,
    .auth-theme .registration-modal__form-panel {
        padding: 1.2rem;
    }

    .auth-theme .registration-modal__hero {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .auth-theme .registration-modal__hero-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-theme .registration-modal__meta {
        grid-template-columns: 1fr;
    }

    .auth-theme .registration-modal__resend-form {
        width: 100%;
    }

    .auth-theme .registration-modal__resend-form button {
        width: 100%;
    }

    .flow-shell,
    .flow-shell--narrow,
    .profile-shell {
        width: min(100%, calc(100% - 1rem));
    }

    .flow-hero,
    .flow-panel {
        padding: 1.1rem;
    }
}

@media (max-width: 860px) {
    .auth-theme .container.registration-modal {
        width: min(100%, calc(100vw - 1rem));
    }

    .auth-theme .registration-modal__shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-theme .registration-modal__hero,
    .auth-theme .registration-modal__form-panel {
        padding: 1.35rem;
    }

    .auth-theme .registration-modal__hero {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .auth-theme .registration-modal__hero-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-theme .registration-modal__meta {
        grid-template-columns: 1fr;
    }

    .auth-theme .registration-modal__resend-form {
        width: 100%;
    }
}
