/* /assets/css/onboarding.css */
/* Onboarding Wizard + Register + Verify */

/* ── Reset & Base ── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
}

/* ── Full-screen Container ── */
#onboarding-container,
#register-container,
#verify-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 50%, #111827 100%);
    color: #e6edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto;
}

/* ── Content Area ── */
.onboarding-content,
.register-content {
    max-width: 800px;
    width: 90%;
    text-align: center;
    animation: fadeSlideUp 0.4s ease;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Logo ── */
.register-logo {
    font-size: 4rem;
    margin-bottom: 16px;
}

/* ── Title & Text ── */
.onboarding-title,
.register-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(90deg, #58a6ff, #a5d6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-text,
.register-subtitle {
    font-size: 1.1rem;
    color: #8b949e;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* ── Options Grid ── */
.onboarding-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.option-card {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(88, 166, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.option-card.selected {
    background: rgba(88, 166, 255, 0.12);
    border-color: #58a6ff;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.15);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.2rem;
    color: #58a6ff;
    font-weight: 700;
}

.option-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.option-label {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e6edf3;
}

.option-desc {
    font-size: 0.88rem;
    color: #8b949e;
    line-height: 1.4;
}

/* ── Checklist (multi-select) ── */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.checklist-item:hover {
    border-color: rgba(88, 166, 255, 0.4);
}

.checklist-item.selected {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
}

.checklist-item .check-icon {
    font-size: 1.6rem;
}

.checklist-item .check-label {
    font-weight: 500;
    font-size: 1rem;
}

/* ── Text Input ── */
.onboarding-input {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 32px;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    color: #e6edf3;
    text-align: center;
    transition: border-color 0.2s;
}

.onboarding-input:focus {
    border-color: #58a6ff;
    outline: none;
}

.onboarding-input::placeholder {
    color: #6e7681;
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.pricing-card:hover {
    border-color: rgba(88, 166, 255, 0.4);
}

.pricing-card.selected {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.08);
}

.pricing-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.pricing-price {
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 0.85rem;
    color: #8b949e;
}

.pricing-free {
    color: #a78bfa;
}

.pricing-disclaimer {
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #8bb9fe;
}

/* ── Review (final step) ── */
.review-summary {
    text-align: left;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.review-item+.review-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.review-label {
    font-weight: 600;
    min-width: 120px;
    color: #8b949e;
    font-size: 0.9rem;
}

.review-value {
    color: #e6edf3;
}

.review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.review-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Actions ── */
.onboarding-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ── Buttons ── */
.btn-primary,
.btn-secondary,
.btn-skip {
    padding: 13px 32px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #58a6ff, #8bd6ff);
    color: #0b1220;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e6edf3;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-skip {
    background: transparent;
    color: #6e7681;
}

.btn-skip:hover {
    color: #8b949e;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ── Register Form ── */
.register-form {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #8b949e;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: #e6edf3;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #58a6ff;
    outline: none;
}

.form-error {
    color: #f87171;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
}

.register-links {
    margin-top: 20px;
}

.register-links a {
    color: #58a6ff;
    text-decoration: none;
    font-size: 0.9rem;
}

.register-links a:hover {
    text-decoration: underline;
}

/* ── Progress Bar ── */
.onboarding-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10000;
}

.onboarding-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #10b981);
    transition: width 0.4s ease;
    border-radius: 0 2px 2px 0;
}

/* ── Loading Spinner ── */
.onboarding-loading {
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #58a6ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ── */
@media (max-width: 600px) {

    .onboarding-title,
    .register-title {
        font-size: 1.6rem;
    }

    .onboarding-options {
        grid-template-columns: 1fr;
    }

    .checklist-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .option-card {
        padding: 18px;
    }
}