.fivem-guide-page {
    padding-bottom: 5rem;
}

.fivem-guide-hero {
    padding: 7rem 0 3rem;
    text-align: center;
    position: relative;
}

.fivem-guide-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff8c00, #ff5f1f);
    z-index: 10000;
}

.guide-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-top: 1.4rem;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 34px;
    padding: .45rem .75rem;
    border: 1px solid rgba(255, 107, 53, .24);
    border-radius: 999px;
    background: rgba(255, 107, 53, .09);
    color: #f7f7f8;
    font-size: .82rem;
    font-weight: 800;
}

.guide-badge i {
    color: #ff8c00;
}

.guide-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.4rem;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.guide-sidebar {
    position: sticky;
    top: 95px;
    align-self: start;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(13,14,18,.88);
    box-shadow: 0 22px 55px rgba(0,0,0,.22);
    overflow: hidden;
}

.guide-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.guide-sidebar-header strong {
    display: block;
    color: #fff;
    font-size: .98rem;
}

.guide-sidebar-header span {
    display: block;
    margin-top: .2rem;
    color: #a7a7ad;
    font-size: .78rem;
}

.guide-nav {
    display: grid;
    padding: .55rem;
}

.guide-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .62rem .7rem;
    border-radius: 9px;
    color: #a7a7ad;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 750;
    transition: background .2s ease, color .2s ease;
}

.guide-nav a::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    flex: 0 0 8px;
}

.guide-nav a:hover,
.guide-nav a.active {
    background: rgba(255, 107, 53, .12);
    color: #fff;
}

.guide-nav a.active::before {
    background: #ff8c00;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, .14);
}

.guide-mobile-toc {
    display: none;
    margin: 0 auto 1rem;
    max-width: 1220px;
    padding: 0 1.25rem;
}

.guide-mobile-toc select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    background: #101116;
    color: #fff;
    padding: 0 .9rem;
    font-weight: 800;
}

.guide-content {
    display: grid;
    gap: 1.1rem;
    min-width: 0;
}

.guide-intro-card,
.guide-step-card,
.guide-support-card {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 107, 53, .1), transparent 18rem),
        linear-gradient(145deg, rgba(22,23,28,.94), rgba(10,11,15,.98));
    box-shadow: 0 24px 70px rgba(0,0,0,.26);
    overflow: hidden;
}

.guide-intro-card {
    padding: 1.35rem;
}

.guide-intro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1rem;
}

.guide-intro-item {
    min-height: 92px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.guide-intro-item i {
    color: #ff8c00;
    margin-bottom: .55rem;
}

.guide-intro-item strong {
    display: block;
    color: #fff;
    font-size: .9rem;
}

.guide-intro-item span {
    display: block;
    margin-top: .25rem;
    color: #a7a7ad;
    font-size: .78rem;
    line-height: 1.45;
}

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

.guide-step-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.3rem 1rem;
}

.guide-step-num {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    border-radius: 13px;
    background: linear-gradient(135deg, #ff8c00, #ff5f1f);
    color: #050505;
    font-weight: 950;
}

.guide-step-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    letter-spacing: 0;
}

.guide-step-head p,
.guide-intro-card p,
.guide-support-card p {
    margin: .35rem 0 0;
    color: #a7a7ad;
    line-height: 1.7;
}

.guide-step-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr);
    gap: 1rem;
    padding: 0 1.3rem 1.3rem;
}

.guide-step-body.single {
    grid-template-columns: 1fr;
}

.guide-instructions {
    min-width: 0;
}

.guide-instructions ol,
.guide-instructions ul {
    margin: 0;
    padding-left: 1.2rem;
}

.guide-instructions li {
    color: #c6c6cb;
    line-height: 1.75;
    margin-bottom: .35rem;
}

.guide-shot {
    min-height: 240px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: #06070a;
    overflow: hidden;
}

.shot-window-bar {
    height: 36px;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: 0 .8rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.055);
    color: #d7d7dc;
    font-size: .78rem;
    font-weight: 850;
}

.shot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff8c00;
}

