:root {
    --bg: #07140c;
    --sidebar: #10251a;
    --card: #10281a;
    --card-hover: #163820;
    --border: #285d36;
    --accent: #65f36b;
    --accent2: #3fc94d;
    --text: #ffffff;
    --text-secondary: #d9f1dc;
    --text-muted: #91b49a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            #12351d,
            #07140c
        );
    color: var(--text-secondary);
    font-family: "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   LAYOUT
========================= */

.layout {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-logo {
    margin-bottom: 40px;
}

.sidebar-logo .logo-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(101, 243, 107, .25);
}

.sidebar-logo .logo-subtitle {
    color: #b8d8bd;
    margin-top: 5px;
    font-size: 13px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-nav > a {
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    transition: .2s;
}

.sidebar-nav > a:hover {
    background: #193b24;
}

.sidebar-nav a.active {
    background: var(--accent);
    color: #07140c;
    font-weight: bold;
    pointer-events: none;
}

.nav-category {
    margin-top: 20px;
}

.category-title {
    color: #8aff8e;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-left: 15px;
}

.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-group a {
    color: #9fc3a7;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 8px;
}

.nav-group a:hover {
    background: #193b24;
    color: white;
}

/* =========================
   MOBILE MENU BUTTON
========================= */

.mobile-menu-toggle {
    display: none;
}

/* =========================
   MAIN AREA
========================= */

.main-area {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
}

/* =========================
   TOP HEADER
========================= */

.topbar {
    width: 100%;
    padding: 28px 35px;
    border-bottom: 1px solid var(--border);
    background: rgba(13, 36, 21, .82);
    backdrop-filter: blur(10px);
}

.brand {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-title {
    font-size: 27px;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 13px rgba(101, 243, 107, .24);
}

.logo-subtitle {
    color: #b8d8bd;
    margin-top: 5px;
    font-size: 13px;
}

.creator {
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
}

/* =========================
   CONTENT
========================= */

.content {
    width: min(1180px, calc(100% - 70px));
    margin: 0 auto;
    padding: 45px 0 30px;
}

/* =========================
   PAGE HEADER
========================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            rgba(101, 243, 107, .10),
            rgba(181, 255, 101, .055)
        );
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
}

.page-header h1 {
    color: white;
    font-size: 42px;
    margin-bottom: 6px;
}

.page-subtitle {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-header p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin-top: 10px;
}

/* =========================
   SECTIONS
========================= */

.section {
    margin-top: 40px;
}

.section h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
}

.section h3 {
    color: white;
    margin-bottom: 10px;
}

.section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-description {
    margin-bottom: 18px;
}

/* =========================
   CARDS
========================= */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: .25s;
}

.card:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tool-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 145px;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(20, 90, 35, .18);
}

.card-icon {
    flex: 0 0 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), #2cbf4a);
    color: #09200f;
    font-size: 25px;
    box-shadow: 0 0 24px rgba(101, 243, 107, .14);
}

.tool-card .arrow {
    margin-left: auto;
    color: var(--accent);
    font-size: 25px;
    transition: .2s;
}

.tool-card:hover .arrow {
    transform: translateX(4px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-card {
    max-width: 900px;
}

.about-card p + p {
    margin-top: 12px;
}

/* =========================
   SUPPORT / SOCIAL
========================= */

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.support-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    transition: .25s;
}

.support-card:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.placeholder-image {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px dashed #477251;
    background: #0b1d11;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
}

.support-card span {
    display: block;
    color: white;
    font-weight: 600;
    padding: 12px 4px 4px;
}

/* =========================
   FOOTER
========================= */

footer {
    margin-top: 55px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #07140c;
}

::-webkit-scrollbar-thumb {
    background: #285d36;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d7d4b;
}

/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 900px) {

    .layout {
        display: block;
    }

    /* Collapsed sidebar header */
    .sidebar {
        width: 100%;
        height: 72px;
        position: relative;
        top: auto;
        left: auto;
        padding: 14px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow: visible;
    }

    .sidebar-logo {
        margin: 0;
    }

    .sidebar-logo .logo-title {
        font-size: 22px;
    }

    .sidebar-logo .logo-subtitle {
        display: none;
    }

    /* Hamburger button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        position: absolute;
        top: 14px;
        right: 20px;

        width: 42px;
        height: 42px;

        padding: 0;

        background: #163820;
        color: var(--accent);

        border: 1px solid var(--accent);
        border-radius: 9px;

        font-size: 22px;
        line-height: 1;

        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu-toggle:hover {
        background: var(--card-hover);
        box-shadow: 0 0 15px rgba(101, 243, 107, .2);
        transform: none;
    }

    /* Hidden navigation */
    .sidebar-nav {
        display: none;

        position: absolute;
        top: 71px;
        left: 0;

        width: 100%;

        padding: 15px 20px 20px;

        background: var(--sidebar);
        border-bottom: 1px solid var(--border);

        box-shadow: 0 12px 30px rgba(0, 0, 0, .3);

        z-index: 1000;
    }

    /* Open navigation */
    .sidebar-nav.mobile-open {
        display: flex;
    }

    .nav-category {
        margin-top: 12px;
    }

    .main-area {
        margin-left: 0;
    }

    .content {
        width: min(100% - 30px, 700px);
        padding-top: 25px;
    }

    .topbar {
        padding: 22px 15px;
    }

    .brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 600px) {

    .sidebar {
        height: 68px;
        padding: 12px 15px;
    }

    .sidebar-nav {
        top: 67px;
        padding: 14px 15px 18px;
    }

    .mobile-menu-toggle {
        top: 12px;
        right: 15px;
    }

    .content {
        width: calc(100% - 30px);
        padding-bottom: 20px;
    }

    .page-header {
        padding: 22px;
    }

    .page-header h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .page-header p {
        font-size: 15px;
    }

    .support-grid {
        gap: 10px;
    }
}
