:root {
    --color-bg: #fbf9ff;
    --color-card: #ffffff;
    --color-brand: #9333ea;
    --color-brand-strong: #7c3aed;
    --color-accent: #22d3ee;
    --color-text: #0f172a;
    --color-muted: #5b6178;
    --color-border: #e7ddff;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --shadow-lg: 0 18px 50px rgba(63, 23, 106, 0.08);
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
}

.page-bg {
    position: fixed;
    inset: 0;
    background:
            radial-gradient(circle at 18% 18%, rgba(147, 51, 234, 0.12), transparent 38%),
            radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.12), transparent 40%),
            radial-gradient(circle at 10% 80%, rgba(124, 58, 237, 0.08), transparent 35%),
            linear-gradient(180deg, #fbf9ff 0%, #f7f2ff 45%, #f9f7ff 100%);
    pointer-events: none;
    z-index: -1;
}

.onboarding-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 34px 24px 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.onboarding-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.brand-logo-wrap {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.16), rgba(34, 211, 238, 0.1));
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.18);
}

.brand-logo {
    width: 40px;
    height: auto;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-title {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.header-pills {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(147, 51, 234, 0.16);
    color: var(--color-brand);
    background: rgba(147, 51, 234, 0.08);
    font-weight: 600;
    font-size: 0.92rem;
}

.pill--solid {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.14), rgba(124, 58, 237, 0.2));
    color: var(--color-brand-strong);
}

.flash-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(147, 51, 234, 0.1);
    color: var(--color-brand);
    font-weight: 500;
}

.flash--success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.flash--error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.onboarding-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(147, 51, 234, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px 40px;
}

.onboarding-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.onboarding-footer {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.onboarding-footer a {
    color: var(--color-brand);
    text-decoration: none;
}

.onboarding-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.onboarding-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 23px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 22px 26px 30px 26px;
    box-shadow: 0 16px 42px rgba(63, 23, 106, 0.08);
}

.onboarding-hero__panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 22px 26px 10px 26px;
    box-shadow: 0 18px 40px rgba(63, 23, 106, 0.12);
}

.panel-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.panel-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.panel-subtitle {
    color: var(--color-muted);
    font-size: 0.92em;
    margin-top: 0.2em;
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    line-height: 1;
    border-radius: 10px;
    background: rgba(147, 51, 234, 0.12);
    color: var(--color-brand-strong);
    font-weight: 700;
    font-size: 1rem;
}

.hero-note {
    margin: 10px 0 0 0;
    padding: 12px 14px;
    background: rgba(147, 51, 234, 0.08);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-brand-strong);
    font-weight: 600;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(147, 51, 234, 0.1);
    color: var(--color-brand-strong);
    border-radius: 999px;
    font-weight: 700;
    width: fit-content;
}

.onboarding-title {
    margin: 0;
    font-size: 1.7rem;
}

.onboarding-lede {
    margin: 0;
    color: #2d3350;
    font-size: 1rem;
    line-height: 1.6;
}

.reassurance-list {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0 4px;
    padding: 14px 16px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 12px;
    color: #064e3b;
    font-weight: 600;
}

.reassurance-list--inline {
    flex-direction: row;
}

.reassurance-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.45;
}

.reassurance-text {
    font-weight: 700;
}

.reassurance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    flex-shrink: 0;
}

.onboarding-meta {
    font-size: 0.95rem;
    color: var(--color-muted);
}

.onboarding-meta a {
    color: var(--color-brand);
    text-decoration: none;
}

.progress {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.progress__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    color: #2d3350;
    font-weight: 500;
    flex: 1 1 0;
    border: 1px solid rgba(147, 51, 234, 0.18);
}

.progress__item--active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.16), rgba(34, 211, 238, 0.14));
    color: var(--color-text);
    box-shadow: 0 12px 26px rgba(147, 51, 234, 0.16);
}

