body {
    background:
        radial-gradient(circle at top left, rgba(47, 116, 218, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(242, 140, 40, 0.1), transparent 22%),
        linear-gradient(180deg, #f7faff 0%, #eef3f8 100%);
    color: var(--dark);
}

.register-shell {
    padding: 40px 24px 48px;
}

.register-layout {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

.register-intro,
.register-card,
.plan-modal-content,
.success-modal-content {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #dbe4ef;
    box-shadow: var(--shadow-sm);
}

.register-intro::before,
.register-card::before,
.plan-modal-content::before,
.success-modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.register-intro {
    border-radius: 28px;
    padding: 32px 28px;
    position: sticky;
    top: 92px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.register-kicker,
.card-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 116, 218, 0.08);
    border: 1px solid rgba(47, 116, 218, 0.14);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.register-intro h1,
.card-header h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #0c1422;
    margin-bottom: 14px;
    font-weight: 700;
}

.register-intro p,
.card-header p {
    font-size: 15px;
    line-height: 1.8;
    color: #5b6778;
}

.intro-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.intro-pills span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dbe4ef;
    box-shadow: var(--shadow-sm);
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.intro-pills i {
    color: var(--primary);
}

.intro-signal-card {
    margin-top: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(47, 116, 218, 0.06), rgba(242, 140, 40, 0.08));
    border: 1px solid #deebf7;
    padding: 20px;
}

.signal-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.signal-kicker,
.signal-status {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signal-kicker {
    color: #5c6d83;
}

.signal-status {
    color: var(--primary);
}

.signal-grid {
    display: grid;
    gap: 12px;
}

.signal-item {
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e3ebf4;
}

.signal-item strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}

.signal-item span {
    font-size: 13px;
    line-height: 1.7;
    color: #5d6c80;
}

.register-card {
    border-radius: 30px;
    padding: 32px 30px 28px;
    min-height: 100%;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.message {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-panel {
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    border: 1px solid #e4ecf4;
    padding: 22px 20px 18px;
}

.section-title {
    font-size: 12px;
    font-weight: 800;
    color: #5f6b7f;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.required {
    color: #dc2626;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #dbe4ef;
    border-radius: 14px;
    font-size: 13px;
    background: #f9fbfd;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    color: #18181b;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(47, 116, 218, 0.08);
}

.error-message {
    color: #dc2626;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.plan-console {
    margin-bottom: 18px;
}

.plan-console-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.plan-console-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.plan-console-head p {
    font-size: 12px;
    line-height: 1.7;
    color: #64748b;
}

.plan-console-btn {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.plan-selector {
    background: linear-gradient(135deg, #f8fbfe 0%, #fff9f3 100%);
    border: 1.5px solid #d9e4ef;
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.plan-selector:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eef5ff 0%, #fff5e9 100%);
}

.plan-selector-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-selector-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.plan-selector-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plan-selector-title {
    font-weight: 700;
    font-size: 15px;
    color: #18181b;
}

.plan-selector-subtitle {
    font-size: 11px;
    color: #71717a;
}

.plan-selector-price {
    font-weight: 800;
    font-size: 15px;
    color: var(--primary);
}

.plan-selector-price.free {
    color: #10b981;
}

.plan-inline-error {
    color: #dc2626;
    font-size: 11px;
    margin-top: 6px;
}

.selected-plan-wrap {
    margin-top: 12px;
}

.selected-plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #fee2e2;
    background: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
}

.submit-area {
    margin-top: 22px;
    text-align: center;
}

.register-reassurance {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
    border: 1px solid #e3ebf4;
    color: #5c6c80;
    font-size: 12px;
    font-weight: 700;
}

.reassurance-item i {
    color: var(--primary);
}

.btn-register {
    min-width: 260px;
    min-height: 50px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 18px 28px rgba(47, 116, 218, 0.18);
    transition: all 0.2s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.back-link {
    text-align: center;
    margin-top: 18px;
}

.back-link a {
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    transition: all 0.2s;
}

.back-link a:hover {
    background: #f1f5f9;
    color: #18181b;
}

.plan-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 27, 0.42);
    backdrop-filter: blur(6px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.plan-modal.active {
    display: flex;
}

.plan-modal-content {
    max-width: 760px;
    width: 100%;
    border-radius: 30px;
    padding: 30px;
    animation: modalSlideUp 0.25s ease;
}

.plan-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.plan-modal-header h3 {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 700;
}

.plan-modal-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.plan-card {
    border: 1.5px solid #e4e4e7;
    border-radius: 22px;
    padding: 24px 16px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow: visible;
}

.plan-card:hover,
.plan-card.selected {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(47, 116, 218, 0.12);
}

.plan-card.popular::before,
.plan-card.best-value::before {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    z-index: 10;
    border: 2px solid white;
}

.plan-card.popular::before {
    content: 'POPULAR';
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.plan-card.best-value::before {
    content: 'BEST VALUE';
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.plan-icon {
    font-size: 28px;
    margin: 8px 0 10px;
    text-align: center;
    color: var(--primary);
}

.plan-name {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 6px;
    color: #18181b;
    text-align: center;
}

.plan-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.plan-price.free {
    color: #10b981;
}

.plan-price small {
    font-size: 11px;
    font-weight: 600;
    color: #71717a;
}

.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-features li {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-features i {
    color: #10b981;
    font-size: 11px;
}

.plan-modal-actions,
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-btn,
.action-btn {
    min-height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn.primary,
.action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.modal-btn.secondary,
.action-btn.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #dbe4ef;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 27, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.success-modal-content {
    border-radius: 28px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10b981, #22c55e);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    color: white;
    font-size: 34px;
}

.success-modal-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.success-modal-content p,
.info-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.progress-bar-container {
    height: 10px;
    border-radius: 999px;
    background: #e7eff8;
    overflow: hidden;
    margin: 18px 0;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes modalSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 24%),
        linear-gradient(180deg, #09111c 0%, #101826 100%);
    color: #e5eef8;
}

html[data-theme="dark"] .register-intro,
html[data-theme="dark"] .register-card,
html[data-theme="dark"] .plan-modal-content,
html[data-theme="dark"] .success-modal-content,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .signal-item,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .reassurance-item {
    background: linear-gradient(180deg, rgba(11, 20, 33, 0.96) 0%, rgba(16, 27, 42, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 40px rgba(2, 8, 20, 0.34);
}

html[data-theme="dark"] .register-intro h1,
html[data-theme="dark"] .card-header h2,
html[data-theme="dark"] .signal-item strong,
html[data-theme="dark"] .plan-console-head h3,
html[data-theme="dark"] .plan-selector-title,
html[data-theme="dark"] .plan-modal-header h3,
html[data-theme="dark"] .plan-name,
html[data-theme="dark"] .success-modal-content h3 {
    color: #f8fbff;
}

html[data-theme="dark"] .register-intro p,
html[data-theme="dark"] .card-header p,
html[data-theme="dark"] .signal-item span,
html[data-theme="dark"] .plan-console-head p,
html[data-theme="dark"] .plan-selector-subtitle,
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .plan-features li,
html[data-theme="dark"] .success-modal-content p,
html[data-theme="dark"] .info-text,
html[data-theme="dark"] .back-link a,
html[data-theme="dark"] .reassurance-item {
    color: #9fb0c4;
}

html[data-theme="dark"] .register-kicker,
html[data-theme="dark"] .card-kicker,
html[data-theme="dark"] .intro-pills span,
html[data-theme="dark"] .plan-console-btn,
html[data-theme="dark"] .selected-plan-badge,
html[data-theme="dark"] .modal-btn.secondary,
html[data-theme="dark"] .action-btn.secondary {
    background: rgba(15, 23, 36, 0.9);
    border-color: rgba(148, 163, 184, 0.18);
    color: #d7e4f2;
}

html[data-theme="dark"] .intro-signal-card,
html[data-theme="dark"] .plan-selector {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(249, 115, 22, 0.08));
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select {
    background: rgba(15, 23, 36, 0.9);
    border-color: rgba(148, 163, 184, 0.18);
    color: #f8fbff;
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus {
    background: rgba(12, 20, 32, 0.96);
}

html[data-theme="dark"] .input-icon,
html[data-theme="dark"] .plan-icon {
    color: #8fc3ff;
}

html[data-theme="dark"] .back-link a:hover {
    background: rgba(15, 23, 36, 0.9);
    color: #f8fbff;
}

@media (max-width: 1040px) {
    .register-layout {
        grid-template-columns: 1fr;
    }

    .register-intro {
        position: static;
    }
}

@media (max-width: 768px) {
    .register-shell {
        padding: 28px 16px 36px;
    }

    .register-card,
    .register-intro,
    .plan-modal-content,
    .success-modal-content {
        border-radius: 24px;
        padding: 24px 20px;
    }

    .registration-grid,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .plan-console-head,
    .plan-selector,
    .signal-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-register {
        width: 100%;
        min-width: 0;
    }
}
