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

body {
    background: radial-gradient(circle at center, #111827 0%, #05070b 65%);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

.navbar {
    height: 72px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(96, 165, 250, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    color: #60a5fa;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 18px;
}

.nav-links a:hover {
    color: #60a5fa;
}

.hero {
    height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.hero-content {
    max-width: 950px;
}

.status {
    color: #22c55e;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 22px;
}

h1 {
    font-size: 76px;
    line-height: 1;
    margin-bottom: 28px;
}

.subtitle {
    color: #b6c5d8;
    font-size: 25px;
    line-height: 1.45;
    margin-bottom: 48px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.primary-btn,
.secondary-btn {
    padding: 16px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 19px;
}

.primary-btn {
    background: #2563eb;
    color: white;
}

.primary-btn:hover {
    background: #3b82f6;
}

.secondary-btn {
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #cbd5e1;
}

.secondary-btn:hover {
    border-color: #60a5fa;
    color: white;
}

.login-consent {
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 20px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    line-height: 1.55;
}

.login-consent label { display: flex; gap: 12px; text-align: left; }
.login-consent input { margin-top: 5px; accent-color: #3b82f6; }
.login-consent .primary-btn { border: 0; cursor: pointer; margin-top: 18px; }
.login-disclosure-button { display: inline-block; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 0 28px; }
.legal-links a, .legal-back { color: #60a5fa; }
.consent-error { color: #fca5a5; margin-bottom: 12px; }

.legal-body { background: #05070b; }
.legal-document {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0;
    color: #cbd5e1;
    line-height: 1.75;
}
.legal-document h1 { color: #f8fafc; font-size: clamp(42px, 7vw, 68px); margin: 30px 0 8px; }
.legal-document h2 { color: #f8fafc; margin: 30px 0 8px; }
.legal-document p { margin: 14px 0; }
.legal-document .eyebrow { color: #60a5fa; letter-spacing: 3px; font-weight: 700; margin-top: 38px; }
.legal-date { color: #94a3b8; }
.legal-document blockquote { border-left: 3px solid #60a5fa; margin: 28px 0; padding: 12px 22px; color: white; font-size: 22px; }
.legal-footer { border-top: 1px solid rgba(148, 163, 184, 0.18); margin-top: 48px; padding-top: 24px; color: #64748b; font-size: 13px; }
.disclaimer-copy h2 { border-top: 1px solid rgba(148, 163, 184, 0.16); padding-top: 30px; margin-top: 42px; }
.esi-scope { display: inline-block; padding: 8px 12px; border: 1px solid rgba(96, 165, 250, 0.24); border-radius: 8px; color: #93c5fd; background: rgba(37, 99, 235, 0.09); }
.disclaimer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.disclosure-consent { margin-top: 52px; padding: 26px; border: 1px solid rgba(96, 165, 250, 0.32); border-radius: 16px; background: rgba(15, 23, 42, 0.78); }
.disclosure-consent label { display: flex; align-items: flex-start; gap: 12px; color: #e2e8f0; }
.disclosure-consent input[type="checkbox"] { margin-top: 7px; accent-color: #3b82f6; }
.disclosure-consent button { border: 0; cursor: pointer; }
.disclosure-consent button:disabled { cursor: not-allowed; opacity: 0.45; }
.disclosure-hint { color: #94a3b8; font-size: 13px; }

.admin-page { padding: 42px; max-width: 1500px; margin: 0 auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.admin-header h1 { font-size: clamp(38px, 5vw, 64px); margin: 8px 0; }
.admin-header .eyebrow { color: #60a5fa; letter-spacing: 3px; font-weight: 700; }
.admin-intro { color: #94a3b8; max-width: 850px; line-height: 1.6; margin: 10px 0 28px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; }
.admin-table { width: 100%; border-collapse: collapse; background: rgba(15, 23, 42, 0.66); }
.admin-table th, .admin-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
.admin-table th { color: #94a3b8; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.admin-table td { color: #cbd5e1; }
.admin-table td small { display: block; color: #64748b; margin-top: 4px; }
.role-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.role-admin { color: #fcd34d; background: rgba(245, 158, 11, 0.14); }
.role-user { color: #93c5fd; background: rgba(59, 130, 246, 0.14); }
.status-online { color: #4ade80; }
.status-offline { color: #94a3b8; }

.app-body {
    background: #05070b;
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 35%),
        linear-gradient(135deg, #05070b 0%, #0b1120 100%);
}

.sidebar {
    border-right: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(2, 6, 23, 0.78);
    padding: 28px 20px;
}

.brand {
    margin-bottom: 45px;
}

.brand-main {
    font-size: 54px;
    letter-spacing: 10px;
    font-weight: 800;
    color: #dbeafe;
}

.brand-sub {
    color: #94a3b8;
    font-size: 11px;
    letter-spacing: 3px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 10px;
}

.side-nav a:hover,
.side-nav a.active {
    background: rgba(37, 99, 235, 0.25);
    color: white;
}

.side-card {
    margin-top: 70px;
    padding: 18px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-label {
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
}

.side-card span {
    color: #94a3b8;
    font-size: 13px;
}

.dashboard-main {
    padding: 0 28px 32px;
}

.topbar {
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.top-status {
    color: #e2e8f0;
    font-weight: bold;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-right: 8px;
}

.green {
    background: #22c55e;
    box-shadow: 0 0 14px #22c55e;
}

.red {
    background: #ef4444;
    box-shadow: 0 0 14px #ef4444;
}

.welcome {
    margin: 34px 0 24px;
}

.welcome h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.welcome p {
    color: #94a3b8;
    font-size: 18px;
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 20px;
}

.card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.card h2 {
    font-size: 17px;
    color: #60a5fa;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.character-card {
    min-height: 310px;
}

.pilot-row {
    display: flex;
    gap: 28px;
    align-items: center;
}

.avatar-ring {
    width: 140px;
    height: 140px;
    border-radius: 999px;
    border: 4px solid #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 32px rgba(34, 197, 94, 0.35);
}

.avatar {
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e293b, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    font-weight: bold;
    color: #60a5fa;
}

.pilot-info {
    flex: 1;
}

.pilot-info h3 {
    font-size: 25px;
    margin-bottom: 5px;
}

.pilot-info p {
    color: #94a3b8;
    margin-bottom: 22px;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 10px 0;
    gap: 20px;
}

.stat-line span {
    color: #94a3b8;
}

.stat-line strong {
    color: #bfdbfe;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pill {
    font-size: 13px;
    color: #bbf7d0;
}

.map-card {
    position: relative;
}

.fake-map {
    height: 300px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.35), transparent 16%),
        radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.2), transparent 8%),
        #020617;
    position: relative;
    overflow: hidden;
}

.system-dot {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 35px #3b82f6;
    position: absolute;
}

.system-dot.center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.map-label {
    position: absolute;
    left: 54%;
    top: 45%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-weight: bold;
}

.map-line {
    position: absolute;
    height: 1px;
    background: rgba(96, 165, 250, 0.35);
    transform-origin: left center;
}

.map-line.one {
    width: 420px;
    left: 22%;
    top: 52%;
    transform: rotate(22deg);
}

.map-line.two {
    width: 380px;
    left: 35%;
    top: 45%;
    transform: rotate(-28deg);
}

.map-line.three {
    width: 480px;
    left: 20%;
    top: 62%;
    transform: rotate(-8deg);
}

.small-star {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #dbeafe;
    position: absolute;
    box-shadow: 0 0 10px #60a5fa;
}

.s1 { left: 18%; top: 25%; }
.s2 { left: 28%; top: 72%; }
.s3 { left: 76%; top: 31%; }
.s4 { left: 82%; top: 69%; }
.s5 { left: 45%; top: 22%; }

.panel-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    text-decoration: none;
}

.list-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-item span {
    color: #94a3b8;
    font-size: 14px;
}

.green-text {
    color: #22c55e !important;
}

.red-text {
    color: #ef4444 !important;
}

.yellow-text {
    color: #facc15 !important;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-nav span {
    width: 22px;
    text-align: center;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
}

.filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.filter-bar select,
.filter-bar input[type="number"] {
    background: #0f172a;
    color: #e5e7eb;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
}

.filter-bar input[type="number"] {
    width: 110px;
}

.alert-count-badge {
    width: auto !important;
    min-width: 20px;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.nia-alert-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: min(420px, calc(100vw - 48px));
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    border: 1px solid rgba(239, 68, 68, 0.55);
    border-radius: 14px;
    background: rgba(8, 15, 30, 0.97);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .25s ease, transform .25s ease;
}

.nia-alert-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.nia-alert-toast.severity-critical,
.nia-alert-toast.severity-high {
    border-color: #ef4444;
}

.nia-alert-toast.severity-warning {
    border-color: #facc15;
}

.nia-alert-toast-label {
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.nia-alert-toast > span:last-child {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
}
