/* =====================================================================
   Synapse.exe — Landing & Onboarding Flow
   Mobile-first. Uses the existing brand palette only.
   ===================================================================== */

:root {
    --sx-bg: #102725;
    --sx-bg-deep: #0b1d1b;
    --sx-surface: #163c38;
    --sx-surface-2: #1c4a45;
    --sx-line: rgba(132, 199, 193, 0.18);
    --sx-line-strong: #84c7c1;
    --sx-teal: #2a9d8f;
    --sx-teal-bright: #6debc6;
    --sx-orange: #f4a261;
    --sx-orange-deep: #e76f51;
    --sx-text: #ecf7f5;
    --sx-text-dim: rgba(224, 238, 234, 0.78);
    --sx-text-faint: rgba(224, 238, 234, 0.56);
    --sx-ink: #07151c;
    --sx-radius: 22px;
    --sx-radius-lg: 30px;
    --sx-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
    --sx-grad-cta: linear-gradient(135deg, #6debc6 0%, #2a9d8f 42%, #f4a261 100%);
    --sx-font-display: 'Space Grotesk', 'Sora', 'Segoe UI', sans-serif;
    --sx-font-body: 'Sora', 'Segoe UI', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body.page-home {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% -8%, rgba(42, 157, 143, 0.22), rgba(16, 39, 37, 0) 46%),
        radial-gradient(circle at 96% 4%, rgba(244, 162, 97, 0.14), rgba(16, 39, 37, 0) 42%),
        var(--sx-bg);
    color: var(--sx-text);
    font-family: var(--sx-font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.sx-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 0 0 12px 0;
    background: var(--sx-teal);
    color: var(--sx-ink);
    font-weight: 700;
}

.sx-skip-link:focus {
    left: 0;
}

/* ----------------------------- Top bar ----------------------------- */
.sx-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(11, 29, 27, 0.72);
    border-bottom: 1px solid var(--sx-line);
}

.sx-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px clamp(14px, 4vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sx-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--sx-text);
}

.sx-brand-logo {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    filter: saturate(1.08) contrast(1.08);
}

.sx-brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(150deg, rgba(255, 240, 201, 0.92), rgba(132, 199, 193, 0.52));
    border: 1px solid rgba(255, 249, 230, 0.56);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.sx-brand-text {
    font-family: var(--sx-font-display);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
}

.sx-brand-x {
    color: var(--sx-orange);
    margin-left: 2px;
}

/* progress stepper */
.sx-flow-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 420px;
    justify-content: center;
}

.sx-progress-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: none;
    background: none;
    color: var(--sx-text-faint);
    font: inherit;
    cursor: pointer;
}

.sx-progress-dot {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--sx-line);
    font-family: var(--sx-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sx-progress-label {
    font-size: 0.82rem;
    font-weight: 600;
}

.sx-progress-line {
    flex: 1;
    max-width: 40px;
    height: 2px;
    border-radius: 2px;
    background: var(--sx-line);
}

.sx-progress-step.is-active {
    color: var(--sx-text);
}

.sx-progress-step.is-active .sx-progress-dot {
    background: var(--sx-grad-cta);
    color: var(--sx-ink);
    border-color: transparent;
}

.sx-progress-step.is-complete .sx-progress-dot {
    background: var(--sx-teal);
    color: var(--sx-ink);
    border-color: transparent;
}

/* ----------------------------- Layout ----------------------------- */
.sx-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) clamp(14px, 4vw, 28px) 56px;
}

.sx-step {
    display: none;
    animation: sx-fade 0.4s ease both;
}

.sx-step.is-active {
    display: block;
}

@keyframes sx-fade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.sx-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--sx-line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sx-teal-bright);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ----------------------------- Hero ----------------------------- */
.sx-hero {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 18px;
    padding: clamp(32px, 7vw, 72px) clamp(16px, 4vw, 40px);
    border-radius: var(--sx-radius-lg);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        linear-gradient(160deg, rgba(22, 60, 56, 0.92), rgba(11, 29, 27, 0.96));
    border: 1px solid var(--sx-line);
    box-shadow: var(--sx-shadow);
    overflow: hidden;
}

.sx-hero-glow {
    position: absolute;
    inset: auto -30% 40% -30%;
    height: 70%;
    background: radial-gradient(circle at 50% 0%, rgba(109, 235, 198, 0.28), rgba(16, 39, 37, 0) 62%);
    pointer-events: none;
}

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

.sx-hero-title {
    margin: 0;
    font-family: var(--sx-font-display);
    font-weight: 700;
    font-size: clamp(2.3rem, 9vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--sx-text);
}

