.guide-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.guide-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 217, 255, 0.1));
    border-left: 4px solid #00ff88;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}


.guide-header .flex {
    flex-wrap: wrap;
}

.guide-header .flex>i {
    flex-shrink: 0;
}

.guide-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.guide-content h2 {
    color: #00ff88;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    word-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.guide-content h2 i {
    flex-shrink: 0;
}

#nroms {
    color: rgb(255, 255, 255);
}

.guide-content h3 {
    color: #00d9ff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.guide-content h4 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.guide-content p {
    margin-bottom: 1.5rem;
    color: #d1d5db;
    word-wrap: break-word;
}

.guide-content strong {
    color: #fff;
    font-weight: 600;
}

.guide-content ul,
.guide-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #d1d5db;
}

.guide-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.guide-content code {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
}

.guide-content pre {
    background: #1a1a1a;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.guide-content pre code {
    background: transparent;
    padding: 0;
    word-break: normal;
    display: block;
}


.info-box {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    word-wrap: break-word;
}

.info-box p {
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.info-box.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.info-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.info-box.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}


.toc {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h3 {
    color: #00ff88;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc ul li {
    margin-bottom: 0.5rem;
}

.toc ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    word-wrap: break-word;
}

.toc ul li a:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    padding-left: 0.75rem;
}


.guide-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 255, 136, 0.2);
}

.guide-nav-button {
    flex: 1;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guide-nav-button:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateX(5px);
}

.guide-nav-button.prev:hover {
    transform: translateX(-5px);
}

.guide-nav-button .label {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.guide-nav-button .title {
    color: #00ff88;
    font-weight: 600;
    font-size: 1.1rem;
    word-wrap: break-word;
}


.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #00ff88;
    text-decoration: none;
    padding: 0.25rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #6b7280;
}


.guide-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


.guide-content .my-6 {
    margin: 2rem 0;
}

.guide-content .my-6 img {
    margin: 0 auto 0.5rem;
}


.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #00ff88, #00d9ff);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h4 {
    margin-top: 0;
}


.guide-content .grid {
    display: grid;
    gap: 1.5rem;
}

.guide-content .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr;
}


.guide-content .px-3,
.guide-content .px-4 {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}


.aspect-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.aspect-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


details {
    margin-bottom: 1rem;
}

details summary {
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    margin-bottom: 1rem;
}


label.flex {
    cursor: pointer;
    user-select: none;
}

label.flex input[type="checkbox"] {
    flex-shrink: 0;
}

label.flex span {
    word-wrap: break-word;
}


kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-family: monospace;
    font-size: 0.875em;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}


@media (max-width: 374px) {
    .guide-container {
        padding: 0 0.5rem;
    }

    .guide-header {
        padding: 1rem;
    }

    .guide-header h1 {
        font-size: 1.75rem !important;
    }

    .guide-header .text-5xl,
    .guide-header .text-4xl {
        font-size: 1.75rem !important;
    }

    .guide-content {
        font-size: 0.95rem;
    }

    .guide-content h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    .guide-content h2 i {
        font-size: 1.5rem;
    }

    .guide-content h3 {
        font-size: 1.1rem;
    }

    .guide-content h4 {
        font-size: 1rem;
    }

    .info-box {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .info-box .flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .info-box i.text-3xl {
        font-size: 1.5rem !important;
    }

    .step {
        gap: 0.5rem;
    }

    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .guide-nav-button {
        padding: 1rem;
    }

    .guide-nav-button .title {
        font-size: 0.9rem;
    }

    .toc {
        padding: 1rem;
    }

    .toc h3 {
        font-size: 1rem;
    }

    .toc ul li a {
        font-size: 0.85rem;
        padding: 0.4rem;
    }
}


@media (min-width: 375px) and (max-width: 640px) {
    .guide-container {
        padding: 0 0.75rem;
    }

    .guide-header {
        padding: 1.25rem;
    }

    .guide-header h1 {
        font-size: 2rem !important;
    }

    .guide-header .text-5xl,
    .guide-header .text-4xl {
        font-size: 2rem !important;
    }

    .guide-header .flex.gap-3 {
        gap: 0.5rem;
    }

    .guide-header .px-3 {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .guide-content {
        font-size: 1rem;
    }

    .guide-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .guide-content h2 i {
        font-size: 1.75rem;
    }

    .guide-content h3 {
        font-size: 1.25rem;
    }

    .guide-content h4 {
        font-size: 1.1rem;
    }

    .guide-content ul,
    .guide-content ol {
        padding-left: 1.5rem;
    }

    .guide-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }

    .guide-nav-button {
        padding: 1.25rem;
    }

    .guide-nav-button .title {
        font-size: 1rem;
    }

    .info-box {
        padding: 1.25rem;
    }

    .info-box .text-lg {
        font-size: 1rem !important;
    }

    .info-box i.text-3xl,
    .info-box i.text-2xl {
        font-size: 1.5rem !important;
    }

    .toc {
        padding: 1.25rem;
    }

    .step {
        gap: 0.75rem;
    }

    .step-number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.1rem;
    }


    .guide-content .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }


    .guide-content .flex.gap-3,
    .guide-content .flex.gap-4,
    .guide-content .flex.gap-6 {
        gap: 0.5rem;
    }

    .guide-content .px-3,
    .guide-content .px-4,
    .guide-content .px-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 0.875rem;
    }


    .guide-content a.block.w-full {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }


    .guide-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.875rem;
    }
}


