/* ==========================================================================
   MASTER GUIDE MODERN STYLING & GENEROUS SPACING SYSTEM
   ========================================================================== */
:root {
    --guide-bg: #F8FAFC;
    --guide-card-bg: #FFFFFF;
    --guide-dark: #0F172A;
    --guide-slate: #1E293B;
    --guide-muted: #64748B;
    --guide-border: #E2E8F0;
    --guide-emerald: #059669;
    --guide-emerald-light: #10B981;
    --guide-indigo: #4F46E5;
    --guide-amber: #D97706;
    --guide-blue: #0284C7;
    --guide-radius: 20px;
    --guide-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --guide-shadow-hover: 0 20px 40px -10px rgba(5, 150, 105, 0.15);
}

html {
    scroll-behavior: smooth !important;
}

html, body {
    overflow-x: clip !important;
}

.guide-container,
.dashboard,
.dashboard__wrap,
.dashboard__body,
main {
    overflow: visible !important;
}

.guide-container {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--guide-slate);
    line-height: 1.75;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 24px 28px 80px !important;
    box-sizing: border-box !important;
}

/* Hero Header */
.guide-hero {
    background: linear-gradient(135deg, #0F172A 0%, #064E3B 50%, #065F46 100%);
    border-radius: 24px;
    padding: 36px 40px;
    color: #FFFFFF;
    box-shadow: 0 20px 45px -12px rgba(6, 78, 59, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.guide-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.guide-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #6EE7B7;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.guide-hero h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #FFFFFF;
}

.guide-hero p {
    color: #A7F3D0;
    font-size: 15px;
    max-width: 860px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 2-Column Sidebar + Content Layout */
.guide-layout-wrapper {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
    position: relative !important;
    min-height: calc(100vh - 120px) !important;
}

.guide-sidebar {
    position: sticky !important;
    top: 20px !important;
    width: 320px !important;
    flex-shrink: 0 !important;
    height: calc(100vh - 40px) !important;
    max-height: calc(100vh - 40px) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 90 !important;
    align-self: start !important;
}

.guide-sidebar-inner {
    background: #FFFFFF !important;
    border: 1px solid var(--guide-border) !important;
    border-radius: 20px !important;
    padding: 18px 16px !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06) !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.sidebar-header-box {
    flex-shrink: 0 !important;
    position: relative !important;
    top: 0 !important;
    background: #FFFFFF !important;
    z-index: 10 !important;
    padding-bottom: 12px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid var(--guide-border) !important;
}

.sidebar-nav-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding-right: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.sidebar-nav-list::-webkit-scrollbar {
    width: 5px;
}
.sidebar-nav-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.sidebar-nav-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.nav-category-header {
    flex-shrink: 0 !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94A3B8;
    margin: 14px 4px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.roadmap-card {
    flex-shrink: 0 !important;
    min-height: 56px !important;
    background: #FFFFFF;
    border: 1.5px solid var(--guide-border);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box !important;
}

.roadmap-card.d-none-filter {
    display: none !important;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.2s ease;
}

.roadmap-card:hover {
    transform: translateX(3px);
    border-color: var(--guide-emerald-light);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
    background: #F8FAFC;
    color: inherit;
}

.roadmap-card.active {
    border-color: #059669 !important;
    background: #ECFDF5 !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.15) !important;
    transform: translateX(4px);
}

.roadmap-card.active::before {
    background: var(--guide-emerald);
}

.roadmap-num {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.roadmap-info {
    flex-grow: 1;
    min-width: 0;
}

.roadmap-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--guide-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.roadmap-info p {
    font-size: 11.5px;
    color: var(--guide-muted);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-main-content {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
}

.guide-section {
    display: none !important;
}

.guide-section.active {
    display: block !important;
    animation: fadeInGuide 0.25s ease-in-out;
}

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

@media (max-width: 991.98px) {
    .guide-layout-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .guide-sidebar {
        position: relative !important;
        top: 0 !important;
        max-height: none !important;
        width: 100% !important;
    }
    .guide-sidebar-inner {
        max-height: 440px !important;
    }
}

/* Main Section Containers */
.guide-section {
    background: #FFFFFF;
    border: 1px solid var(--guide-border);
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 30px;
    box-shadow: var(--guide-shadow);
    width: 100% !important;
    box-sizing: border-box !important;
    scroll-margin-top: 100px !important;
    transition: all 0.35s ease;
}

.guide-section.highlight-active {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.25), 0 20px 40px -10px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-3px);
}

/* Section Header & Highlighted Headings */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 2px solid #F1F5F9;
}

.step-badge {
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-emerald { background: linear-gradient(135deg, #059669, #10B981); }
.badge-indigo  { background: linear-gradient(135deg, #4338CA, #6366F1); }
.badge-violet  { background: linear-gradient(135deg, #6D28D9, #8B5CF6); }
.badge-blue    { background: linear-gradient(135deg, #0369A1, #0EA5E9); }
.badge-amber   { background: linear-gradient(135deg, #D97706, #F59E0B); }
.badge-teal    { background: linear-gradient(135deg, #0F766E, #14B8A6); }

.section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--guide-dark);
    margin: 0;
    line-height: 1.35;
}

/* Meta Field Cards & Step Cards */
.meta-field-card {
    background: #F8FAFC;
    border-left: 5px solid var(--guide-emerald);
    border-top: 1px solid var(--guide-border);
    border-right: 1px solid var(--guide-border);
    border-bottom: 1px solid var(--guide-border);
    border-radius: 0 18px 18px 0;
    padding: 28px 32px;
    margin-bottom: 28px;
}

.meta-field-card h3 {
    font-size: 17.5px;
    font-weight: 800;
    color: var(--guide-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-location {
    display: inline-block;
    background: #E2E8F0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace;
}

.meta-field-card p {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 12px;
}

.meta-steps {
    background: #FFFFFF;
    border: 1px solid var(--guide-border);
    border-radius: 14px;
    padding: 20px 24px;
    font-size: 14px;
    color: #334155;
    margin-top: 14px;
}

.meta-steps ol {
    padding-left: 20px;
    margin-bottom: 0;
}

.meta-steps li {
    margin-bottom: 10px;
    line-height: 1.65;
}

.meta-steps li:last-child {
    margin-bottom: 0;
}

/* Feature & Stat Cards */
.feature-box {
    background: #F8FAFC;
    border: 1px solid var(--guide-border);
    border-radius: 18px;
    padding: 26px 28px;
    height: 100%;
    transition: all 0.25s ease;
}

.feature-box:hover {
    background: #FFFFFF;
    border-color: var(--guide-emerald-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.feature-box h5, .feature-box h6 {
    font-size: 16px;
    font-weight: 800;
    color: var(--guide-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-box p {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 0;
    line-height: 1.65;
}

/* Callout Alerts */
.callout-box {
    background: #EFF6FF;
    border-left: 5px solid #3B82F6;
    border-top: 1px solid #BFDBFE;
    border-right: 1px solid #BFDBFE;
    border-bottom: 1px solid #BFDBFE;
    border-radius: 0 16px 16px 0;
    padding: 22px 26px;
    margin: 28px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #1E40AF;
    font-size: 14.5px;
    line-height: 1.65;
}

.callout-box i {
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

.callout-success {
    background: #ECFDF5;
    border-left-color: #10B981;
    border-top-color: #A7F3D0;
    border-right-color: #A7F3D0;
    border-bottom-color: #A7F3D0;
    color: #065F46;
}

.callout-warning {
    background: #FFFBEB;
    border-left-color: #F59E0B;
    border-top-color: #FDE68A;
    border-right-color: #FDE68A;
    border-bottom-color: #FDE68A;
    color: #92400E;
}

/* Code Boxes */
.guide-code-box {
    background: #0F172A;
    color: #38BDF8;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    margin: 12px 0;
    word-break: break-all;
    border: 1px solid #334155;
}

.highlight-text {
    color: #059669;
    font-weight: 700;
}

.tag-pill {
    background: #D1FAE5;
    color: #065F46;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    display: inline-block;
}

/* Table Styling */
.guide-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--guide-border);
}

.guide-table th {
    background: #0F172A;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px;
}

.guide-table td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--guide-border);
    background: #FFFFFF;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table tr:hover td {
    background: #F8FAFC;
}

@media (max-width: 991px) {
    .guide-container {
        padding: 16px 14px 60px !important;
    }
    .guide-layout-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .guide-sidebar {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-height: 380px !important;
    }
    .guide-sidebar-inner {
        max-height: 380px !important;
    }
}

@media (max-width: 768px) {
    .guide-hero { padding: 24px 18px !important; border-radius: 18px !important; }
    .guide-hero h1 { font-size: 22px !important; }
    .guide-section { padding: 22px 16px !important; border-radius: 16px !important; }
    .meta-field-card { padding: 16px !important; }
    .guide-table { font-size: 13px; }
    .guide-table th, .guide-table td { padding: 10px 12px !important; }
}

@media (max-width: 576px) {
    .guide-hero h1 { font-size: 19px !important; }
    .guide-hero-badge { font-size: 11px !important; padding: 5px 12px !important; }
    .btn-lang-pill { font-size: 11px !important; padding: 3px 8px !important; }
}