:root {
    --bg: #f5f1e8;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --line: rgba(51, 59, 76, 0.12);
    --ink: #21303d;
    --ink-soft: #5f6c77;
    --brand: #0f766e;
    --brand-dark: #0a4f4a;
    --accent: #c97339;
    --accent-soft: #f3dfcf;
    --danger: #a63446;
    --success: #1f7a45;
    --shadow: 0 28px 70px rgba(33, 48, 61, 0.1);
    --header-surface:
        radial-gradient(circle at top left, rgba(201, 115, 57, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(16, 41, 51, 0.96) 0%, rgba(21, 58, 65, 0.98) 100%);
    --header-ink: #f7f2ea;
    --header-muted: rgba(247, 242, 234, 0.76);
    --header-subtle: rgba(247, 242, 234, 0.68);
    --nav-surface: rgba(255, 255, 255, 0.08);
    --nav-surface-active: rgba(255, 255, 255, 0.16);
    --nav-border: rgba(255, 255, 255, 0.04);
    --nav-border-active: rgba(255, 255, 255, 0.14);
    --user-card-surface: rgba(255, 255, 255, 0.08);
    --ghost-surface: rgba(255, 255, 255, 0.14);
    --table-head: #f8f4ec;
}

body[data-theme="dark"] {
    --bg: #111922;
    --surface: rgba(23, 31, 43, 0.88);
    --surface-strong: #1a2330;
    --line: rgba(164, 182, 203, 0.12);
    --ink: #edf3fb;
    --ink-soft: #9aabbe;
    --brand: #1e8f84;
    --brand-dark: #79d0c7;
    --accent: #f2a65a;
    --accent-soft: #3b2c1c;
    --danger: #f28ca0;
    --success: #7fd39b;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
    --header-surface:
        radial-gradient(circle at top left, rgba(46, 118, 163, 0.22), transparent 24%),
        linear-gradient(135deg, rgba(10, 17, 28, 0.98) 0%, rgba(18, 28, 44, 0.98) 100%);
    --header-ink: #edf3fb;
    --header-muted: rgba(237, 243, 251, 0.76);
    --header-subtle: rgba(237, 243, 251, 0.64);
    --nav-surface: rgba(255, 255, 255, 0.06);
    --nav-surface-active: rgba(255, 255, 255, 0.12);
    --nav-border: rgba(255, 255, 255, 0.06);
    --nav-border-active: rgba(121, 208, 199, 0.22);
    --user-card-surface: rgba(255, 255, 255, 0.06);
    --ghost-surface: rgba(255, 255, 255, 0.1);
    --table-head: #16202d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(201, 115, 57, 0.22), transparent 28%),
        radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.18), transparent 24%),
        var(--bg);
}

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

.shell {
    min-height: 100vh;
    padding: 24px;
}

body:has(.login-stage) .shell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(21, 58, 65, 0.08);
    border-radius: 28px;
    background: var(--header-surface);
    color: var(--header-ink);
    box-shadow: var(--shadow);
}

.brand-block {
    max-width: 420px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(201, 115, 57, 0.95), rgba(15, 118, 110, 0.92));
    color: #fff;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.brand-logo {
    width: 144px;
    height: 144px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.sidebar-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--header-subtle);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand {
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.brand-copy {
    color: var(--header-muted);
    line-height: 1.5;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-top {
    flex: 1;
    justify-content: center;
}

.nav-link,
.ghost-button,
.primary-button,
.secondary-button,
.danger-button,
.sync-button {
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-link {
    display: grid;
    gap: 4px;
    min-width: 180px;
    padding: 14px 16px;
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
}

.nav-link small {
    color: var(--header-subtle);
}

.nav-link.is-active {
    background: var(--nav-surface-active);
    border-color: var(--nav-border-active);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-label {
    font-weight: 600;
}

.nav-link:hover,
.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.sync-button:hover {
    transform: translateY(-1px);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-card {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 18px;
    background: var(--user-card-surface);
}

.ghost-button {
    padding: 12px 16px;
    background: var(--ghost-surface);
    color: var(--header-ink);
    white-space: nowrap;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--nav-border-active);
    background: var(--nav-surface-active);
    color: var(--header-ink);
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
}

.content {
    padding: 0 12px 24px;
    width: 100%;
}

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

.muted {
    color: var(--ink-soft);
    line-height: 1.6;
}

.panel,
.stat-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.panel h2,
.hero h2,
.topbar h1 {
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.topbar h1 {
    margin: 6px 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
}

.topbar-badge {
    min-width: 220px;
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    text-align: right;
}

body[data-theme="dark"] .topbar-badge {
    background: rgba(26, 35, 48, 0.78);
}

.topbar-badge strong {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-dark);
}

.cards,
.split,
.users-layout {
    display: grid;
    gap: 20px;
}

.cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 20px;
}

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

.users-layout {
    grid-template-columns: 1fr;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
    gap: 24px;
    margin-bottom: 20px;
    align-items: center;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.metric-pill {
    padding: 12px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(201, 115, 57, 0.14));
    border: 1px solid rgba(15, 118, 110, 0.1);
    font-size: 0.92rem;
    font-weight: 600;
}

.stat-card span,
.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    font-size: 2.6rem;
}

.stat-card p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

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

.grid-form {
    display: grid;
    gap: 14px;
}

.collapsible-panel {
    padding: 0;
    overflow: hidden;
}

.collapsible-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    list-style: none;
    cursor: pointer;
}

.collapsible-summary::-webkit-details-marker {
    display: none;
}

.summary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-dark);
    font-weight: 600;
    white-space: nowrap;
}

