/* =====================================================
   ONBOARDING PAGE
   ===================================================== */

.ewi-onboarding-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: var(--bg);
}

.ewi-onboarding-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px 36px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header */
.ewi-onboarding-header {
    text-align: center;
    margin-bottom: 28px;
}

.ewi-onboarding-logo {
    margin-bottom: 16px;
}

.ewi-onboarding-logo img {
    max-width: 160px;
    height: auto;
    display: inline-block;
}

.ewi-onboarding-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.2;
}

.ewi-onboarding-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Progress bar */
.ewi-onboarding-progress {
    margin-bottom: 24px;
}

.ewi-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ewi-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.ewi-progress-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    text-align: right;
}

/* Steps list */
.ewi-onboarding-steps {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ewi-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ewi-step:hover {
    border-color: var(--accent);
    background: rgba(77, 163, 255, 0.05);
}

.ewi-step--done {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.06);
}

.ewi-step--done:hover {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.ewi-step-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.ewi-step-label {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}

.ewi-step--done .ewi-step-label {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.2);
}

/* Step Go button */
.ewi-step-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.ewi-step-btn:hover {
    background: var(--accent);
    color: #000;
    text-decoration: none;
}

.ewi-step-done-label {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4dff9a;
    padding: 4px 10px;
    background: rgba(77, 255, 154, 0.08);
    border-radius: 999px;
    border: 1px solid rgba(77, 255, 154, 0.2);
}

/* Action buttons */
.ewi-onboarding-actions {
    text-align: center;
}

.ewi-btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ewi-btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
    color: #000;
}

.ewi-btn-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.ewi-btn-skip:hover {
    color: var(--text);
}

/* =========================================================
   LIGHT MODE FIXES — onboarding.css
   ========================================================= */

body.light-mode .ewi-progress-bar {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .ewi-step {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .ewi-step--done {
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .ewi-step--done:hover {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .ewi-step--done .ewi-step-label {
    text-decoration-color: rgba(0, 0, 0, 0.25);
}