.progress__item--complete {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.progress__step {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid rgba(147, 51, 234, 0.18);
}

.progress__label {
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.form-grid .btn-primary {
    margin-top: 6px;
}

.cta-form {
    gap: 10px;
    justify-items: center;
    margin-top: 18px;
    text-align: center;
}

.cta-form .btn-primary {
    margin-top: 0;
    width: 100%;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--color-brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.google-signup-button {
    display: flex;
    justify-content: center;
}

.google-signup-button > div {
    width: 100%;
}

.google-signup-button [role="button"] {
    height: 60px !important;
    min-height: 60px;
    border-radius: 12px !important;
    font-weight: 700;
    padding: 0 18px !important;
}

.google-signup-button [role="button"] span {
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 1.1em;
}

.google-signup-button [role="button"] svg,
.google-signup-button [role="button"] img {
    width: 30px !important;
    height: 30px !important;
    margin-top: -0.4em;
}

.social-trust-note {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.form-field--error .form-control {
    border-color: #f87171;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.form-error {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 0.85rem;
}

.form-alert {
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.form-alert--error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.btn-primary {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(147, 51, 234, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(147, 51, 234, 0.4);
    color: var(--color-brand);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-secondary:hover {
    background: rgba(147, 51, 234, 0.08);
    transform: translateY(-1px);
}

.cta-support {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    color: var(--color-text);
    align-items: center;
    text-align: center;
}

.cta-subtext {
    margin: 5px 0 10px;
    font-size: 0.93rem;
    color: var(--color-muted);
}

.cta-support .cta-note {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-size: 0.92rem;
    line-height: 1.5;
}

.lock-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex-shrink: 0;
}

.trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-badges--left {
    justify-content: flex-start;
}

.onboarding-hero__copy .trust-badges {
    margin-top: 10px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    letter-spacing: 0.05rem;
}

.onboarding-hero__copy .trust-badge {
    background: none;
    border: none;
    font-size: 1em;
    padding: 0;
    align-items: center;
    gap: 12px;
}

.trust-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    font-size: 1.6rem;
    line-height: 1;
}

.trust-badge__text {
    display: inline-block;
    line-height: 1.5;
    color: var(--color-brand);
}

.trust-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.connection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.connection-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fdfdff;
}

.connection-card header {
    font-weight: 600;
    font-size: 1.1rem;
}

.status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.status-list--single {
    display: inline-flex;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pill--success {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.status-pill--pending {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.status-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #047857;
    font-weight: 600;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #047857;
    flex-shrink: 0;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.complete-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.complete-hint {
    margin: 0;
    color: var(--color-muted);
}

.form-actions {
    margin-top: 24px;
    padding-bottom: 20px;
}

.marketplace-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marketplace-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    background: #fdfdff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.marketplace-card__header h2 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marketplace-card__header p {
    margin: 4px 0 0;
    color: var(--color-muted);
}

.marketplace-flag {
    font-size: 1.4rem;
    line-height: 1;
}

.marketplace-card__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.activation-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.activation-toggle input[type="checkbox"] {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid rgba(147, 51, 234, 0.4);
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    display: grid;
    place-content: center;
    transition: border-color var(--transition), background var(--transition);
}

.activation-toggle input[type="checkbox"]::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 4px;
    transform: scale(0);
    transition: transform var(--transition);
    background: linear-gradient(135deg, #9333ea, #7c3aed);
}

.activation-toggle input[type="checkbox"]:checked {
    border-color: #7c3aed;
    background: rgba(147, 51, 234, 0.1);
}

.activation-toggle input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.activation-toggle input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(147, 51, 234, 0.35);
    outline-offset: 2px;
}

.activation-toggle__label {
    font-size: 1rem;
}

.acos-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acos-input label {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.acos-input .form-control {
    width: 120px;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 720px) {
    .onboarding-card {
        padding: 28px;
    }
    .onboarding-shell {
        padding: 28px 16px 40px;
    }
    .header-pills {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .onboarding-hero {
        grid-template-columns: 1fr;
    }
    .progress {
        flex-direction: column;
    }
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }
}