/* Onboarding Tutorial — extracted from styles.css 2026-05-17 (#19d). */
/* Loaded by index.html AFTER styles-cart.css so cascade order is preserved. */

/* ============ ONBOARDING TUTORIAL ============ */

.onboarding-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 25, 20, 0.55);
    z-index: 10000;
    transition: opacity 0.3s;
}

.onboarding-spotlight {
    position: fixed;
    z-index: 10001;
    box-shadow: 0 0 0 9999px rgba(30, 25, 20, 0.55);
    border: 2px solid rgba(126, 156, 216, 0.6);
    border-radius: 10px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-tooltip {
    position: fixed;
    z-index: 10002;
    background: #faf6f0;
    border: 1px solid #e0d6c8;
    border-radius: 12px;
    padding: 20px 22px 16px;
    max-width: 340px;
    min-width: 260px;
    box-shadow: 0 8px 32px rgba(40, 30, 20, 0.18), 0 2px 8px rgba(40, 30, 20, 0.08);
    font-family: 'Inter', -apple-system, sans-serif;
    animation: onboardingFadeIn 0.3s ease-out;
}

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

.onboarding-step-num {
    font-size: 11px;
    color: #9a8e82;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.onboarding-title {
    font-size: 16px;
    font-weight: 700;
    color: #3c3226;
    margin-bottom: 8px;
}

.onboarding-text {
    font-size: 13px;
    line-height: 1.55;
    color: #6b5e52;
    margin-bottom: 16px;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.onboarding-nav {
    display: flex;
    gap: 6px;
}

.onboarding-btn {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    font-family: inherit;
}

.onboarding-btn.next {
    background: #5c7caa;
    color: #fff;
}
.onboarding-btn.next:hover {
    background: #4a6a98;
}

.onboarding-btn.prev {
    background: rgba(92, 80, 72, 0.08);
    color: #5c5048;
}
.onboarding-btn.prev:hover {
    background: rgba(92, 80, 72, 0.15);
}

.onboarding-btn.skip {
    background: none;
    color: #9a8e82;
    padding: 7px 8px;
}
.onboarding-btn.skip:hover {
    color: #6b5e52;
}

/* --- Legend inside tooltip --- */
.onboarding-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 6px;
}
.onboarding-legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b5e52;
}
.onboarding-legend-triangles {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}
.onboarding-shape {
    flex-shrink: 0;
    display: inline-block;
}
/* Traders = circles (default node shape in cytoscape) */
.onboarding-shape.circle.trader {
    width: 16px; height: 16px;
    background: #e5a84b;
    border: 2px solid #c4893a;
    border-radius: 50%;
    box-sizing: border-box;
}
/* Triangles = tokens: yes(green), no(red), neutral(yellow) */
.onboarding-shape.triangle {
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid #ffc107;
}
.onboarding-shape.triangle.yes {
    border-bottom-color: #a7c080;
}
.onboarding-shape.triangle.no {
    border-bottom-color: #e67e80;
}
.onboarding-shape.triangle.neutral {
    border-bottom-color: #ffc107;
}
/* Markets = rounded squares */
.onboarding-shape.square {
    width: 16px; height: 16px;
    background: #6fa1ca;
    border: 2px solid #5a8fb5;
    border-radius: 4px;
    box-sizing: border-box;
}
.onboarding-shape.edge {
    width: 28px; height: 3px;
    background: linear-gradient(90deg, #a7c080, #e67e80);
    border-radius: 2px;
}


/* ─── Onboarding tooltip — mobile overrides (#19e/f) ──────────────────── */
/* Moved here from main styles.css MOBILE LAYOUT block. */
@media (max-width: 768px) {
    .onboarding-tooltip {
        max-width: calc(100vw - 32px);
        min-width: 240px;
    }

    .onboarding-title {
        font-size: 15px;
    }

    .onboarding-text {
        font-size: 12px;
    }

    .onboarding-btn {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 11px;
    }
}
