:root {
    --bg: #071018;
    --surface: rgba(12, 26, 38, 0.86);
    --surface-strong: rgba(18, 38, 54, 0.96);
    --line: rgba(135, 214, 235, 0.18);
    --text: #edf7fb;
    --muted: #91a9b6;
    --cyan: #24d8ff;
    --green: #48f0a4;
    --amber: #ffd166;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 14%, rgba(36, 216, 255, 0.18), transparent 28%),
        radial-gradient(circle at 84% 4%, rgba(72, 240, 164, 0.12), transparent 26%),
        linear-gradient(135deg, #071018 0%, #0b1823 46%, #0f1f2b 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
}

a {
    color: inherit;
}

.app-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.top-nav,
.hero,
.data-panel {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px;
    border-radius: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(36, 216, 255, 0.42);
    border-radius: 12px;
    color: #061018;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    box-shadow: 0 0 32px rgba(36, 216, 255, 0.28);
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.1;
}

.brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.nav-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nav-actions a {
    min-height: 38px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #cfe2ea;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 180ms ease;
}

.nav-actions a:hover,
.nav-actions .is-active {
    border-color: rgba(36, 216, 255, 0.58);
    color: var(--text);
    background: rgba(36, 216, 255, 0.12);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
    align-items: stretch;
    margin-top: 24px;
    padding: 34px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.hero::after {
    position: absolute;
    right: 32px;
    bottom: -30px;
    width: 320px;
    height: 180px;
    content: "";
    border: 1px solid rgba(36, 216, 255, 0.22);
    border-radius: 999px;
    transform: rotate(-12deg);
}

.hero-copy,
.signal-panel {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.96;
}

h2 {
    font-size: 24px;
}

.hero-text {
    max-width: 650px;
    margin: 22px 0 0;
    color: #b9ccd6;
    font-size: 17px;
    line-height: 1.7;
}

.signal-panel {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border: 1px solid rgba(36, 216, 255, 0.24);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(36, 216, 255, 0.16), rgba(72, 240, 164, 0.08)),
        rgba(2, 10, 16, 0.42);
}

.signal-panel strong {
    margin-top: 34px;
    font-size: 56px;
    line-height: 1;
}

.signal-panel small {
    color: var(--muted);
    font-weight: 600;
}

.status-pill,
.panel-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-pill {
    color: #061018;
    background: var(--green);
}

.panel-badge {
    color: var(--amber);
    border: 1px solid rgba(255, 209, 102, 0.35);
    background: rgba(255, 209, 102, 0.08);
}

.data-panel {
    margin-top: 24px;
    padding: 24px;
    border-radius: 24px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0 10px;
    color: var(--text);
}

.modern-table thead th {
    padding: 12px 16px;
    color: #87d6eb;
    border: 0;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0;
}

.modern-table tbody td {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.045);
    color: #dcebf1;
}

.modern-table tbody td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px 0 0 14px;
}

.modern-table tbody td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0 14px 14px 0;
}

.modern-table tbody tr:hover td {
    border-color: rgba(36, 216, 255, 0.28);
    background: rgba(36, 216, 255, 0.08);
}

.row-number {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--cyan);
    background: rgba(36, 216, 255, 0.1);
    font-weight: 800;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #061018;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

code {
    color: #c9f2ff;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
}

.empty-state {
    text-align: center;
}

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

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 14px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    min-height: 40px;
    margin: 0 6px;
    padding: 8px 12px;
    border: 1px solid rgba(36, 216, 255, 0.28);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(36, 216, 255, 0.12);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding-top: 16px;
    color: var(--muted) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 38px;
    margin-left: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    color: #cfe2ea !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: rgba(36, 216, 255, 0.46) !important;
    color: #061018 !important;
    background: linear-gradient(135deg, var(--cyan), var(--green)) !important;
}

@media (max-width: 820px) {
    .app-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 10px;
    }

    .top-nav,
    .hero,
    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-actions {
        justify-content: flex-start;
    }

    .hero {
        display: flex;
        padding: 24px;
    }

    .signal-panel {
        width: 100%;
        min-height: 160px;
    }

    .data-panel {
        padding: 18px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: left;
    }
}
