/* =========================================================
   CYBERGUARD
   Premium Cyber Security Operations Interface
   ========================================================= */

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


/* =========================================================
   ROOT
   ========================================================= */

:root {
    --bg: #050608;
    --bg-soft: #080a0d;
    --panel: #0b0e12;
    --panel-light: #101419;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: #f3f5f7;
    --text-soft: #b2b8c0;
    --text-muted: #6d747e;

    --accent: #c9ff3b;
    --accent-soft: rgba(201, 255, 59, 0.12);

    --danger: #ff4d5a;
    --danger-soft: rgba(255, 77, 90, 0.12);

    --warning: #ffb547;
    --warning-soft: rgba(255, 181, 71, 0.12);

    --success: #54e68a;
    --success-soft: rgba(84, 230, 138, 0.12);

    --blue: #61a8ff;
    --blue-soft: rgba(97, 168, 255, 0.12);

    --sidebar-width: 270px;

    --font-main: "Inter", sans-serif;
    --font-display: "Space Grotesk", sans-serif;
    --font-mono: "DM Mono", monospace;
}


/* =========================================================
   RESET
   ========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(201, 255, 59, 0.035),
            transparent 28%
        ),
        var(--bg);

    color: var(--text);

    font-family: var(--font-main);

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}


body::selection {
    background: var(--accent);
    color: #000;
}


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


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


button {
    cursor: pointer;
}


img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell {
    min-height: 100vh;
}


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

.sidebar {
    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: var(--sidebar-width);

    padding: 28px 18px 18px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #080a0d 0%,
            #06080a 100%
        );

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

    z-index: 100;
}


.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    width: fit-content;
}


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

    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 4px;

    padding: 7px;

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

    background: #0d1115;
}


.brand-mark span {
    display: block;

    height: 2px;

    background: var(--accent);

    transform: skewX(-25deg);
}


.brand-mark span:nth-child(1) {
    width: 100%;
}


.brand-mark span:nth-child(2) {
    width: 72%;
}


.brand-mark span:nth-child(3) {
    width: 46%;
}


.brand strong {
    display: block;

    font-family: var(--font-display);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.08em;
}


.brand small {
    display: block;

    margin-top: 2px;

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.12em;
}


.nav-label {
    margin: 46px 12px 12px;

    color: #454c54;

    font-family: var(--font-mono);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 0.18em;
}


.sidebar nav {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.nav-item {
    position: relative;

    display: flex;

    align-items: center;

    gap: 13px;

    min-height: 45px;

    padding: 0 12px;

    border: 1px solid transparent;

    color: var(--text-muted);

    font-size: 12px;

    font-weight: 500;

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


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


.nav-item.active {
    color: var(--text);

    background:
        linear-gradient(
            90deg,
            rgba(201, 255, 59, 0.09),
            rgba(201, 255, 59, 0.015)
        );

    border-color: rgba(201, 255, 59, 0.12);
}


.nav-item.active::before {
    content: "";

    position: absolute;

    left: -1px;

    top: 8px;
    bottom: 8px;

    width: 2px;

    background: var(--accent);
}


.nav-number {
    width: 24px;

    color: #414850;

    font-family: var(--font-mono);

    font-size: 9px;
}


.nav-item.active .nav-number {
    color: var(--accent);
}


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


.operator-card {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px;

    margin-bottom: 8px;

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

    background: #090c0f;
}


.status-dot,
.live-dot {
    position: relative;

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 0 4px rgba(84, 230, 138, 0.07),
        0 0 12px rgba(84, 230, 138, 0.35);
}


.operator-card strong {
    display: block;

    font-family: var(--font-mono);

    font-size: 10px;

    letter-spacing: 0.08em;
}


.operator-card small {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 7px;

    letter-spacing: 0.12em;
}


.logout {
    display: flex;

    align-items: center;

    justify-content: center;

    height: 39px;

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

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.08em;

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


.logout:hover {
    color: var(--text);

    border-color: var(--border-strong);

    background: rgba(255, 255, 255, 0.025);
}


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

.main-content {
    min-height: 100vh;

    margin-left: var(--sidebar-width);

    padding: 38px 42px 60px;

    max-width: 1700px;
}


.public-content {
    min-height: 100vh;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 28px;

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


.section-kicker,
.panel-kicker {
    display: block;

    color: var(--accent);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.16em;
}


.topbar h1 {
    margin-top: 8px;

    font-family: var(--font-display);

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1;

    letter-spacing: -0.045em;

    font-weight: 600;
}


.topbar-right {
    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.1em;

    white-space: nowrap;
}


.time {
    margin-left: 14px;

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


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

.primary-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    min-height: 52px;

    padding: 0 22px;

    background: var(--accent);

    color: #050608;

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

    font-family: var(--font-mono);

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 35px rgba(201, 255, 59, 0.14);
}


.primary-btn span {
    font-size: 16px;
}


.primary-btn.full {
    width: 100%;
}


.primary-btn.compact {
    min-height: 42px;

    padding: 0 17px;

    font-size: 9px;
}


.outline-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding: 0 18px;

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

    color: var(--text-soft);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.08em;

    text-transform: uppercase;

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


.outline-btn:hover {
    color: var(--text);

    border-color: var(--accent);

    background: var(--accent-soft);
}


/* =========================================================
   LANDING PAGE
   ========================================================= */