.sx-hero-accent {
    background: linear-gradient(120deg, #6debc6 0%, #84c7c1 40%, #f4a261 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sx-hero-sub {
    margin: 0;
    max-width: 56ch;
    color: var(--sx-text-dim);
    font-size: clamp(1rem, 2.6vw, 1.18rem);
    line-height: 1.62;
}

.sx-hero-cta {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.sx-cta-note {
    color: var(--sx-text-faint);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.sx-hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.sx-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--sx-line);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(245, 251, 248, 0.86);
    font-size: 0.86rem;
    font-weight: 600;
}

/* ----------------------- Primary CTA button ----------------------- */
.sx-cta-primary {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    padding: 20px 32px;
    border: none;
    border-radius: 999px;
    background: var(--sx-grad-cta);
    color: var(--sx-ink);
    font-family: var(--sx-font-display);
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 20px 38px rgba(42, 157, 143, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    touch-action: manipulation;
}

.sx-cta-primary svg {
    flex: none;
}

.sx-cta-primary:hover,
.sx-cta-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 26px 46px rgba(42, 157, 143, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    filter: saturate(1.06);
    outline: none;
}

.sx-cta-primary:active {
    transform: translateY(0);
}

.sx-cta-primary:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sx-text-faint);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.sx-cta-wide {
    max-width: 420px;
}

.sx-cta-secondary {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    padding: 15px 24px;
    border: 1px solid rgba(109, 235, 198, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--sx-text);
    font-family: var(--sx-font-display);
    font-size: clamp(1rem, 3vw, 1.16rem);
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    touch-action: manipulation;
}

.sx-cta-secondary svg {
    flex: none;
}

.sx-cta-secondary:hover,
.sx-cta-secondary:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(244, 162, 97, 0.7);
    background: rgba(244, 162, 97, 0.12);
    outline: none;
}

/* ----------------------------- Stats ----------------------------- */
.sx-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.sx-stat {
    display: grid;
    gap: 4px;
    padding: 18px 16px;
    border-radius: var(--sx-radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sx-line);
    text-align: center;
}

.sx-stat-value {
    font-family: var(--sx-font-display);
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--sx-text);
}

.sx-stat-label {
    color: var(--sx-text-dim);
    font-size: 0.82rem;
    line-height: 1.35;
}

/* ----------------------------- Features ----------------------------- */
.sx-features {
    margin-top: clamp(36px, 7vw, 64px);
}

.sx-section-head {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: clamp(22px, 4vw, 34px);
}

.sx-section-title {
    margin: 0;
    font-family: var(--sx-font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 5.5vw, 2.5rem);
    letter-spacing: -0.025em;
    color: var(--sx-text);
}

.sx-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.sx-feature-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px 20px;
    border-radius: var(--sx-radius);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(22, 60, 56, 0.7);
    border: 1px solid var(--sx-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sx-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(132, 199, 193, 0.4);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.sx-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(132, 199, 193, 0.12);
    border: 1px solid rgba(132, 199, 193, 0.24);
    color: var(--sx-teal-bright);
    line-height: 1;
}

.sx-feature-icon svg {
    width: 24px;
    height: 24px;
}

.sx-feature-title {
    margin: 0;
    font-family: var(--sx-font-display);
    font-size: 1.16rem;
    font-weight: 700;
    color: var(--sx-text);
}

.sx-feature-copy {
    margin: 0;
    color: var(--sx-text-dim);
    font-size: 0.96rem;
    line-height: 1.58;
}

.sx-feature-card.is-premium {
    border-color: rgba(244, 162, 97, 0.32);
    background:
        linear-gradient(165deg, rgba(244, 162, 97, 0.12), rgba(255, 255, 255, 0.02)),
        rgba(22, 60, 56, 0.7);
}

.sx-lock-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(244, 162, 97, 0.16);
    border: 1px solid rgba(244, 162, 97, 0.34);
    color: var(--sx-orange);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sx-features-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(26px, 5vw, 40px);
}

/* ----------------------- Panels (account/paywall) ----------------------- */
.sx-panel {
    max-width: 520px;
    margin: 0 auto;
    padding: clamp(22px, 5vw, 38px);
    border-radius: var(--sx-radius-lg);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        linear-gradient(160deg, rgba(22, 60, 56, 0.92), rgba(11, 29, 27, 0.96));
    border: 1px solid var(--sx-line);
    box-shadow: var(--sx-shadow);
}

