@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --background: #171819;
    --panel: rgba(39, 40, 41, 0.88);
    --panel-light: #303132;
    --gold: #d6ad55;
    --gold-light: #f2d58a;
    --text: #f0eee8;
    --muted: #a5a29b;
    --border: rgba(214, 173, 85, 0.19);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', Arial, sans-serif;
    background:
        radial-gradient(ellipse at 70% 0%, rgba(166, 123, 43, 0.10), transparent 38%),
        var(--background);
    color: var(--text);
}

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

.sidebar {
    width: 255px;
    min-width: 255px;
    min-height: 100vh;
    padding: 30px 20px;
    background: #202122;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 8px 5px 38px;
    text-align: center;
}

.sidebar-logo {
    width: 100%;
    max-width: 205px;
    display: block;
    margin: 0 auto 7px;
}

.brand-caption {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2.5px;
}

.nav-heading,
.eyebrow {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-heading {
    margin: 0 0 14px 10px;
}

nav {
    display: grid;
    gap: 7px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 12px;
    border-radius: 8px;
    color: #c5c2bb;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}

.nav-link span {
    color: var(--gold);
    font-size: 17px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light);
    background: rgba(214, 173, 85, 0.10);
}

.sidebar-bottom {
    margin-top: auto;
    padding: 20px 8px 0;
}

.connection-indicator {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 22px;
}

.connection-indicator span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #8cae78;
    box-shadow: 0 0 9px rgba(140, 174, 120, 0.6);
}

.logout-button {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.logout-button:hover {
    color: var(--gold-light);
    border-color: var(--gold);
}

.main-content {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 36px 48px 25px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.topbar h1 {
    margin: 7px 0 5px;
    font-size: 27px;
    font-weight: 600;
}

.topbar .eyebrow {
    margin: 0;
}

.muted {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
}

.avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #171819;
    background: linear-gradient(135deg, #f2d58a, #b78732);
    font-weight: 700;
}

.user-chip strong,
.user-chip span {
    display: block;
}

.user-chip strong {
    font-size: 12px;
}

.user-chip span {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.hero {
    min-height: 275px;
    padding: 35px 30px 30px;
    margin-bottom: 42px;
    border: 1px solid rgba(214, 173, 85, 0.28);
    border-radius: 15px;
    background:
        radial-gradient(ellipse at center, rgba(185, 139, 49, 0.12), transparent 62%),
        linear-gradient(135deg, #292a2a, #1d1e1f 70%);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.20);
    text-align: center;
}

.hero-logo-wrap {
    max-width: 750px;
    margin: 0 auto;
}

.hero-logo {
    width: 100%;
    display: block;
}

.hero-rule {
    width: 90px;
    height: 1px;
    margin: 15px auto 17px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-subtitle {
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 4px;
}

.hero-description {
    color: #b9b6af;
    font-size: 13px;
}

.section-block {
    margin-bottom: 42px;
    scroll-margin-top: 25px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-bottom: 17px;
}

.section-heading .eyebrow {
    margin: 0 0 7px;
}

.section-heading h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.section-note {
    color: var(--muted);
    font-size: 11px;
}

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

.stat-card,
.service-card,
.placeholder-card {
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--panel);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card {
    min-height: 155px;
    padding: 19px;
}

.stat-icon {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 13px;
}

.stat-card p {
    color: #c5c1b8;
    font-size: 12px;
    margin: 0 0 8px;
}

.stat-card strong {
    display: block;
    color: var(--gold-light);
    font-size: 25px;
    font-weight: 600;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 7px;
}

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

.service-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    min-width: 0;
}

.service-symbol {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--gold-light);
    background: rgba(214, 173, 85, 0.08);
    font-family: Georgia, serif;
    font-size: 20px;
}

.service-info {
    min-width: 0;
    flex: 1;
}

.service-info h3 {
    margin: 0 0 5px;
    font-size: 13px;
}

.service-info p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.service-card a {
    color: var(--gold-light);
    font-size: 11px;
    text-decoration: none;
    white-space: nowrap;
}

.service-card a:hover {
    text-decoration: underline;
}

.placeholder-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--gold);
    font-size: 22px;
    background: rgba(214, 173, 85, 0.08);
}

.placeholder-card h3 {
    margin: 0 0 7px;
    font-size: 14px;
}

.placeholder-card p {
    max-width: 850px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 28px 0 12px;
    border-top: 1px solid var(--border);
    color: #77746e;
    font-size: 9px;
    letter-spacing: 2px;
}

.footer-brand {
    color: var(--gold);
}

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

    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        min-height: auto;
        padding: 15px;
    }

    .sidebar-brand {
        padding: 5px 5px 15px;
    }

    .sidebar-logo {
        max-width: 170px;
    }

    .nav-heading,
    .sidebar-bottom {
        display: none;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 9px;
        font-size: 11px;
    }

    .main-content {
        padding: 25px 16px;
    }

    .topbar {
        align-items: flex-start;
    }

    .user-chip {
        padding: 7px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .stat-card {
        padding: 13px;
    }

    .hero {
        min-height: 190px;
        padding: 28px 15px;
    }

    .hero-subtitle {
        letter-spacing: 2px;
    }

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

    .placeholder-card {
        align-items: flex-start;
        padding: 16px;
    }
}