.landing {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 72% 45%,
            rgba(201, 255, 59, 0.055),
            transparent 34%
        );
}


.landing-grid,
.login-grid {
    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: 0.32;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        radial-gradient(
            circle at center,
            black 20%,
            transparent 75%
        );
}


.public-nav {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 28px 5vw;

    border-bottom: 1px solid rgba(255,255,255,0.06);
}


.hero {
    position: relative;

    z-index: 2;

    max-width: 1100px;

    padding: 15vh 10vw 10vh;
}


.eyebrow {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 28px;

    color: var(--accent);

    font-family: var(--font-mono);

    font-size: 10px;

    letter-spacing: 0.18em;
}


.eyebrow span {
    width: 30px;
    height: 1px;

    background: var(--accent);
}


.hero h1 {
    max-width: 900px;

    font-family: var(--font-display);

    font-size: clamp(54px, 8vw, 112px);

    line-height: 0.91;

    letter-spacing: -0.065em;

    font-weight: 600;
}


.hero h1 em {
    color: var(--accent);

    font-family: Georgia, serif;

    font-weight: 400;

    letter-spacing: -0.07em;
}


.hero p {
    max-width: 700px;

    margin-top: 38px;

    color: var(--text-soft);

    font-size: 15px;

    line-height: 1.8;
}


.hero-actions {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 42px;
}


.hero-note {
    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.12em;
}


