:root {
    --bg: #07111a;
    --bg-2: #0d1b26;
    --surface: rgba(11, 20, 29, 0.88);
    --surface-2: rgba(17, 29, 40, 0.92);
    --surface-3: rgba(255, 255, 255, 0.03);
    --line: rgba(214, 230, 255, 0.09);
    --line-strong: rgba(214, 230, 255, 0.16);
    --text: #eef5fb;
    --muted: #91a5b8;
    --accent: #c6ff5a;
    --accent-2: #63d8b4;
    --warn: #ffb04d;
    --danger: #ff7f73;
    --ok: #8bf2d1;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.36);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(198, 255, 90, 0.12), transparent 26%),
        radial-gradient(circle at 100% 12%, rgba(99, 216, 180, 0.14), transparent 22%),
        radial-gradient(circle at 100% 100%, rgba(255, 176, 77, 0.12), transparent 26%),
        linear-gradient(135deg, #061018 0%, #0d1822 42%, #132230 100%);
}

body,
button,
input {
    font: inherit;
}

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

code {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.88rem;
}

.backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.kicker,
.section-tag {
    margin: 0;
    color: var(--accent);
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.login-stage {
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: 1.2fr 440px;
    gap: 28px;
    align-items: stretch;
}

.login-copy {
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(198, 255, 90, 0.09), transparent 30%),
        linear-gradient(180deg, rgba(9, 17, 25, 0.82), rgba(9, 17, 25, 0.52));
    box-shadow: var(--shadow-lg);
}

.login-copy h1 {
    margin: 16px 0 18px;
    max-width: 11ch;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.lead {
    max-width: 46rem;
    color: #c6d5e3;
    font-size: 1.08rem;
    line-height: 1.6;
}

.login-specs {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.login-specs div {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.login-specs span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.85rem;
}

.login-specs strong {
    display: block;
    line-height: 1.5;
}

.login-card {
    padding: 30px;
    display: grid;
    align-content: center;
}

.card-head h2,
.topbar h2,
.section-header h2,
.brand-block h1,
.hero-card h3,
.stat-card h3,
.service-card h3 {
    margin: 10px 0 0;
    letter-spacing: -0.04em;
}

.card-head h2,
.topbar h2,
.brand-block h1,
.hero-card h3,
.stat-card h3 {
    font-family: "IBM Plex Mono", monospace;
}

.stack-lg {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: var(--muted);
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 15px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    outline: none;
}

input:focus {
    border-color: rgba(198, 255, 90, 0.5);
    box-shadow: 0 0 0 4px rgba(198, 255, 90, 0.08);
}

button {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 16px;
    transition: transform 140ms ease, filter 140ms ease, background 140ms ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.primary {
    color: #08120f;
    background: linear-gradient(135deg, var(--accent) 0%, #f3ff92 100%);
    font-weight: 700;
}

.ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.alert.success {
    background: rgba(139, 242, 209, 0.12);
    color: #b8ffe7;
}

.alert.error {
    background: rgba(255, 127, 115, 0.12);
    color: #ffd4ce;
}

.app-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px;
    display: grid;
    align-content: start;
    gap: 22px;
    border-right: 1px solid var(--line);
    background: rgba(6, 15, 22, 0.72);
    backdrop-filter: blur(24px);
}

.brand-block {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.brand-block h1 {
    font-size: 1.7rem;
}

.nav-block {
    display: grid;
    gap: 10px;
}

.nav-block a,
.logout-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
    border: 1px solid transparent;
}

.nav-block a:hover,
.logout-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
}

.sidebar-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.sidebar-card dl {
    margin: 14px 0 0;
    display: grid;
    gap: 14px;
}

.sidebar-card div {
    display: grid;
    gap: 4px;
}

.sidebar-card dt {
    color: var(--muted);
    font-size: 0.84rem;
}

.sidebar-card dd {
    margin: 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.92rem;
    line-height: 1.5;
}

.dashboard {
    padding: 28px;
    display: grid;
    gap: 22px;
}

.topbar {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.topbar-meta div {
    min-width: 130px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.topbar-meta span,
.hero-metrics span,
.service-meta span,
.mini-list span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.topbar-meta strong,
.hero-metrics strong,
.service-meta strong {
    display: block;
    margin-top: 8px;
    font-family: "IBM Plex Mono", monospace;
}

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

.hero-card,
.stat-card,
.table-card,
.service-card {
    padding: 22px;
}

.hero-card-primary {
    background:
        linear-gradient(145deg, rgba(198, 255, 90, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(10, 22, 31, 0.98), rgba(15, 25, 34, 0.86));
}

.hero-head,
.section-header,
.service-top,
.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-metrics {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-metrics div,
.mini-list {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
}

.stat-card h3 {
    margin-top: 12px;
    font-size: 1.75rem;
}

.meter {
    margin-top: 18px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.mini-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.section-stack {
    display: grid;
    gap: 16px;
}

.section-header p:last-child {
    max-width: 44rem;
    text-align: right;
}

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

.service-card {
    display: grid;
    gap: 18px;
}

.service-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-3);
    border: 1px solid var(--line);
}

.action-row {
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid transparent;
    text-transform: capitalize;
}

.pill-ok {
    color: #bbffe9;
    background: rgba(99, 216, 180, 0.14);
    border-color: rgba(99, 216, 180, 0.28);
}

.pill-warm {
    color: #ffe4bc;
    background: rgba(255, 176, 77, 0.14);
    border-color: rgba(255, 176, 77, 0.28);
}

.pill-bad {
    color: #ffd4ce;
    background: rgba(255, 127, 115, 0.14);
    border-color: rgba(255, 127, 115, 0.28);
}

.pill-neutral {
    color: #d1dceb;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 1220px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-card {
        grid-column: 1 / -1;
    }

    .topbar {
        display: grid;
    }

    .section-header {
        display: grid;
    }

    .section-header p:last-child {
        text-align: left;
    }
}

@media (max-width: 980px) {
    .login-stage,
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .topbar-meta,
    .service-grid,
    .login-specs,
    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .login-shell,
    .dashboard,
    .sidebar {
        padding: 18px;
    }

    .login-copy,
    .panel,
    .brand-block,
    .sidebar-card {
        border-radius: 22px;
    }

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

    .action-row,
    .service-top,
    .hero-head {
        display: grid;
    }
}