.shot-body {
    padding: 1rem;
}

.shot-field,
.shot-row,
.shot-tile {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    background: rgba(255,255,255,.035);
}

.shot-field {
    padding: .72rem;
    margin-bottom: .7rem;
}

.shot-field span,
.shot-row span,
.shot-tile span {
    display: block;
    color: #8f929a;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.shot-field strong,
.shot-row strong,
.shot-tile strong {
    display: block;
    margin-top: .22rem;
    color: #fff;
    font-size: .88rem;
}

.shot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: .5rem .9rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff8c00, #ff5f1f);
    color: #050505;
    font-weight: 900;
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.shot-tile {
    min-height: 74px;
    padding: .75rem;
}

.shot-terminal,
.shot-code {
    padding: .85rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    background: #08090c;
    color: #dbe2ea;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.guide-alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 1rem 0;
    padding: .9rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: #c6c6cb;
    line-height: 1.65;
}

.guide-alert i {
    margin-top: .15rem;
}

.guide-alert.info i,
.guide-alert.tip i {
    color: #38bdf8;
}

.guide-alert.warning i {
    color: #fbbf24;
}

.guide-alert.danger {
    border-color: rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .08);
}

.guide-alert.danger i {
    color: #ef4444;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.download-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .8rem;
    align-items: start;
    padding: .9rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.download-card i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,107,53,.12);
    color: #ff8c00;
}

.download-card h3 {
    margin: 0 0 .25rem;
    color: #fff;
    font-size: 1rem;
}

.download-card p {
    margin: 0 0 .75rem;
    color: #a7a7ad;
    line-height: 1.55;
    font-size: .88rem;
}

.code-panel {
    margin: 1rem 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    overflow: hidden;
    background: #07080b;
}

.code-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem .9rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.055);
    color: #fff;
    font-weight: 850;
}

.copy-code-btn {
    border: 1px solid rgba(255,107,53,.35);
    border-radius: 8px;
    background: rgba(255,107,53,.12);
    color: #fbbf24;
    min-height: 34px;
    padding: .35rem .7rem;
    font-weight: 900;
    cursor: pointer;
}

.code-panel pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    color: #f8fafc;
    line-height: 1.65;
}

.ports-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    margin: 1rem 0;
}

.ports-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.ports-table th,
.ports-table td {
    padding: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #c6c6cb;
    text-align: left;
}

.ports-table th {
    color: #fff;
    background: rgba(255,255,255,.045);
}

.ports-table tr:last-child td {
    border-bottom: 0;
}

.accordion {
    display: grid;
    gap: .65rem;
}

.accordion-item {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    text-align: left;
}

.accordion-panel {
    display: none;
    padding: 0 1rem 1rem;
}

.accordion-item.open .accordion-panel {
    display: block;
}

.guide-support-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.4rem;
}

.guide-support-card h2 {
    color: #fff;
    margin: 0;
}

.guide-support-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        display: none;
    }

    .guide-mobile-toc {
        display: block;
    }
}

@media (max-width: 820px) {
    .guide-intro-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .guide-step-body {
        grid-template-columns: 1fr;
    }

    .guide-support-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .fivem-guide-hero {
        padding: 4.2rem 0 1.4rem;
    }

    .fivem-guide-hero .hero-badge {
        margin-bottom: 1rem;
    }

    .fivem-guide-hero .hero-subtitle {
        line-height: 1.55;
    }

    .guide-layout {
        padding: 0 .8rem;
    }

    .guide-mobile-toc {
        padding: 0 .8rem;
        margin-bottom: .75rem;
    }

    .guide-badges {
        gap: .45rem;
        margin-top: 1rem;
    }

    .guide-badge {
        min-height: 30px;
        padding: .35rem .55rem;
        font-size: .72rem;
    }

    .guide-step-head {
        align-items: flex-start;
        padding: 1rem;
    }

    .guide-step-num {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .guide-step-body {
        padding: 0 1rem 1rem;
    }

    .shot-grid {
        grid-template-columns: 1fr;
    }

    .guide-support-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
