:root {
    --bg: #08090c;
    --bg-soft: #0d0f14;
    --panel: #111319;
    --panel-hover: #151820;

    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.13);

    --text: #f5f7fa;
    --text-soft: #a5a9b3;
    --text-muted: #6f7480;

    --accent: #6c63ff;
    --accent-hover: #7b73ff;
    --accent-soft: rgba(108, 99, 255, 0.12);

    --green: #38d996;
    --red: #ff5d73;

    --radius: 16px;
    --radius-small: 11px;

    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(108, 99, 255, 0.07),
            transparent 32%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: var(--sidebar-width);

    padding: 28px 18px;

    background: rgba(10, 11, 15, 0.92);
    backdrop-filter: blur(18px);

    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;

    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 10px 28px;
}

.brand-mark {
    width: 36px;
    height: 36px;

    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--accent),
        #8b84ff
    );

    font-size: 18px;
    font-weight: 900;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.sidebar-label {
    padding: 0 12px;
    margin: 14px 0 8px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;

    color: var(--text-muted);
    text-transform: uppercase;
}

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

.nav-item {
    min-height: 44px;

    padding: 0 12px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-radius: 10px;

    color: var(--text-soft);

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
}

.nav-item.active {
    background: var(--accent-soft);
    color: #dcd9ff;
}

.nav-icon {
    width: 20px;
    text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
}

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

.main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    height: 76px;

    padding: 0 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

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

    background: rgba(8, 9, 12, 0.72);
    backdrop-filter: blur(14px);

    position: sticky;
    top: 0;

    z-index: 50;
}

.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-soft);
}

.user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    object-fit: cover;

    background: var(--panel);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.content {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 42px;
}

/* =========================
   TYPOGRAPHY
========================= */

.page-header {
    margin-bottom: 34px;
}

.page-eyebrow {
    margin-bottom: 9px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.page-title {
    margin: 0;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;

    letter-spacing: -1.5px;
}

.page-description {
    max-width: 720px;

    margin: 12px 0 0;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.7;
}

/* =========================
   BUTTONS
========================= */

.btn {
    min-height: 43px;

    padding: 0 17px;

    border: 0;
    border-radius: var(--radius-small);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    cursor: pointer;

    font-weight: 700;
    font-size: 14px;

    transition:
        transform 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: white;

    background: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    color: var(--text);

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.btn-danger {
    background: rgba(255, 93, 115, 0.1);
    color: #ff8394;

    border: 1px solid rgba(255, 93, 115, 0.18);
}

/* =========================
   SERVER GRID
========================= */

.server-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(310px, 1fr));

    gap: 18px;
}

.server-card {
    min-height: 200px;

    padding: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.018),
            transparent
        ),
        var(--panel);

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

    display: flex;
    flex-direction: column;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.server-card:hover {
    transform: translateY(-3px);

    background-color: var(--panel-hover);

    border-color: var(--border-hover);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.server-icon {
    width: 56px;
    height: 56px;

    border-radius: 16px;

    object-fit: cover;

    background: #1b1e26;
}

.server-icon-placeholder {
    width: 56px;
    height: 56px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1b1e26;

    font-size: 20px;
    font-weight: 800;
}

.server-name {
    margin: 0;

    font-size: 17px;
    font-weight: 750;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-status {
    margin-top: 5px;

    font-size: 13px;
}

.status-online {
    color: var(--green);
}

.status-offline {
    color: var(--text-muted);
}

.server-actions {
    margin-top: auto;
    padding-top: 24px;
}

.server-actions .btn {
    width: 100%;
}

/* =========================
   DASHBOARD
========================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(180px, 1fr));

    gap: 16px;

    margin-bottom: 28px;
}

.stat-card {
    padding: 21px;

    background: var(--panel);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-label {
    color: var(--text-muted);

    font-size: 13px;
    font-weight: 600;
}

.stat-value {
    margin-top: 9px;

    font-size: 28px;
    font-weight: 800;

    letter-spacing: -1px;
}

.panel-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(260px, 1fr));

    gap: 16px;
}

.panel-card {
    min-height: 160px;

    padding: 22px;

    background: var(--panel);

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

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

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

    transform: translateY(-2px);
}

.panel-card-title {
    margin: 0 0 8px;

    font-size: 16px;
    font-weight: 750;
}

.panel-card-description {
    margin: 0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   FORMS
========================= */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;

    color: var(--text-soft);
}

.input,
.select,
.textarea {
    width: 100%;

    padding: 12px 14px;

    color: var(--text);

    background: #0d0f14;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    transition: border-color 0.18s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(108, 99, 255, 0.7);
}

/* =========================
   EMPTY
========================= */

.empty-state {
    padding: 60px 24px;

    text-align: center;

    background: var(--panel);

    border: 1px dashed var(--border-hover);
    border-radius: var(--radius);

    color: var(--text-soft);
}

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

@media (max-width: 1050px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 760px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
    }

    .topbar {
        height: 66px;

        padding: 0 18px;
    }

    .content {
        padding: 28px 18px 60px;
    }

    .user-name {
        display: none;
    }

    .stats-grid,
    .panel-grid,
    .server-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 32px;
    }
}

/* STATIX Site Platform v4.9 */
.brand-logo{width:42px;height:42px;flex:0 0 42px;display:block;object-fit:contain;background:transparent;border:0;box-shadow:none;filter:saturate(1.22) brightness(1.11) contrast(1.07) drop-shadow(0 0 7px rgba(125,91,255,.34));transition:transform .18s ease,filter .18s ease}.brand-link:hover .brand-logo{transform:translateY(-1px) scale(1.025);filter:saturate(1.28) brightness(1.15) contrast(1.08) drop-shadow(0 0 9px rgba(125,91,255,.44))}
.server-metrics{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.server-metric{padding:5px 8px;border-radius:8px;background:rgba(255,255,255,.035);border:1px solid var(--border);color:var(--text-muted);font-size:10px}.server-metric b{color:var(--text);font-weight:800}.profile-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.5fr);gap:14px}.profile-main-card,.profile-side{border:1px solid var(--border);border-radius:16px;background:var(--panel);padding:20px}.profile-identity{display:flex;align-items:center;gap:15px;margin-bottom:20px}.profile-identity img,.profile-avatar-empty{width:66px;height:66px;border-radius:50%;background:var(--bg-soft);object-fit:cover}.profile-identity h2{margin:0;font-size:22px}.profile-identity p{margin:4px 0 0;color:var(--text-muted)}.profile-info-row{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-top:1px solid var(--border);font-size:12px}.profile-info-row span{color:var(--text-muted)}.profile-info-row b.good{color:var(--green)}.profile-info-row b.bad{color:var(--red)}.profile-side{display:grid;gap:10px;align-content:start}.profile-admin-badge{padding:12px;border:1px solid rgba(108,99,255,.22);background:var(--accent-soft);border-radius:10px;color:#d6d2ff;font-size:11px;font-weight:800}.user{cursor:pointer}.user:hover .user-name{color:#fff}.guild-stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.guild-stat{padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}.guild-stat span{display:block;color:var(--text-muted);font-size:9px;text-transform:uppercase;letter-spacing:.6px}.guild-stat b{display:block;margin-top:6px;font-size:20px}@media(max-width:760px){.profile-layout{grid-template-columns:1fr}.guild-stat-row{grid-template-columns:repeat(2,1fr)}}