.landing-stats {
    position: absolute;

    left: 10vw;
    right: 5vw;
    bottom: 38px;

    display: grid;

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

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


.landing-stats div {
    padding: 20px 22px;

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


.landing-stats div:last-child {
    border-right: 0;
}


.landing-stats strong {
    display: block;

    font-family: var(--font-display);

    font-size: 25px;

    font-weight: 600;
}


.landing-stats span {
    display: block;

    margin-top: 6px;

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.12em;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    overflow: hidden;
}


.login-card {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 470px;

    padding: 45px;

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

    background:
        linear-gradient(
            145deg,
            rgba(16,20,25,0.98),
            rgba(7,9,12,0.98)
        );

    box-shadow:
        0 40px 100px rgba(0,0,0,0.45);
}


.login-brand {
    margin-bottom: 65px;
}


.login-heading span {
    color: var(--accent);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.15em;
}


.login-heading h1 {
    margin-top: 10px;

    font-family: var(--font-display);

    font-size: 36px;

    letter-spacing: -0.04em;
}


.login-heading p {
    margin-top: 12px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.7;
}


.login-card form {
    margin-top: 34px;
}


.login-card label {
    display: block;

    margin: 19px 0 8px;

    color: var(--text-soft);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.login-card input {
    width: 100%;

    height: 52px;

    padding: 0 15px;

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

    outline: none;

    background: #07090c;

    color: var(--text);

    font-family: var(--font-mono);

    font-size: 11px;

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


.login-card input::placeholder {
    color: #414850;
}


.login-card input:focus {
    border-color: rgba(201,255,59,0.45);

    background: #090c10;
}


.login-card form .primary-btn {
    margin-top: 28px;
}


.form-error {
    margin-top: 25px;

    padding: 13px 14px;

    border: 1px solid rgba(255,77,90,0.25);

    background: var(--danger-soft);

    color: #ff9aa2;

    font-family: var(--font-mono);

    font-size: 9px;

    line-height: 1.5;
}


.demo-access {
    margin-top: 22px;

    padding-top: 18px;

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

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.06em;
}


.demo-access strong {
    color: var(--text-soft);

    font-weight: 500;
}


.back-link {
    display: block;

    margin-top: 30px;

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 9px;
}


.back-link:hover {
    color: var(--accent);
}


/* =========================================================
   WELCOME SECTION
   ========================================================= */

.welcome-line {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 34px 0;
}


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

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.15em;
}


.welcome-line h2 {
    margin-top: 8px;

    font-family: var(--font-display);

    font-size: 21px;

    font-weight: 500;

    letter-spacing: -0.025em;
}


.score-ring {
    width: 94px;
    height: 94px;

    flex: 0 0 94px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    border: 1px solid rgba(201,255,59,0.28);

    background:
        radial-gradient(
            circle,
            rgba(201,255,59,0.08),
            transparent 67%
        );

    box-shadow:
        inset 0 0 30px rgba(201,255,59,0.025);
}


.score-ring strong {
    font-family: var(--font-display);

    font-size: 25px;
}


.score-ring span {
    margin-top: 2px;

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 6px;

    line-height: 1.4;

    text-align: center;

    letter-spacing: 0.1em;
}


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

.metric-grid {
    display: grid;

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

    gap: 12px;
}


.metric-card {
    position: relative;

    min-height: 158px;

    padding: 22px;

    overflow: hidden;

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

    background: var(--panel);

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


.metric-card:hover {
    transform: translateY(-2px);

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


.metric-card > span {
    display: block;

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.13em;
}


.metric-card > strong {
    display: block;

    margin-top: 17px;

    font-family: var(--font-display);

    font-size: 42px;

    line-height: 1;

    font-weight: 500;

    letter-spacing: -0.05em;
}


.metric-card small {
    display: block;

    margin-top: 9px;

    color: var(--text-muted);

    font-size: 10px;
}


.metric-line {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: rgba(255,255,255,0.08);
}


.metric-card:not(.critical-card) .metric-line {
    background: var(--accent);

    opacity: 0.65;
}


.critical-card .metric-line {
    background: var(--danger);
}


/* =========================================================
   PANELS
   ========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, 0.8fr);

    gap: 12px;

    margin-top: 12px;
}


.panel {
    min-width: 0;

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

    background: var(--panel);
}


.panel-head {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding: 22px;

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


.panel-head h3 {
    margin-top: 6px;

    font-family: var(--font-display);

    font-size: 17px;

    font-weight: 500;

    letter-spacing: -0.025em;
}


.panel-head a {
    color: var(--accent);

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.08em;
}


.table-status {
    padding: 6px 9px;

    border: 1px solid rgba(84,230,138,0.2);

    color: var(--success);

    background: var(--success-soft);

    font-family: var(--font-mono);

    font-size: 7px;

    letter-spacing: 0.1em;
}


/* =========================================================
   EVENT LIST
   ========================================================= */

.event-list {
    width: 100%;
}


.event-row {
    display: grid;

    grid-template-columns:
        8px
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 14px;

    min-height: 70px;

    padding: 12px 22px;

    border-bottom: 1px solid rgba(255,255,255,0.045);

    transition:
        background 0.2s ease;
}


.event-row:last-child {
    border-bottom: 0;
}


.event-row:hover {
    background: rgba(255,255,255,0.018);
}


.event-severity {
    width: 5px;
    height: 28px;

    background: var(--text-muted);
}


.event-severity.critical {
    background: var(--danger);

    box-shadow: 0 0 12px rgba(255,77,90,0.25);
}


.event-severity.high {
    background: var(--warning);
}


.event-severity.medium {
    background: var(--blue);
}


.event-severity.low {
    background: var(--success);
}


.event-main {
    min-width: 0;
}


.event-main strong {
    display: block;

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.08em;
}


.event-main p {
    margin-top: 5px;

    overflow: hidden;

    color: var(--text-muted);

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.event-source,
.event-row time {
    color: #626a73;

    font-family: var(--font-mono);

    font-size: 8px;

    white-space: nowrap;
}


/* =========================================================
   ASSET VISUAL
   ========================================================= */

.asset-visual {
    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 35px;
}


.asset-number {
    font-family: var(--font-display);

    font-size: 76px;

    line-height: 1;

    letter-spacing: -0.07em;
}


.asset-label {
    margin-top: 8px;

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.15em;
}


.coverage-bar {
    width: 100%;

    height: 3px;

    margin-top: 34px;

    background: #1a1e23;
}


.coverage-bar span {
    display: block;

    width: 94%;

    height: 100%;

    background: var(--accent);
}


.asset-visual p {
    margin-top: 18px;

    max-width: 240px;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-panel {
    margin-top: 25px;
}


.table-wrap {
    width: 100%;

    overflow-x: auto;
}


table {
    width: 100%;

    min-width: 800px;

    border-collapse: collapse;
}


thead {
    background: rgba(255,255,255,0.015);
}


th {
    padding: 14px 20px;

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

    color: #5e6670;

    font-family: var(--font-mono);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 0.1em;

    text-align: left;

    white-space: nowrap;
}


td {
    padding: 18px 20px;

    border-bottom: 1px solid rgba(255,255,255,0.045);

    color: var(--text-soft);

    font-size: 10px;

    vertical-align: middle;
}


tbody tr {
    transition: background 0.2s ease;
}


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


td strong {
    color: var(--text);

    font-weight: 500;
}


.mono {
    font-family: var(--font-mono);

    font-size: 9px;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-flex;

    align-items: center;

    min-width: 70px;

    justify-content: center;

    padding: 6px 9px;

    font-family: var(--font-mono);

    font-size: 7px;

    letter-spacing: 0.08em;
}


.badge.critical {
    border: 1px solid rgba(255,77,90,0.25);

    background: var(--danger-soft);

    color: #ff8b94;
}


.badge.high {
    border: 1px solid rgba(255,181,71,0.22);

    background: var(--warning-soft);

    color: #ffc875;
}


.badge.medium {
    border: 1px solid rgba(97,168,255,0.2);

    background: var(--blue-soft);

    color: #8fc4ff;
}


.badge.low {
    border: 1px solid rgba(84,230,138,0.2);

    background: var(--success-soft);

    color: #7df0a6;
}


.state {
    color: var(--text-soft);

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.08em;
}


/* =========================================================
   MONITORING
   ========================================================= */

.monitor-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, 0.8fr);

    gap: 12px;

    margin-top: 25px;
}


.network-panel {
    min-height: 390px;
}


.graph {
    position: relative;

    height: 300px;

    margin: 20px 22px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.04);

    background: #080b0e;
}


.graph-grid {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;
}


.graph svg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    color: var(--accent);

    filter:
        drop-shadow(
            0 0 7px rgba(201,255,59,0.25)
        );
}


.graph-label {
    position: absolute;

    left: 15px;
    bottom: 13px;

    color: #4e565f;

    font-family: var(--font-mono);

    font-size: 7px;

    letter-spacing: 0.12em;
}


.health-panel {
    min-height: 390px;
}


.health-row {
    position: relative;

    display: grid;

    grid-template-columns:
        1fr
        auto;

    gap: 8px;

    padding: 22px;

    border-bottom: 1px solid rgba(255,255,255,0.045);
}


.health-row span {
    color: var(--text-soft);

    font-size: 10px;
}


.health-row strong {
    color: var(--accent);

    font-family: var(--font-mono);

    font-size: 9px;

    font-weight: 400;
}


.health-row i {
    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 10px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--accent) 0%,
            var(--accent) 85%,
            #20252b 85%
        );

    opacity: 0.65;
}


.metric-grid.lower {
    margin-top: 12px;
}


.metric-grid.lower .metric-card {
    min-height: 135px;
}


.metric-grid.lower .metric-card > strong {
    font-size: 31px;
}


/* =========================================================
   ACCESS MANAGEMENT
   ========================================================= */

.access-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, 0.8fr);

    gap: 12px;

    margin-top: 25px;
}


