/* ── Welcome overlay ─────────────────────────────── */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    animation: welcomeFade 0.25s ease;
}
.welcome-overlay.hidden { display: none; }

@keyframes welcomeFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.welcome-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    max-width: 460px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: welcomeSlide 0.3s ease;
}

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

.welcome-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--color-text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-close:hover { background: var(--color-bg); }

.welcome-logo {
    text-align: center;
    margin-bottom: var(--space-md);
}
.welcome-logo-img {
    width: 56px;
    height: auto;
    margin-bottom: var(--space-xs);
}
.welcome-brand {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}
.welcome-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.welcome-title {
    text-align: center;
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}
.welcome-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
}

.welcome-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.welcome-step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.welcome-step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.welcome-step-body { flex: 1; }

.welcome-step-title {
    font-weight: 700;
    font-size: var(--font-size-md);
    margin-bottom: 2px;
}

.welcome-step-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-xs);
}
.welcome-step-desc a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}
.welcome-step-desc a:hover { text-decoration: underline; }

.welcome-step-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.btn.btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
}
