:root {
    --saas-border: rgba(148, 163, 184, 0.18);
    --saas-card: rgba(2, 6, 23, 0.72);
    --saas-card-soft: rgba(255, 255, 255, 0.05);
    --saas-text: #e2e8f0;
    --saas-muted: #94a3b8;
    --saas-accent: #6366f1;
    --saas-accent-soft: rgba(99, 102, 241, 0.12);
}

.saas-register-shell {
    position: relative;
}

.saas-surface {
    background: rgba(2, 6, 23, 0.72);
    border-color: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

.saas-surface-soft {
    background: rgba(15, 23, 42, 0.60);
    border-color: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

.saas-surface-card {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border-color: rgba(255,255,255,.10);
    color: #e2e8f0;
}

.provider-lineup-preview {
    border-radius: 1.5rem;
}

.provider-preview-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.provider-lineup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.preview-item {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    text-align: center;
    padding: 14px 10px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 30px rgba(2, 6, 23, .16);
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.preview-item:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 22px 36px rgba(2, 6, 23, .22);
}

.preview-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 16px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.10);
    overflow: hidden;
}

.preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .5rem;
}

.preview-name {
    display: block;
    margin-top: .1rem;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
}

.preview-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .05rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #c7d2fe;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.roster-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.roster-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
}

.badge-mandatory {
    display: inline-flex;
    align-items: center;
    margin-top: .6rem;
    padding: .2rem .5rem;
    border-radius: 999px;
    background: #ff9800;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.onboarding-flow {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .55rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #0f172a;
    font-weight: 900;
}

.flow-step.active .step-number {
    background: #4CAF50;
    color: #fff;
}

.step-label {
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.plan-card {
    padding: 18px;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,.10);
    background: rgba(15, 23, 42, 0.78);
}

.plan-card h4 {
    margin: 0;
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
}

.plan-card p {
    margin: .5rem 0 0;
    color: #cbd5e1;
    font-size: .9rem;
}

.plan-price {
    margin-top: .75rem !important;
    font-size: 1rem !important;
    font-weight: 900;
    color: #fff !important;
}

.plan-card.featured {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.10);
    transform: scale(1.02);
}

.step-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(15, 23, 42, 0.70);
    padding: .55rem .9rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #cbd5e1;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.step-pill:hover,
.step-pill.active {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(99, 102, 241, 0.55);
    color: #fff;
    transform: translateY(-1px);
}

.register-hero,
.provider-group,
.package-card,
.provider-card,
.saas-input {
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.saas-input {
    width: 100%;
    border-radius: 1.15rem;
    border: 1px solid var(--saas-border);
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    padding: .9rem 1rem;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.saas-input::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.saas-input:focus {
    border-color: rgba(99, 102, 241, 0.75);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.package-card {
    position: relative;
    display: block;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(15, 23, 42, 0.78);
    padding: 1.25rem;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.55);
}

.package-card.is-selected {
    border-color: rgba(99, 102, 241, 0.9);
    background: rgba(99, 102, 241, 0.10);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18), 0 18px 45px rgba(2, 6, 23, 0.2);
}

.provider-group {
    padding: 1rem 0 0;
}

.provider-card {
    position: relative;
    display: block;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
    overflow: hidden;
}

.provider-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
}

.provider-card.is-selected {
    border-color: rgba(16, 185, 129, 0.8);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.10), rgba(255,255,255,0.05));
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.16), 0 18px 40px rgba(2, 6, 23, 0.18);
}

.provider-card.always-included {
    border-style: dashed;
}

.provider-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem;
}

.provider-card-top {
    display: flex;
    position: relative;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.provider-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    flex-shrink: 0;
}

.provider-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .6rem;
}

.provider-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: flex-end;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: .32rem .6rem;
    font-size: .65rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.16);
    color: #bae6fd;
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: .32rem .6rem;
    font-size: .65rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.badge-gds,
.badge-gds-ndc {
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
}

.badge-ndc-aggregator,
.badge-ndc {
    background: rgba(168, 85, 247, 0.16);
    color: #e9d5ff;
}

.badge-lcc-low-cost,
.badge-lcc {
    background: rgba(249, 115, 22, 0.16);
    color: #fed7aa;
}

.badge-consolidator {
    background: rgba(20, 184, 166, 0.16);
    color: #99f6e4;
}