.collapsible-panel[open] .summary-action {
    background: rgba(201, 115, 57, 0.14);
}

.collapsible-panel[open] .summary-action::after {
    content: " geoeffnet";
}

.collapsible-form {
    padding: 0 24px 24px;
    border-top: 1px solid var(--line);
}

label {
    display: grid;
    gap: 8px;
}

input,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font: inherit;
    background: var(--surface-strong);
    color: var(--ink);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.settings-note-stack {
    display: grid;
    gap: 14px;
}

.settings-note {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
}

body[data-theme="dark"] .settings-note {
    background: rgba(26, 35, 48, 0.7);
}

.settings-note strong {
    display: block;
    margin-bottom: 8px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-dark);
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.sync-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f08f36 0%, #d96427 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 14px 28px rgba(217, 100, 39, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sync-button::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.72);
}

.sync-button.is-busy {
    opacity: 0.9;
    pointer-events: none;
}

body[data-theme="dark"] .sync-button {
    background: linear-gradient(135deg, #ff9c43 0%, #ff6f3d 100%);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 180, 120, 0.14);
}

.sync-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 21, 31, 0.42);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.sync-overlay[hidden] {
    display: none !important;
}

.sync-feedback {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 600;
}

.sync-feedback.is-success {
    background: rgba(31, 122, 69, 0.12);
    color: var(--success);
}

.sync-feedback.is-error {
    background: rgba(166, 52, 70, 0.12);
    color: var(--danger);
}

.sync-dialog {
    width: min(560px, 100%);
    padding: 30px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.sync-dialog h2 {
    margin: 8px 0 12px;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.sync-progress {
    position: relative;
    height: 14px;
    margin: 22px 0 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(95, 108, 119, 0.14);
}

.sync-progress-bar {
    position: absolute;
    inset: 0;
    width: 42%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f08f36 0%, #d96427 50%, #1e8f84 100%);
    animation: sync-progress-move 1.5s ease-in-out infinite;
}

.sync-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sync-steps span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 600;
}

body.is-syncing {
    overflow: hidden;
}

@keyframes sync-progress-move {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

body[data-theme="dark"] .secondary-button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(121, 208, 199, 0.18);
    color: var(--brand-dark);
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: rgba(166, 52, 70, 0.12);
    color: var(--danger);
    border: 1px solid rgba(166, 52, 70, 0.16);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.sync-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

body[data-theme="dark"] .sync-option {
    background: rgba(26, 35, 48, 0.72);
}

.sync-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ip-insights {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.insight-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 223, 207, 0.34));
}

body[data-theme="dark"] .insight-card {
    background: linear-gradient(180deg, rgba(33, 45, 61, 0.9), rgba(26, 35, 48, 0.74));
}

.insight-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.insight-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
}

.insight-card p {
    margin: 0;
    color: var(--ink-soft);
}

.filter-form input[type="search"] {
    min-width: 320px;
}

.text-link {
    color: var(--brand-dark);
    font-weight: 600;
}

.inline-code {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-dark);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
}

.user-name-cell {
    display: grid;
    gap: 4px;
}