.access-row {
    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;
}


.policy-panel {
    height: fit-content;
}


.policy {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 22px;

    border-bottom: 1px solid rgba(255,255,255,0.045);
}


.policy span {
    color: var(--text-soft);

    font-size: 10px;
}


.policy strong {
    color: var(--accent);

    font-family: var(--font-mono);

    font-size: 7px;

    font-weight: 400;

    letter-spacing: 0.08em;
}


/* =========================================================
   SETTINGS
   ========================================================= */

.settings-panel {
    max-width: 900px;

    margin-top: 25px;
}


.setting-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 24px 25px;

    border-bottom: 1px solid rgba(255,255,255,0.045);
}


.setting-row strong {
    display: block;

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.08em;
}


.setting-row p {
    margin-top: 6px;

    color: var(--text-muted);

    font-size: 9px;
}


.toggle {
    position: relative;

    width: 43px;
    height: 23px;

    flex: 0 0 43px;

    border: 1px solid #292f35;

    background: #101419;

    border-radius: 20px;
}


.toggle i {
    position: absolute;

    top: 3px;
    left: 3px;

    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: #4a5159;

    transition:
        left 0.2s ease,
        background 0.2s ease;
}


.toggle.on {
    border-color: rgba(201,255,59,0.3);

    background: rgba(201,255,59,0.08);
}


