:root {
    --background: #080808;
    --sidebar: #0b0b0b;
    --surface: #101010;
    --surface-hover: #151515;
    --border: #1d1d1d;
    --text: #ffffff;
    --text-secondary: #999999;
    --text-muted: #5f5f5f;
    --sidebar-width: 270px;
    --content-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.app {
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    padding: 22px 13px;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform .22s ease, background .25s ease, border-color .25s ease;
}

.brand {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.brand-logo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: black;
    border-radius: 7px;
    font-size: 13px;
}

.navigation {
    margin-top: 27px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 28px;
}

.nav-title {
    padding: 0 11px;
    margin-bottom: 7px;
    color: #555;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
}

.nav-link {
    min-height: 35px;
    margin: 2px 0;
    padding: 7px 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 6px;
    color: #777;
    font-size: 12.5px;
    transition: background .15s ease, color .15s ease;
}

.nav-link i {
    width: 16px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.nav-link:hover {
    background: #141414;
    color: #ddd;
}

.nav-link:hover i {
    color: #aaa;
}

.nav-link.active {
    background: #181818;
    color: white;
    font-weight: 500;
}

.nav-link.active i {
    color: white;
}

/* SIDEBAR BOTTOM */

.sidebar-bottom {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}

.bottom-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    color: #666;
    font-size: 11px;
    border-radius: 6px;
}

.made-by i {
    width: 16px;
    text-align: center;
}

/* MAIN */

.main {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    min-width: 0;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    height: 62px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(8, 8, 8, .86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #666;
    font-size: 11px;
}

.breadcrumbs i {
    font-size: 8px;
    color: #333;
}

.breadcrumbs span:last-child {
    color: #aaa;
}

.header-actions {
    display: flex;
    gap: 7px;
}

.header-button {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #222;
    border-radius: 6px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.header-button:hover {
    background: #141414;
    color: white;
    border-color: #303030;
}

.mobile-menu-button {
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #242424;
    border-radius: 7px;
    background: #101010;
    color: #aaa;
    cursor: pointer;
}

/* CONTENT */

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 78px 55px 80px;
}

.content {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

.eyebrow {
    margin-bottom: 15px;
    color: #555;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

h1 {
    margin: 0 0 19px;
    color: white;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -.04em;
    font-weight: 700;
}

h2 {
    margin-top: 58px;
    margin-bottom: 15px;
    color: #f5f5f5;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.025em;
}

p {
    margin: 0 0 18px;
    color: #949494;
    font-size: 13.5px;
    line-height: 1.85;
}

.lead {
    max-width: 670px;
    color: #a0a0a0;
    font-size: 16px;
    line-height: 1.75;
}

.divider {
    height: 1px;
    margin: 40px 0;
    background: var(--border);
}

/* REQUIREMENTS NOTE */

.note {
    display: flex;
    gap: 13px;
    margin: 26px 0;
    padding: 14px 16px;
    background: #101010;
    border: 1px solid #222;
    border-radius: 7px;
    transition: background .15s ease, border-color .15s ease;
}

.note:hover {
    background: #121212;
    border-color: #292929;
}

.note-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 11px;
}

.note strong {
    display: block;
    margin-bottom: 2px;
    color: #ddd;
    font-size: 11px;
}

.note p {
    margin: 0;
    color: #777;
    font-size: 11px;
}

/* CONFIGURATION STEPS */

.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 22px 0;
}

.step-number {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #171717;
    border: 1px solid #292929;
    border-radius: 7px;
    color: #aaa;
    font-size: 10px;
    font-weight: 600;
}

.step-content {
    min-width: 0;
    padding-top: 2px;
}

.step-content strong {
    display: block;
    margin-bottom: 3px;
    color: #ddd;
    font-size: 12px;
    font-weight: 500;
}

.step-content p {
    margin: 0;
    color: #777;
    font-size: 11px;
    line-height: 1.7;
}

/* CONFIGURATION IMAGE */

.config-image {
    width: 100%;
    margin: 25px 0 30px;
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid #202020;
    border-radius: 8px;
}

.config-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* PAGE NAVIGATION */

.page-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 70px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.page-navigation.single-button {
    grid-template-columns: 1fr;
}

.page-nav {
    min-height: 80px;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    background: #0c0c0c;
    border: 1px solid #1d1d1d;
    border-radius: 8px;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.page-nav:hover {
    background: #121212;
    border-color: #2b2b2b;
    transform: translateY(-1px);
}

.page-nav.next {
    text-align: right;
}

.page-nav-label {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.page-nav.previous .page-nav-label {
    justify-content: flex-start;
    gap: 7px;
}

.page-nav.next .page-nav-label {
    justify-content: flex-end;
    gap: 7px;
}

.page-nav-title {
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
}

.page-nav:hover .page-nav-title {
    color: white;
}

/* CHANGELOG */

.changes {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.changes li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 9px 0;
    color: #888;
    font-size: 12px;
}

.changes i {
    color: #666;
    font-size: 10px;
}

/* MOBILE OVERLAY */

.mobile-overlay {
    display: none;
}

/* LIGHT MODE */

body.light {
    --background: #f8f8f8;
    --sidebar: #ffffff;
    --surface: #ffffff;
    --surface-hover: #f1f1f1;
    --border: #e5e5e5;
    --text: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
}

body.light .header {
    background: rgba(248, 248, 248, .88);
}

body.light .brand {
    color: #111;
}

body.light .brand-logo {
    background: #111;
    color: white;
}

body.light .nav-link {
    color: #777;
}

body.light .nav-link:hover {
    background: #f1f1f1;
    color: #222;
}

body.light .nav-link.active {
    background: #ededed;
    color: #111;
}

body.light .nav-link.active i {
    color: #111;
}

body.light h1,
body.light h2 {
    color: #111;
}

body.light p {
    color: #666;
}

body.light .lead {
    color: #555;
}

body.light .note {
    background: #fff;
    border-color: #ddd;
}

body.light .note:hover {
    background: #f7f7f7;
    border-color: #d5d5d5;
}

body.light .note strong {
    color: #222;
}

body.light .note p {
    color: #777;
}

body.light .step-number {
    background: #f0f0f0;
    border-color: #ddd;
    color: #555;
}

body.light .step-content strong {
    color: #222;
}

body.light .step-content p {
    color: #777;
}

body.light .config-image {
    background: #fff;
    border-color: #ddd;
}

body.light .page-nav {
    background: #fff;
    border-color: #e3e3e3;
}

body.light .page-nav:hover {
    background: #f5f5f5;
    border-color: #d5d5d5;
}

body.light .page-nav-title {
    color: #444;
}

body.light .page-nav:hover .page-nav-title {
    color: #111;
}

body.light .header-button {
    border-color: #ddd;
    color: #666;
}

body.light .header-button:hover {
    background: #eee;
    color: #111;
}

/* TABLET */

@media (max-width: 900px) {

    .content-wrapper {
        max-width: 800px;
        padding-left: 35px;
        padding-right: 35px;
    }

}

/* PHONE */

@media (max-width: 700px) {

    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 15px 0 50px rgba(0, 0, 0, .55);
    }

    .main {
        width: 100%;
        margin-left: 0;
    }

    .header {
        height: 58px;
        padding: 0 14px;
    }

    .mobile-menu-button {
        display: flex;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: block;
        background: rgba(0, 0, 0, .55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .mobile-overlay.visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .breadcrumbs {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    .breadcrumbs span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content-wrapper {
        padding: 45px 20px 60px;
    }

    .content {
        max-width: none;
    }

    h1 {
        font-size: 34px;
        letter-spacing: -.035em;
    }

    h2 {
        margin-top: 48px;
        font-size: 22px;
    }

    .lead {
        font-size: 15px;
    }

    p {
        font-size: 13px;
    }

    .setup-step {
        gap: 11px;
        margin: 20px 0;
    }

    .step-number {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .step-content strong {
        font-size: 12px;
    }

    .step-content p {
        font-size: 11px;
    }

    .config-image {
        margin: 22px 0 27px;
        border-radius: 7px;
    }

    .config-image img {
        width: 100%;
        height: auto;
    }

    .page-navigation {
        grid-template-columns: 1fr;
        margin-top: 55px;
    }

    .page-navigation.single-button {
        grid-template-columns: 1fr;
    }

    .page-nav.next,
    .page-nav.previous {
        text-align: left;
    }

    .page-nav.next .page-nav-label,
    .page-nav.previous .page-nav-label {
        justify-content: flex-start;
    }

}

/* VERY SMALL PHONE */

@media (max-width: 400px) {

    .content-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 31px;
    }

    .breadcrumbs {
        font-size: 10px;
    }

    .page-nav {
        min-height: 76px;
    }

}