.badge-testing {
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

.badge-agreement {
    background: rgba(16, 185, 129, 0.16);
    color: #a7f3d0;
}

.provider-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    padding: .4rem .7rem;
    font-size: .72rem;
    font-weight: 700;
    color: #dbeafe;
}

.provider-card-footer {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.provider-select-copy {
    font-size: .78rem;
    line-height: 1.45rem;
    color: rgba(226, 232, 240, 0.78);
}

.provider-toggle-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .9rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.provider-toggle-label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.provider-toggle-switch {
    position: relative;
    width: 3.2rem;
    height: 1.8rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.34);
    flex-shrink: 0;
}

.provider-toggle-switch.is-on {
    background: rgba(16, 185, 129, 0.40);
    border-color: rgba(52, 211, 153, 0.45);
}

.provider-toggle-thumb {
    position: absolute;
    top: 50%;
    left: .2rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 9999px;
    transform: translateY(-50%);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
    transition: left .18s ease, background-color .18s ease;
}

.provider-toggle-switch.is-on .provider-toggle-thumb {
    left: 1.65rem;
    background: #dcfce7;
}

.provider-select-pill {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 9999px;
    border: 1px solid rgba(99, 102, 241, 0.24);
    background: rgba(99, 102, 241, 0.12);
    padding: .32rem .7rem;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #c7d2fe;
    pointer-events: none;
}

.provider-select-pill-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 9999px;
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.provider-card.is-selected .provider-select-pill {
    border-color: rgba(16, 185, 129, 0.32);
    background: rgba(16, 185, 129, 0.12);
    color: #d1fae5;
}

.provider-card.is-selected .provider-select-pill-dot {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

.provider-card.is-disabled {
    opacity: .5;
    filter: grayscale(.1);
}

html[data-theme="light"] .saas-input {
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.28);
}

html[data-theme="light"] .provider-card,
html[data-theme="light"] .package-card,
html[data-theme="light"] .register-hero,
html[data-theme="light"] .provider-group {
    background: rgba(255,255,255,0.95);
    border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="light"] .saas-register-shell .register-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(241,245,249,0.96)) !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .saas-register-shell .provider-lineup-preview,
html[data-theme="light"] .saas-register-shell .provider-roster,
html[data-theme="light"] .saas-register-shell .plan-card,
html[data-theme="light"] .saas-register-shell .provider-card,
html[data-theme="light"] .saas-register-shell .preview-item,
html[data-theme="light"] .saas-register-shell .roster-card,
html[data-theme="light"] .saas-register-shell .flow-step,
html[data-theme="light"] .saas-register-shell .package-card {
    background: rgba(255,255,255,0.96) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .saas-surface {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    color: #0f172a !important;
}

html[data-theme="light"] .saas-surface-soft,
html[data-theme="light"] .saas-surface-card {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    color: #0f172a !important;
}

html[data-theme="light"] .saas-surface-card {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .saas-register-shell section,
html[data-theme="light"] .saas-register-shell .rounded-\[2rem\],
html[data-theme="light"] .saas-register-shell .rounded-\[1\.75rem\],
html[data-theme="light"] .saas-register-shell .rounded-\[1\.5rem\],
html[data-theme="light"] .saas-register-shell .rounded-3xl,
html[data-theme="light"] .saas-register-shell .rounded-2xl,
html[data-theme="light"] .saas-register-shell .rounded-xl {
    background-color: rgba(255,255,255,0.96) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html[data-theme="light"] .saas-register-shell [class*="bg-slate-950"],
html[data-theme="light"] .saas-register-shell [class*="bg-slate-900"],
html[data-theme="light"] .saas-register-shell [class*="bg-slate-800"],
html[data-theme="light"] .saas-register-shell [class*="bg-white/5"],
html[data-theme="light"] .saas-register-shell [class*="bg-white/10"],
html[data-theme="light"] .saas-register-shell [class*="bg-gradient-to-br"],
html[data-theme="light"] .saas-register-shell [class*="bg-[linear-gradient"] {
    background-image: none !important;
    background-color: rgba(255,255,255,0.96) !important;
}

html[data-theme="light"] .saas-register-shell [class*="border-white/10"],
html[data-theme="light"] .saas-register-shell [class*="border-white/5"] {
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html[data-theme="light"] .saas-register-shell .bg-white\/5,
html[data-theme="light"] .saas-register-shell .bg-white\/10 {
    background-color: rgba(248,250,252,0.96) !important;
}

html[data-theme="light"] .saas-register-shell .text-white,
html[data-theme="light"] .saas-register-shell .text-slate-100,
html[data-theme="light"] .saas-register-shell .text-slate-200,
html[data-theme="light"] .saas-register-shell .text-slate-300,
html[data-theme="light"] .saas-register-shell .text-slate-400 {
    color: #0f172a !important;
}

html[data-theme="light"] .saas-register-shell .provider-preview-grid .preview-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95)) !important;
}

html[data-theme="light"] .saas-register-shell .provider-roster .roster-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.94)) !important;
}