.user-name-cell span {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.role-badge,
.date-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.role-admin {
    background: rgba(166, 52, 70, 0.14);
    color: var(--danger);
}

.role-editor {
    background: rgba(15, 118, 110, 0.14);
    color: var(--brand-dark);
}

.role-viewer {
    background: rgba(95, 108, 119, 0.14);
    color: var(--ink-soft);
}

.date-pill {
    background: rgba(201, 115, 57, 0.12);
    color: var(--accent);
    font-weight: 600;
    min-width: 108px;
}

.col-date,
.cell-date {
    width: 130px;
    white-space: nowrap;
}

.col-datetime,
.cell-datetime {
    width: 150px;
    min-width: 150px;
    white-space: nowrap;
}

.user-action-cell {
    white-space: nowrap;
}

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

.table-wrap-fixed {
    max-height: calc(100vh - 320px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
}

body[data-theme="dark"] .table-wrap-fixed {
    background: rgba(18, 28, 44, 0.62);
}

.data-table,
table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--table-head);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.sort-link.is-active {
    color: var(--brand-dark);
}

tbody tr:hover {
    background: rgba(15, 118, 110, 0.03);
}

.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.connection-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.connection-wlan {
    background: rgba(46, 118, 163, 0.16);
    color: #2a7fbd;
}

.connection-lan {
    background: rgba(15, 118, 110, 0.16);
    color: var(--brand-dark);
}

.source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.source-dhcp {
    background: rgba(201, 115, 57, 0.16);
    color: var(--accent);
}

.source-static {
    background: rgba(95, 108, 119, 0.16);
    color: var(--ink-soft);
}

.status-active {
    background: rgba(31, 122, 69, 0.14);
    color: var(--success);
}

.status-active-ping {
    background: rgba(31, 122, 69, 0.2);
    color: #16673b;
    box-shadow: inset 0 0 0 1px rgba(31, 122, 69, 0.2);
}

.status-reserved {
    background: rgba(201, 115, 57, 0.16);
    color: var(--accent);
}

.status-offline {
    background: rgba(58, 91, 127, 0.16);
    color: #2f5c86;
}

.status-conflict {
    background: rgba(166, 52, 70, 0.14);
    color: var(--danger);
}

.status-free {
    background: rgba(224, 179, 0, 0.18);
    color: #8a6700;
}

body[data-theme="dark"] .status-offline {
    background: rgba(103, 167, 222, 0.16);
    color: #91caff;
}

body[data-theme="dark"] .status-free {
    background: rgba(224, 179, 0, 0.16);
    color: #ffd76c;
}

body[data-theme="dark"] .status-active-ping {
    background: rgba(66, 186, 110, 0.18);
    color: #9ef0b6;
}

.ip-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(15, 118, 110, 0.35);
}

.ip-link:hover {
    color: var(--accent);
    border-bottom-color: rgba(201, 115, 57, 0.45);
}

.ip-link-reachable {
    color: var(--success);
    border-bottom-color: rgba(31, 122, 69, 0.35);
}

.ip-link-reachable:hover {
    color: #16673b;
    border-bottom-color: rgba(31, 122, 69, 0.5);
}

.detail-grid {
    display: grid;
    gap: 20px;
}

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

.detail-card-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.detail-tile {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
}

body[data-theme="dark"] .detail-tile {
    background: rgba(26, 35, 48, 0.64);
}

.detail-tile span {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-tile strong {
    font-size: 1.05rem;
}

.detail-tile-accent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 223, 207, 0.42));
}

body[data-theme="dark"] .detail-tile-accent {
    background: linear-gradient(180deg, rgba(33, 45, 61, 0.9), rgba(26, 35, 48, 0.72));
}

.detail-alert {
    margin-top: 16px;
}

.history-row-warning td {
    background: rgba(166, 52, 70, 0.06);
}

body[data-theme="dark"] .history-row-warning td {
    background: rgba(166, 52, 70, 0.1);
}

.mini-flag {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(166, 52, 70, 0.12);
    color: var(--danger);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mini-flag-success {
    background: rgba(31, 122, 69, 0.12);
    color: var(--success);
}

.mini-flag-info {
    background: rgba(46, 118, 163, 0.12);
    color: #2a7fbd;
}

.mini-flag-warning {
    background: rgba(201, 115, 57, 0.14);
    color: var(--accent);
}

.mini-flag-danger {
    background: rgba(166, 52, 70, 0.12);
    color: var(--danger);
}

.mini-flag-neutral {
    background: rgba(95, 108, 119, 0.14);
    color: var(--ink-soft);
}

.table-note {
    display: inline-block;
    margin-top: 8px;
    color: var(--ink);
    line-height: 1.45;
}

.table-note-system {
    color: var(--ink-soft);
}

.alert {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 16px;
}

.alert-error {
    background: rgba(166, 52, 70, 0.12);
    color: var(--danger);
}

.alert-success {
    background: rgba(31, 122, 69, 0.12);
    color: var(--success);
}

.auth-panel {
    max-width: 520px;
    width: 100%;
    padding: 34px;
}

.login-stage {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
    gap: 28px;
    align-items: center;
}

.login-showcase {
    padding: 42px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(32, 164, 243, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(16, 41, 51, 0.96) 0%, rgba(31, 51, 73, 0.92) 100%);
    color: #f4f8fb;
    box-shadow: var(--shadow);
}

.login-showcase h2 {
    margin: 8px 0 12px;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.98;
}

.login-showcase .muted {
    color: rgba(244, 248, 251, 0.76);
}

.login-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.login-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.login-points span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.auth-copy h2 {
    margin: 6px 0 10px;
}

.auth-panel .primary-button {
    width: 100%;
    margin-top: 6px;
}

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

.roadmap-grid article {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 223, 207, 0.4));
    border: 1px solid rgba(201, 115, 57, 0.12);
}

.roadmap-grid p {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .cards,
    .split,
    .detail-card-grid,
    .ip-insights {
        grid-template-columns: 1fr;
    }

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

    .app-header,
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .login-stage {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        padding: 28px;
    }

    .topbar-badge {
        min-width: 0;
        text-align: left;
    }

    .nav-top,
    .hero-pills {
        justify-content: flex-start;
    }

    .nav-link {
        min-width: 0;
    }

    .filter-form input[type="search"] {
        min-width: 0;
    }

    .content {
        padding: 0 0 20px;
    }
}