.toggle.on i {
    left: 23px;

    background: var(--accent);

    box-shadow:
        0 0 10px rgba(201,255,59,0.25);
}


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

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}


::-webkit-scrollbar-track {
    background: #06080a;
}


::-webkit-scrollbar-thumb {
    background: #242a30;

    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background: #343b43;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    :root {
        --sidebar-width: 230px;
    }


    .main-content {
        padding: 30px;
    }


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


    .dashboard-grid,
    .monitor-grid,
    .access-grid {
        grid-template-columns: 1fr;
    }


    .hero {
        padding-left: 8vw;
        padding-right: 8vw;
    }


    .landing-stats {
        left: 8vw;
    }

}


@media (max-width: 800px) {

    :root {
        --sidebar-width: 0px;
    }


    .sidebar {
        position: relative;

        width: 100%;

        height: auto;

        min-height: auto;

        padding: 20px;

        border-right: 0;

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


    .sidebar nav {
        display: grid;

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


    .nav-label {
        margin-top: 25px;
    }


    .sidebar-bottom {
        margin-top: 25px;
    }


    .main-content {
        margin-left: 0;

        padding: 25px 18px 45px;
    }


    .topbar {
        align-items: flex-start;

        flex-direction: column;
    }


    .topbar-right {
        white-space: normal;
    }


    .landing {
        min-height: 100vh;
    }


    .public-nav {
        padding: 20px;
    }


    .public-nav .outline-btn {
        display: none;
    }


    .hero {
        padding: 90px 25px 200px;
    }


    .hero h1 {
        font-size: clamp(48px, 15vw, 80px);
    }


    .hero p {
        font-size: 13px;
    }


    .hero-actions {
        align-items: flex-start;

        flex-direction: column;
    }


    .landing-stats {
        left: 25px;
        right: 25px;

        grid-template-columns:
            repeat(2, 1fr);

        bottom: 25px;
    }


    .landing-stats div:nth-child(2) {
        border-right: 0;
    }


    .landing-stats div:nth-child(3),
    .landing-stats div:nth-child(4) {
        border-top: 1px solid var(--border);
    }


    .login-page {
        padding: 18px;
    }


    .login-card {
        padding: 30px 24px;
    }


    .login-brand {
        margin-bottom: 45px;
    }


    .welcome-line {
        align-items: flex-start;
    }


}


@media (max-width: 560px) {

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


    .metric-card {
        min-height: 135px;
    }


    .metric-card > strong {
        font-size: 36px;
    }


    .event-row {
        grid-template-columns:
            6px
            minmax(0, 1fr);

        gap: 10px;
    }


    .event-source,
    .event-row time {
        display: none;
    }


    .panel-head {
        padding: 18px;
    }


    .event-row {
        padding: 14px 18px;
    }


    .graph {
        margin: 15px;

        height: 240px;
    }


    .score-ring {
        width: 76px;
        height: 76px;

        flex-basis: 76px;
    }


    .score-ring strong {
        font-size: 21px;
    }


    .welcome-line h2 {
        font-size: 17px;
    }


    .landing-stats strong {
        font-size: 21px;
    }


    .landing-stats div {
        padding: 14px;
    }


    .landing-stats span {
        font-size: 7px;
    }


    .login-heading h1 {
        font-size: 30px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition: none !important;

        animation: none !important;
    }

}