.sx-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--sx-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--sx-text-dim);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sx-back:hover {
    color: var(--sx-text);
    border-color: var(--sx-line-strong);
}

.sx-panel-head {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 26px;
}

.sx-panel-title {
    margin: 0;
    font-family: var(--sx-font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 6vw, 2.3rem);
    letter-spacing: -0.025em;
}

.sx-panel-sub {
    margin: 0;
    max-width: 44ch;
    color: var(--sx-text-dim);
    line-height: 1.55;
}

/* ----------------------------- Form ----------------------------- */
.sx-form {
    display: grid;
    gap: 16px;
}

.sx-field {
    display: grid;
    gap: 7px;
}

.sx-field label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--sx-text-dim);
    letter-spacing: 0.01em;
}

.sx-field input,
.sx-select-wrap select {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid var(--sx-line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sx-text);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sx-field input::placeholder {
    color: var(--sx-text-faint);
}

.sx-field input:focus,
.sx-select-wrap select:focus {
    outline: none;
    border-color: var(--sx-teal);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.28);
}

.sx-select-wrap {
    position: relative;
}

.sx-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.sx-select-wrap select:invalid {
    color: var(--sx-text-faint);
}

.sx-select-wrap option {
    color: #0c2320;
}

.sx-select-caret {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sx-text-dim);
    pointer-events: none;
}

.sx-field input.is-invalid,
.sx-select-wrap select.is-invalid {
    border-color: var(--sx-orange-deep);
    box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.24);
}

.sx-form-error {
    margin: 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(231, 111, 81, 0.14);
    border: 1px solid rgba(231, 111, 81, 0.34);
    color: #ffd9cb;
    font-size: 0.9rem;
}

.sx-form .sx-cta-primary {
    max-width: none;
    margin-top: 4px;
}

.sx-form-fine {
    margin: 2px 0 0;
    text-align: center;
    color: var(--sx-text-faint);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ----------------------- Account access tabs ----------------------- */
.sx-auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 22px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--sx-line);
    background: rgba(255, 255, 255, 0.04);
}

.sx-auth-tab {
    position: relative;
    z-index: 1;
    padding: 12px 14px;
    border: none;
    border-radius: 999px;
    background: none;
    color: var(--sx-text-dim);
    font-family: var(--sx-font-display);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sx-auth-tab.is-active {
    color: var(--sx-ink);
}

.sx-auth-glider {
    position: absolute;
    z-index: 0;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 50%;
    border-radius: 999px;
    background: var(--sx-grad-cta);
    box-shadow: 0 8px 18px rgba(42, 157, 143, 0.3);
    transition: left 0.26s cubic-bezier(0.2, 0.8, 0.3, 1), right 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.sx-auth-tabs.is-login .sx-auth-glider {
    left: 50%;
    right: 5px;
}

.sx-auth-form {
    display: none;
}

.sx-auth-form.is-active {
    display: grid;
}

.sx-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.sx-field-link {
    border: none;
    background: none;
    padding: 0;
    color: var(--sx-teal-bright);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.sx-field-link:hover {
    text-decoration: underline;
}

.sx-field-link-row {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.auth-reset-overlay {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(6, 18, 21, 0.72);
}

.auth-reset-card {
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--sx-line);
    background: linear-gradient(160deg, rgba(22, 60, 56, 0.98), rgba(11, 29, 27, 0.98));
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.42);
}

.auth-reset-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.auth-reset-card h3 {
    margin: 0 0 2px;
    font-family: var(--sx-font-display);
    font-size: 1.26rem;
}

.auth-reset-close {
    border: 1px solid var(--sx-line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--sx-text-dim);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
}

.auth-reset-sub {
    margin: 0 0 6px;
    color: var(--sx-text-dim);
    font-size: 0.92rem;
}

.auth-reset-card label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--sx-text-dim);
}

.auth-reset-card input,
.auth-reset-card select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--sx-line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sx-text);
    font: inherit;
}

.auth-reset-card input:focus,
.auth-reset-card select:focus {
    outline: none;
    border-color: var(--sx-teal);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.28);
}

.auth-reset-methods {
    margin-top: 6px;
    display: grid;
    gap: 8px;
}

.auth-reset-method-label {
    font-size: 0.82rem;
    color: var(--sx-text-dim);
    font-weight: 600;
}

.auth-reset-radio {
    display: grid;
    grid-template-columns: auto minmax(96px, auto) minmax(140px, 1fr);
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--sx-text);
}

.auth-reset-radio.is-disabled {
    opacity: 0.56;
}

.auth-reset-radio-main {
    justify-self: start;
    font-weight: 700;
}

