:root {
    --bg: #050a12;
    --bg-soft: #09111e;
    --card: #0c1625;
    --card-hover: #101d30;
    --border: rgba(255,255,255,.08);

    --text: #f8fafc;
    --muted: #94a3b8;

    --primary: #2563eb;
    --primary-light: #3b82f6;

    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    text-decoration: none;
}

/* =========================================================
   NAVBAR
========================================================= */

.public-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background:
        rgba(5,10,18,.88);

    backdrop-filter:
        blur(18px);

    border-bottom:
        1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    height: 76px;

    margin: auto;
    padding: 0 25px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.public-brand {
    display: flex;
    align-items: center;

    gap: 11px;

    color: white;

    margin-right: auto;
}

.brand-logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    box-shadow:
        0 10px 30px
        rgba(37,99,235,.25);
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.brand-text strong {
    font-size: 14px;
    letter-spacing: 1.5px;
}

.brand-text span {
    color: #64748b;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 5px;
}

.nav-menu {
    display: flex;
    align-items: center;

    gap: 5px;
}

.nav-menu > a,
.nav-dropdown-button {
    min-height: 42px;

    padding: 0 15px;

    display: flex;
    align-items: center;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: #94a3b8;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.nav-menu > a:hover,
.nav-dropdown-button:hover,
.nav-menu > a.active,
.nav-dropdown-button.active {
    background:
        rgba(255,255,255,.06);

    color: white;
}

.admin-button {
    background: #2563eb !important;
    color: white !important;
}

.admin-button:hover {
    background: #1d4ed8 !important;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    gap: 7px;
}

.nav-dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;

    min-width: 210px;

    padding: 8px;

    visibility: hidden;
    opacity: 0;

    transform:
        translateY(-5px);

    background: #0c1625;

    border:
        1px solid var(--border);

    border-radius: 14px;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.4);

    transition: .2s;
}

.nav-dropdown:hover
.nav-dropdown-menu {
    visibility: visible;
    opacity: 1;

    transform:
        translateY(0);
}

.nav-dropdown-menu a {
    display: block;

    padding: 12px;

    border-radius: 9px;

    color: #cbd5e1;

    font-size: 13px;
}

.nav-dropdown-menu a:hover {
    background:
        rgba(255,255,255,.06);

    color: white;
}

.mobile-toggle {
    display: none;

    width: 43px;
    height: 43px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #0c1625;
    color: white;

    font-size: 22px;
}

/* =========================================================
   PAGE
========================================================= */

.public-container {
    max-width: 1400px;

    margin: auto;

    padding:
        70px 25px;
}

.page-heading {
    margin-bottom: 40px;
}

.eyebrow {
    margin-bottom: 12px;

    color: #3b82f6;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.page-heading h1 {
    margin: 0 0 12px;

    font-size:
        clamp(32px, 5vw, 55px);

    font-weight: 800;

    letter-spacing: -2px;
}

.page-heading p {
    max-width: 650px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}

/* =========================================================
   CARDS
========================================================= */

.public-card {
    background:
        linear-gradient(
            145deg,
            #0c1625,
            #09111e
        );

    border:
        1px solid var(--border);

    border-radius: 20px;
}

.empty-state {
    padding: 80px 20px;

    text-align: center;

    background: #0c1625;

    border:
        1px solid var(--border);

    border-radius: 20px;
}

.empty-state i {
    color: #475569;
    font-size: 45px;
}

.empty-state h3 {
    margin-top: 18px;
    font-size: 18px;
}

.empty-state p {
    color: var(--muted);
}

/* =========================================================
   STATUS
========================================================= */

.status {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 7px 10px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
}

.status::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
}

.status-online {
    background:
        rgba(34,197,94,.1);

    color: #4ade80;
}

.status-online::before {
    background: #22c55e;
}

.status-maintenance {
    background:
        rgba(234,179,8,.1);

    color: #facc15;
}

.status-maintenance::before {
    background: #eab308;
}

.status-offline {
    background:
        rgba(239,68,68,.1);

    color: #f87171;
}

.status-offline::before {
    background: #ef4444;
}

/* =========================================================
   FOOTER
========================================================= */

.public-footer {
    border-top:
        1px solid var(--border);

    background: #03070d;
}

.footer-container {
    max-width: 1400px;

    margin: auto;

    padding:
        55px 25px;

    display: flex;
    justify-content: space-between;

    gap: 30px;
}

.footer-brand {
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-brand i {
    margin-right: 7px;
    color: #3b82f6;
}

.footer-container p {
    max-width: 400px;

    margin-top: 12px;

    color: #64748b;

    font-size: 13px;
}

.footer-links {
    display: flex;
    align-items: flex-start;

    gap: 25px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 12px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding: 20px;

    border-top:
        1px solid var(--border);

    color: #475569;

    text-align: center;

    font-size: 11px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:850px) {

    .nav-container {
        height: 68px;
        padding: 0 15px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;

        top: 68px;
        left: 0;
        right: 0;

        display: none;

        padding: 12px;

        background: #07111f;

        border-bottom:
            1px solid var(--border);
    }

    .nav-menu.show {
        display: block;
    }

    .nav-menu > a,
    .nav-dropdown-button {
        width: 100%;

        margin-bottom: 3px;

        justify-content:
            flex-start;
    }

    .nav-dropdown-menu {
        position: static;

        display: block;

        visibility: visible;
        opacity: 1;

        transform: none;

        margin:
            3px 0 10px 15px;

        border: 0;
        box-shadow: none;

        background: transparent;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}

@media(max-width:576px) {

    .public-container {
        padding:
            45px 15px;
    }

    .page-heading {
        margin-bottom: 28px;
    }

}