@media (min-width: 641px) and (max-width: 1024px) {
    .guide-header h1 {
        font-size: 2.5rem !important;
    }

    .guide-content {
        font-size: 1.05rem;
    }

    .guide-content h2 {
        font-size: 1.75rem;
    }

    .guide-content h3 {
        font-size: 1.4rem;
    }

    .guide-navigation {
        gap: 0.75rem;
    }


    .guide-content .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (min-width: 1025px) {
    .guide-content .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (min-width: 1280px) {
    .guide-container {
        max-width: 1000px;
    }

    .guide-content {
        font-size: 1.125rem;
    }
}


@media (max-height: 500px) and (orientation: landscape) {
    .guide-header {
        padding: 1rem;
    }

    .guide-header h1 {
        font-size: 1.5rem !important;
    }

    .guide-content h2 {
        margin-top: 1.5rem;
        font-size: 1.25rem;
    }

    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}


@media (hover: none) and (pointer: coarse) {
    .guide-nav-button:hover {
        transform: none;
    }

    .toc ul li a:hover {
        padding-left: 0.5rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


@media (prefers-color-scheme: dark) {
    .guide-content img {
        opacity: 0.95;
    }

    .guide-content img:hover {
        opacity: 1;
    }
}


@media print {

    .guide-navigation,
    .breadcrumb,
    .toc {
        display: none;
    }

    .guide-header {
        border: 1px solid #000;
        background: white !important;
    }

    .guide-content {
        color: #000;
    }

    .guide-content h2,
    .guide-content h3,
    .guide-content h4 {
        color: #000;
    }

    .info-box {
        border: 1px solid #000;
        background: white !important;
    }
}




.guide-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}


.guide-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    width: 280px;
    min-width: 280px;
    background: rgba(15, 25, 20, 0.95);
    border-right: 1px solid rgba(0, 255, 136, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem 0;
    z-index: 40;
    transition: transform 0.3s ease;
}

.guide-sidebar::-webkit-scrollbar {
    width: 4px;
}

.guide-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 2px;
}


.sidebar-header {
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    margin-bottom: 1rem;
}

.sidebar-header h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.sidebar-header .console-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #00ff88;
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-header .console-name img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}


.sidebar-section {
    margin-bottom: 0.5rem;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.sidebar-section-title:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.sidebar-section-title i {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.sidebar-section.collapsed .sidebar-section-title i {
    transform: rotate(-90deg);
}

.sidebar-section.collapsed .sidebar-items {
    display: none;
}


.sidebar-items {
    padding: 0.25rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem 0.7rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-item:hover {
    background: rgba(0, 255, 136, 0.08);
    color: #00ff88;
    border-left-color: rgba(0, 255, 136, 0.5);
}

.sidebar-item.active {
    background: rgba(0, 255, 136, 0.12);
    color: #00ff88;
    border-left-color: #00ff88;
    font-weight: 600;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00ff88, #00d9ff);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.sidebar-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-item .item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(0, 255, 136, 0.15);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00ff88;
    flex-shrink: 0;
}

.sidebar-item.active .item-number {
    background: #00ff88;
    color: #000;
}

.sidebar-item .item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.sidebar-item .badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-item .badge.new {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.sidebar-item .badge.important {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}


.sidebar-divider {
    height: 1px;
    background: rgba(0, 255, 136, 0.1);
    margin: 1rem 1.25rem;
}


.guide-main {
    flex: 1;
    min-width: 0;
    padding: 2rem 3rem;
}


.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00ff88, #00d9ff);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
    transition: all 0.3s ease;
}

.mobile-sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.5);
}

.mobile-sidebar-toggle:active {
    transform: scale(0.95);
}


.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}


.sidebar-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}


.sidebar-progress {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(0, 255, 136, 0.15);
    margin-top: auto;
}

.sidebar-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.sidebar-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.sidebar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d9ff);
    border-radius: 2px;
    transition: width 0.5s ease;
}




@media (max-width: 1024px) {
    .guide-sidebar {
        width: 260px;
        min-width: 260px;
    }

    .guide-main {
        padding: 1.5rem 2rem;
    }
}


@media (max-width: 768px) {
    .guide-layout {
        flex-direction: column;
    }

    .guide-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 300px;
        max-width: 85vw;
        transform: translateX(-100%);
        z-index: 95;
        padding-top: 4rem;
    }

    .guide-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .guide-main {
        padding: 1rem;
        width: 100%;
    }


    .guide-main .guide-container {
        padding: 0;
    }
}


@media (max-width: 480px) {
    .guide-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .mobile-sidebar-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}


@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.guide-sidebar.open {
    animation: slideIn 0.3s ease forwards;
}


.quick-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 30;
}

.quick-nav-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.quick-nav-dot:hover {
    background: rgba(0, 255, 136, 0.5);
    border-color: #00ff88;
    transform: scale(1.2);
}

.quick-nav-dot.active {
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.quick-nav-dot::before {
    content: attr(data-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.quick-nav-dot:hover::before {
    opacity: 1;
}

@media (max-width: 1280px) {
    .quick-nav {
        display: none;
    }
}