html[data-theme="light"] .saas-register-shell .preview-name,
html[data-theme="light"] .saas-register-shell .plan-card h4,
html[data-theme="light"] .saas-register-shell .provider-card .text-white,
html[data-theme="light"] .saas-register-shell .provider-roster .text-white,
html[data-theme="light"] .saas-register-shell .provider-lineup-preview .text-white {
    color: #0f172a !important;
}

html[data-theme="light"] .saas-register-shell .preview-category,
html[data-theme="light"] .saas-register-shell .plan-card p,
html[data-theme="light"] .saas-register-shell .provider-select-copy,
html[data-theme="light"] .saas-register-shell .provider-roster .text-slate-400,
html[data-theme="light"] .saas-register-shell .provider-lineup-preview .text-slate-300 {
    color: #475569 !important;
}

html[data-theme="light"] .saas-register-shell .provider-logo-wrap,
html[data-theme="light"] .saas-register-shell .preview-logo {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,245,249,0.90)) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html[data-theme="light"] .saas-register-shell .preview-logo img,
html[data-theme="light"] .saas-register-shell .roster-card img,
html[data-theme="light"] .saas-register-shell .provider-logo {
    filter: saturate(0.95) brightness(0.95);
}

html[data-theme="light"] .saas-register-shell .provider-chip,
html[data-theme="light"] .saas-register-shell .badge-mandatory,
html[data-theme="light"] .saas-register-shell .step-pill,
html[data-theme="light"] .saas-register-shell .category-badge,
html[data-theme="light"] .saas-register-shell .provider-select-pill,
html[data-theme="light"] .saas-register-shell .provider-toggle-rail {
    background: rgba(255,255,255,0.96) !important;
    color: #334155 !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
}

[data-theme="dark"] .lineup-item {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .roster-card {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .plan-card {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .plan-card.featured {
    border-color: #4CAF50;
    background: #1e3a1e;
}

[data-theme="dark"] .provider-lineup-grid .provider-card,
[data-theme="dark"] .provider-preview-grid .preview-item,
[data-theme="dark"] .saas-surface-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
    border-color: rgba(255, 255, 255, 0.10);
    color: #e2e8f0;
}

[data-theme="light"] .provider-lineup-grid .provider-card,
[data-theme="light"] .provider-preview-grid .preview-item,
[data-theme="light"] .saas-surface-card {
    background: rgba(255,255,255,0.98);
    border-color: rgba(148, 163, 184, 0.22);
    color: #0f172a;
}

html[data-theme="light"] .provider-card .text-white,
html[data-theme="light"] .package-card .text-white,
html[data-theme="light"] .register-hero .text-white {
    color: #0f172a !important;
}

html[data-theme="light"] .provider-card .text-slate-300,
html[data-theme="light"] .provider-card .text-slate-400,
html[data-theme="light"] .package-card .text-slate-300,
html[data-theme="light"] .package-card .text-slate-400 {
    color: #475569 !important;
}

html[data-theme="light"] .provider-chip {
    background: rgba(248, 250, 252, 0.95);
    color: #334155;
    border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="light"] .step-pill {
    background: rgba(255,255,255,0.92);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.28);
}

html[data-theme="light"] .step-pill.active,
html[data-theme="light"] .step-pill:hover {
    background: rgba(99, 102, 241, 0.10);
    border-color: rgba(99, 102, 241, 0.42);
    color: #0f172a;
}

@media (max-width: 1024px) {
    .provider-card-top,
    .provider-card-footer {
        align-items: flex-start;
    }

    .provider-preview-grid,
    .roster-grid,
    .plan-cards,
    .onboarding-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .provider-preview-grid,
    .roster-grid,
    .plan-cards {
        grid-template-columns: 1fr;
    }

    .onboarding-flow {
        flex-direction: column;
    }
}