.auth-reset-radio-detail {
    justify-self: end;
    color: var(--sx-text-dim);
    white-space: nowrap;
    text-align: right;
    font-size: 0.84rem;
}

.auth-reset-primary,
.auth-reset-secondary {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: var(--sx-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.auth-reset-primary {
    background: var(--sx-grad-cta);
    color: var(--sx-ink);
}

.auth-reset-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--sx-line);
    color: var(--sx-text);
}

.auth-reset-primary:disabled,
.auth-reset-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-reset-primary:hover,
.auth-reset-secondary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.auth-reset-countdown {
    font-size: 0.84rem;
    color: var(--sx-text-dim);
}

.auth-reset-hint {
    font-size: 0.84rem;
    color: var(--sx-text-faint);
    line-height: 1.4;
}

.auth-reset-spam-alert {
    margin: 2px 0 4px;
    font-family: var(--sx-font-display);
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffd166;
    line-height: 1.2;
}

.auth-reset-status {
    min-height: 20px;
    color: #ffd9cb;
    font-size: 0.86rem;
    line-height: 1.4;
}

.auth-reset-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.auth-reset-toggle {
    border: 1px solid var(--sx-line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--sx-text-dim);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 10px;
    cursor: pointer;
}

.auth-reset-rules {
    margin: 2px 0 4px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
}

.auth-reset-rules li {
    color: var(--sx-text-faint);
    font-size: 0.82rem;
}

.auth-reset-rules li.is-valid {
    color: var(--sx-teal-bright);
}

.auth-reset-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    font-weight: 800;
    color: #06231d;
    background: linear-gradient(135deg, var(--sx-teal-bright), var(--sx-teal));
}

.auth-reset-success-title {
    margin: 4px 0 0;
    text-align: center;
}

.auth-reset-success-copy {
    margin: 0 0 8px;
    text-align: center;
    color: var(--sx-text-dim);
}

/* ----------------------- Disclaimer overlay ----------------------- */
body.sx-modal-open {
    overflow: hidden;
}

.sx-disclaimer-scrim {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 50% 30%, rgba(16, 39, 37, 0.78), rgba(5, 14, 16, 0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: sx-fade-in 0.28s ease both;
}

.sx-disclaimer-scrim[hidden] {
    display: none;
}

.sx-disclaimer-card {
    width: min(440px, 100%);
    padding: clamp(26px, 5vw, 38px) clamp(22px, 5vw, 34px) clamp(24px, 4vw, 32px);
    border-radius: var(--sx-radius-lg);
    background: linear-gradient(180deg, var(--sx-surface) 0%, var(--sx-bg-deep) 100%);
    border: 1px solid var(--sx-line);
    box-shadow: var(--sx-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
    animation: sx-rise 0.34s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.sx-disclaimer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 18px;
    color: var(--sx-ink);
    background: var(--sx-grad-cta);
    box-shadow: 0 12px 26px rgba(42, 157, 143, 0.32);
}

.sx-disclaimer-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(109, 235, 198, 0.3);
    background: rgba(109, 235, 198, 0.12);
    color: var(--sx-teal-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sx-disclaimer-title {
    margin: 0 0 12px;
    font-family: var(--sx-font-display);
    font-size: clamp(1.4rem, 3.4vw, 1.8rem);
    letter-spacing: -0.02em;
    color: #fff7f1;
}

.sx-disclaimer-body {
    margin: 0 0 24px;
    color: var(--sx-text-dim);
    font-size: 0.98rem;
    line-height: 1.65;
}

@keyframes sx-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sx-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----------------------- Legacy (hidden) ----------------------- */
.legacy-panel {
    max-width: 560px;
    margin: 24px auto 0;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(11, 33, 37, 0.88), rgba(7, 22, 26, 0.94));
    border: 1px solid var(--sx-line);
}

.legacy-panel h2 {
    margin-top: 0;
    text-align: center;
}

.legacy-panel input,
.legacy-panel button {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #f5fbf8;
    font: inherit;
}

/* ===================================================================
   Responsive — tablet and up
   =================================================================== */
@media (min-width: 600px) {
    .sx-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (min-width: 760px) {
    .sx-topbar-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .sx-flow-progress {
        width: auto;
        max-width: none;
    }

    .sx-progress-line {
        max-width: 28px;
    }

}

@media (min-width: 980px) {
    .sx-feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

@media (prefers-reduced-motion: reduce) {
    .sx-step,
    .sx-cta-primary,
    .sx-feature-card {
        animation: none !important;
        transition: none !important;
    }
}
