html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f7f8fa;
}

/* ===== Layout ===== */
.guide-layout {
    display: flex;
    align-items: flex-start;
}

/* ===== Sidebar (fixed) ===== */
.guide-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 260px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #dee2e6;
    padding-bottom: 2rem;
}

.sidebar-title {
    padding: 0 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.guide-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #495057;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.guide-sidebar .nav-link:hover {
    background: #f0f2f5;
    color: #212529;
    border-left-color: #adb5bd;
}

.guide-sidebar .nav-link.active {
    background: #e7f1ff;
    color: #0d6efd;
    font-weight: 600;
    border-left-color: #0d6efd;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.guide-sidebar .nav-link.active .step-badge {
    background: #0d6efd;
    color: #fff;
}

/* ===== Mobile step selector ===== */
.mobile-step-selector {
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 56px;
    z-index: 10;
}

/* ===== Guide content ===== */
.guide-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem 2.5rem;
    max-width: 900px;
    min-width: 0;
}

.guide-step {
    margin-bottom: 3rem;
    scroll-margin-top: 90px;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: #212529;
}

.step-subtitle {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.step-body {
    padding-left: 64px;
}

.step-list {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.step-list li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.step-list ul {
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
}

.step-list ul li {
    margin-bottom: 0.2rem;
}

.step-result,
.step-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.step-result {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
}

.step-result i {
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.step-note {
    background: #fff3cd;
    border: 1px solid #ffda6a;
}

.step-note i {
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

/* ===== Screenshot ===== */
.screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 1.25rem 0 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    .guide-content {
        margin-left: 0;
        padding: 1.25rem 1rem;
    }

    .step-body {
        padding-left: 0;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .step-header h2 {
        font-size: 1.25rem;
    }

    .guide-step {
        scroll-margin-top: 130px;
    }
}