* {
    box-sizing: border-box;
}

:root {
    --bg: #0d111b;
    --surface: #12141b;
    --surface-2: #171a21;
    --surface-3: #1b1f27;
    --line: rgba(255,255,255,.065);
    --line-2: rgba(255,255,255,.09);
    --text: #eef2ff;
    --muted: #9aa4b5;
    --muted-2: #687384;
    --blue: #2f7dff;
    --blue-soft: rgba(47,125,255,.18);
    --green: #2ecf6b;
    --orange: #e8a429;
    --red: #ef4444;
    --radius: 14px;
    --shadow: 0 20px 50px rgba(0,0,0,.3);
}

/* =========================
   BASIS
========================= */

html,
body {
    margin: 0;
    min-height: 100%;
    background: linear-gradient(180deg, #0b0d14 0%, var(--bg) 120px);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================
   LAYOUT
========================= */

.layout {
    min-height: 100vh;
}

.content {
    width: min(1180px, calc(100vw - 72px));
    margin: 18px auto 60px;
}

.content--centered {
    width: min(560px, calc(100vw - 48px));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin-top: 0;
}

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

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

.dashboard-grid > .stat-card {
    grid-column: span 2;
    min-height: 118px;
    padding: 16px 14px;
    border-radius: 16px;
}

.dashboard-grid .span-7 {
    grid-column: span 7;
}

.detail-shell {
    max-width: 1160px;
}

.settings-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 14px;
}

.mapping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 520px);
    gap: 42px;
    align-items: start;
}

.profile-avatar-wrap {
    padding-top: 12px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.12);
}

.profile-avatar img,
.avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-12 {
    grid-column: span 12;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    height: 56px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(23,26,36,.98), rgba(20,22,30,.98));
    backdrop-filter: blur(10px);
}

.topbar__inner {
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar__left,
.topbar__right,
.topnav {
    display: flex;
    align-items: center;
}

.topnav {
    gap: 10px;
}

.topbar__left,
.topbar__right {
    gap: 8px;
}

.brand {
    margin-right: 18px;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .02em;
    color: #42a6ff;
}

.brand--logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand__logo {
    display: block;
    height: 34px;
    width: auto;
    object-fit: contain;
}

.nav-link,
.nav-button {
    height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #d3d9e4;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}

.nav-link:hover,
.nav-button:hover,
.nav-link.is-active,
.nav-button.is-active {
    background: var(--blue-soft);
    color: #71a5ff;
}

.nav-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .85;
}

.caret {
    font-size: 11px;
    opacity: .8;
}

.avatar-button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
}

.profile-trigger {
    min-height: 42px;
    padding: 6px 8px 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.profile-trigger:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.14);
}

.profile-trigger__text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
    text-align: right;
}

.profile-trigger__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.profile-trigger__subtitle {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

@media (max-width: 640px) {
    .profile-trigger {
        min-width: auto;
        padding-left: 10px;
    }

    .profile-trigger__text {
        display: none;
    }
}

/* =========================
   DROPDOWNS
========================= */

.dropdown,
.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 236px;
    padding: 8px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: rgba(20,23,31,.98);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 250;
}

.dropdown-menu.is-open,
.nav-dropdown[open] > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.dropdown-menu[hidden] {
    display: none !important;
}

.dropdown-menu a,
.dropdown-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover,
.dropdown-menu a.is-active,
.dropdown-item:hover {
    background: var(--surface-3);
}

.beheer-menu {
    min-width: 240px;
}

.profile-dropdown .dropdown-menu {
    left: auto;
    right: 0;
    width: 220px;
}

.profile-menu__title,
.profile-menu__link {
    display: block;
    padding: 10px 12px 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.profile-menu__meta {
    padding: 0 12px 12px;
    color: var(--muted);
    font-size: 13px;
}

.profile-dropdown .dropdown-menu {
    left: auto;
    right: 0;
    width: 220px;
}

.profile-menu__title,
.profile-menu__link {
    display: block;
    padding: 10px 12px 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.profile-menu__meta {
    padding: 0 12px 12px;
    color: var(--muted);
    font-size: 13px;
}

/* =========================
   SEARCH
========================= */

.top-search {
    width: 170px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
}

.top-search input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-size: 12px;
}

.top-search input::placeholder {
    color: var(--muted-2);
}

.search-icon {
    display: inline-flex;
    color: var(--muted-2);
}

.top-search--table {
    width: 180px;
}

.table-search-form {
    margin: 0;
}

.table-search-input {
    width: 240px;
    max-width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    outline: none;
}

.table-search-input::placeholder {
    color: rgba(255,255,255,0.45);
}

.sanctions-search-input {
    width: 100%;
    max-width: 320px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #1a1f2b;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sanctions-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.sanctions-search-input:focus {
    border-color: #3663f6;
    box-shadow: 0 0 0 3px #3663f667;
    background: #202736;
}

/* =========================
   PAGINA-HEADERS
========================= */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0 14px;
}

.breadcrumbs {
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--muted);
}

.page-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    color: #f8fbff;
}

.subtitle {
    color: var(--muted);
    font-size: 13px;
}

.detail-title {
    margin: 0 0 22px;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 900;
    color: #fff;
}

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

.btn {
    height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ff8c8c;
}

.btn-orange {
    background: #ea9e20;
    color: #141414;
}

.btn-green {
    background: #22c55e;
    color: #07140b;
}

.btn-login-discord {
    min-width: 220px;
    height: 44px;
}

.icon-button {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    color: #5aa1ff;
    background: transparent;
}

.icon-button:hover {
    background: rgba(255,255,255,.05);
}

.icon-button--danger {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 91, 91, 0.14);
    color: #ff8a8a;
    cursor: pointer;
}

.copy-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 7px;
    background: rgba(255,255,255,0.04);
    color: #dbe6ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.copy-btn:hover {
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.35);
}

.audit-button {
    background-color: #424957;
    border: 3px solid #424957;
    color: #ffffff;
    border-radius: 12.5px;
}

.audit-button:hover {
    border: 3px solid #3b5180;
}

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

.table-card,
.panel,
.stat-card,
.form-card,
.detail-card,
.login-card,
.modal-card {
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(23,26,35,.98), rgba(20,22,30,.98));
}

.table-card,
.panel,
.stat-card,
.form-card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.panel,
.form-card {
    padding: 14px;
}

.panel h3,
.form-card h3 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
}

.panel.span-7 {
    min-height: 340px;
}

.subcard {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

.subcard h4 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-table-panel {
    margin-top: 22px;
    padding: 0;
    overflow: hidden;
}

.dashboard-table-panel h3 {
    padding: 20px 22px 0;
    margin: 0 0 16px;
}

.detail-card {
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 26px;
}

.detail-card--compact {
    max-width: 560px;
}

.detail-card__header,
.detail-card__title-row,
.detail-table-card .detail-card__header {
    height: 70px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-card__header--table {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.detail-card__header h3,
.detail-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.detail-copy-block {
    padding: 24px;
}

/* =========================
   TABS
========================= */

.inline-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.inline-tab,
.section-tab {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 10px;
    color: #d3d9e4;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,.02);
}

.inline-tab.is-active,
.section-tab.is-active {
    background: rgba(47,125,255,.22);
    color: #6da6ff;
}

.section-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    margin: 0 auto 24px;
}

.section-tabs--narrow {
    margin-left: 340px;
}

.section-tab span {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(47,125,255,.18);
    color: #6ea7ff;
    font-size: 11px;
}

/* =========================
   STATS / DASHBOARD
========================= */

.stat-card {
    min-height: 86px;
    padding: 14px;
}

.stat-label {
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--muted);
}

.stat-value {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 800;
}

.stat-meta {
    font-size: 12px;
    color: var(--muted);
}

.text-green {
    color: var(--green);
}

.text-orange {
    color: var(--orange);
}

.text-red {
    color: var(--red);
}

.text-blue {
    color: #46a9ff;
}

/* =========================
   TABELLEN
========================= */

.table-toolbar {
    min-height: 54px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.table-toolbar--right {
    justify-content: flex-end;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-scroll {
    overflow: auto;
}

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

.data-table thead th {
    height: 34px;
    padding: 0 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #f0f4fb;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table tbody td {
    height: 42px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 12px;
    color: #dbe3ee;
    white-space: nowrap;
}

.data-table tbody tr:hover td {
    background: rgba(255,255,255,.02);
}

.th-check,
.td-check,
.td-actions {
    width: 42px;
}

.td-actions {
    text-align: right;
}

.td-actions form {
    margin: 0;
}

.icon-stack {
    display: inline-flex;
    gap: 4px;
    justify-content: flex-end;
}

.table-footer {
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.per-page {
    height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pagination a,
.pagination span {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    font-size: 12px;
}

.pagination a.is-active {
    color: #fff;
    background: rgba(255,255,255,.08);
}

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

.sort-arrow {
    font-size: 12px;
    opacity: 0.7;
}

.plate-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.empty-state {
    padding: 18px 12px !important;
    text-align: center;
    color: var(--muted) !important;
}

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

.checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    display: inline-block;
    background: rgba(255,255,255,.02);
}

.gender-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    min-width: 32px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(65, 125, 255, .22);
    color: #b7d4ff;
    background: rgba(47,125,255,.12);
}

.gender-pill {
    min-width: 54px;
}

.status-pill.is-no {
    background: rgba(255,255,255,.04);
    color: var(--muted);
    border-color: var(--line);
}

.vehicle-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59,130,246,0.16);
    border: 1px solid rgba(59,130,246,0.35);
    color: #77a9ff;
    font-size: 12px;
    font-weight: 600;
}

.impound-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.impound-badge.is-no {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #c6cfdb;
}

.impound-badge.is-yes {
    background: rgba(59,130,246,0.16);
    border: 1px solid rgba(59,130,246,0.35);
    color: #77a9ff;
}

/* =========================
   CHARTS
========================= */

.donut-wrap {
    display: grid;
    grid-template-columns: 1fr 160px;
    align-items: center;
    gap: 20px;
}

.donut-chart {
    width: 280px;
    height: 280px;
    border-radius: 999px;
    margin: 0 auto;
    position: relative;
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 52px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.donut-legend {
    display: grid;
    gap: 8px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.chart-stage {
    height: 270px;
    border-bottom: 1px solid var(--line);
}

.chart-stage svg {
    width: 100%;
    height: 100%;
}

.chart-labels {
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

/* =========================
   DETAIL / META
========================= */

.identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
    padding: 24px;
}

.meta-label {
    margin-bottom: 10px;
    color: #f0f4fb;
    font-size: 15px;
    font-weight: 800;
}

.meta-label--spaced {
    margin-top: 26px;
}

.meta-value {
    font-size: 15px;
    color: #dfe7f5;
}

.text-link {
    color: #dfe9ff;
    text-decoration: underline;
    text-decoration-color: rgba(223,233,255,.25);
    text-underline-offset: 2px;
}

.text-link:hover {
    color: #6ea7ff;
}

/* =========================
   FORMULIEREN
========================= */

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

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

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

.form-grid--4 {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: #f2f5fa;
}

.input,
.textarea,
.select {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: rgba(255,255,255,.03);
    color: var(--text);
    outline: 0;
}

.textarea {
    min-height: 86px;
    padding: 12px;
    resize: vertical;
}

.inline-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #f3f6fb;
    font-size: 14px;
    font-weight: 800;
}

.field-label span {
    color: #ff7b7b;
}

.field-input,
.field-textarea,
select.field-input {
    width: 100%;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: #fff;
    outline: none;
}

.field-input,
select.field-input {
    height: 44px;
}

.field-textarea {
    height: 84px;
    padding: 12px 14px;
    resize: vertical;
}

select.field-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(255,255,255,0.04);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'><path stroke='rgba(255,255,255,0.55)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 40px;
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
}

select.field-input:focus {
    outline: none;
    border-color: rgba(59,130,246,0.55);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.styled-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1f2b;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.styled-select:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: #1d2330;
}

.styled-select:focus {
    border-color: #f6b436;
    box-shadow: 0 0 0 3px rgba(246, 180, 54, 0.18);
    background: #202736;
}

.radio-row {
    display: flex;
    gap: 24px;
    padding-top: 8px;
}

.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.offense-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}

.discord-webhook-card {
    min-width: 0;
}

.discord-webhook-card .form-field {
    width: 100%;
    min-width: 0;
}

.discord-webhook-card .input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
}

/* =========================
   FILTERS
========================= */

.filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
}

.filter-group--search {
    min-width: 260px;
}

.filter-chip {
    min-width: 210px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
}

.filter-reset {
    margin-left: auto;
    color: #ff6b6b;
    font-weight: 800;
    padding-top: 34px;
}

/* =========================
   AUDIT
========================= */

.audit-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    width: 100%;
    margin-bottom: 18px;
}

.audit-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.audit-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.audit-filter-input,
.audit-filter-select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1f2b;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.audit-filter-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.audit-filter-input:hover,
.audit-filter-select:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: #1d2330;
}

.audit-filter-input:focus,
.audit-filter-select:focus {
    border-color: #3683f6;
    box-shadow: 0 0 0 3px rgba(54, 121, 246, 0.16);
    background: #202736;
}

.audit-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.audit-pagination__info {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.audit-tekst {
    padding: 10px;
    margin: 5px;
}

/* =========================
   MODALS
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(5,7,12,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.modal-card {
    position: relative;
    width: min(900px, 100%);
    border: 1px solid var(--line-2);
    box-shadow: 0 28px 90px rgba(0,0,0,.45);
    padding: 22px;
}

.modal-card h3 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 900;
}

.modal-card--small {
    width: min(860px, 100%);
    max-width: 860px;
}

.modal-card--wide {
    width: min(1080px, 100%);
    max-height: calc(100vh - 50px);
    overflow: auto;
}

.modal-card--readonly {
    max-width: 1000px;
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 34px;
    line-height: 1;
    color: #7d8799;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* =========================
   WIZARD / STEP FLOW
========================= */

.wizard-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.wizard-step {
    min-height: 78px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-right: 1px solid var(--line);
}

.wizard-step:last-child {
    border-right: 0;
}

.wizard-step span {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(88,133,255,.8);
    color: #68a0ff;
    font-weight: 900;
}

.wizard-step.is-done span,
.wizard-step.is-active span {
    background: rgba(47,125,255,.18);
}

.wizard-step strong {
    display: block;
    font-size: 16px;
}

.wizard-step small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.pv-step {
    display: none;
}

.pv-step.is-active {
    display: block;
}

.pv-step-indicator,
[data-step-indicator] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #2a3142;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.pv-step-indicator.is-active,
[data-step-indicator].is-active {
    background: #263b63;
}

.pv-step-indicator.is-done,
[data-step-indicator].is-done {
    background: #3a4358;
    color: #ffffff;
}

/* =========================
   PV OFFENSES / READONLY
========================= */

.pv-offenses {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.pv-offense-card {
    padding: 16px;
    border-radius: 16px;
    background: #161c27;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pv-offense-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pv-offense-actions {
    margin-top: 14px;
}

.pv-offense-card--readonly {
    background: #111722;
}

.readonly-field {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #161c27;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    display: flex;
    align-items: center;
}

.readonly-block {
    min-height: 56px;
    padding: 14px;
    border-radius: 12px;
    background: #161c27;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    line-height: 1.55;
    white-space: pre-wrap;
}

.readonly-empty {
    padding: 14px;
    border-radius: 12px;
    background: #161c27;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
}

/* =========================
   LOGIN / FLASH / EMPTY STATES
========================= */

/* =========================================================
   AUTH LAYOUT
========================================================= */

body.layout-auth {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

body.layout-auth .content,
body.layout-auth .content--centered {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.layout-auth .layout {
    min-height: 100vh;
}

body.layout-auth::before {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.auth-shell,
.login-shell,
.auth-page,
.auth-card-wrapper {
    position: relative;
    z-index: 1;
}

.auth-shell {
    min-height: 100vh;
    width: 100%;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}


/* =========================================================
   AUTH CARDS
========================================================= */

.auth-card {
    width: 500px;
    max-width: 620px;
    border-radius: 22px;
    padding: 42px 36px 34px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.auth-card--glass {
    background: rgba(14, 18, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.auth-card--secondary {
    padding-top: 24px;
    padding-bottom: 24px;
    text-align: center;
}

.login-card {
    width: 100%;
    border: 1px solid var(--line);
    padding: 34px;
    text-align: center;
}


/* =========================================================
   BRANDING
========================================================= */

.login-brand--logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-brand__logo {
    max-width: 220px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.auth-brand__logo {
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.auth-brand__subtitle {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.login-card__brand {
    margin-bottom: 14px;
    font-size: 34px;
    font-weight: 900;
    color: #42a6ff;
}

.login-card__title {
    margin: 0 0 12px;
    font-size: 30px;
    color: #fff;
}

.login-card__text {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 15px;
}


/* =========================================================
   ALERTS / FLASH
========================================================= */

.flash {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(46, 207, 107, 0.2);
    background: rgba(46, 207, 107, 0.08);
    color: #b9f7cb;
    font-size: 13px;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 91, 91, 0.12);
    border: 1px solid rgba(255, 91, 91, 0.24);
    color: #ffffff;
    font-size: 14px;
}


/* =========================================================
   FORM
========================================================= */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.auth-label span {
    color: #ff7d7d;
    margin-left: 2px;
}

.auth-input {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    padding: 0 16px;
    outline: none;
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-input:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.auth-input:focus {
    border-color: #4d8dff;
    box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.03) inset !important;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.03) inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

.auth-input:-webkit-autofill:focus {
    border-color: #4d8dff !important;
    -webkit-box-shadow:
        0 0 0 1000px rgba(255, 255, 255, 0.05) inset,
        0 0 0 3px rgba(77, 141, 255, 0.18) !important;
    box-shadow:
        0 0 0 1000px rgba(255, 255, 255, 0.05) inset,
        0 0 0 3px rgba(77, 141, 255, 0.18) !important;
}

/* =========================================================
   PASSWORD FIELD
========================================================= */

.auth-password-wrap {
    position: relative;
}

.auth-input--password {
    padding-right: 72px;
}

.auth-password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 62px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 11px 11px 0;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.62);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.auth-password-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}


/* =========================================================
   CHECKBOX
========================================================= */

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-checkbox__box {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.auth-checkbox__box::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #4d8dff;
    transform: scale(0);
    transition: transform 0.16s ease;
}

.auth-checkbox input:checked + .auth-checkbox__box {
    border-color: #4d8dff;
    box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.14);
}

.auth-checkbox input:checked + .auth-checkbox__box::after {
    transform: scale(1);
}


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

.auth-submit,
.auth-discord-btn {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 12px;
    background: #4d8dff;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-submit:hover,
.auth-discord-btn:hover {
    background: #5a97ff;
    box-shadow: 0 12px 28px rgba(77, 141, 255, 0.28);
}

.auth-submit:active,
.auth-discord-btn:active {
    transform: translateY(1px);
}


/* =========================================================
   SECONDARY CONTENT
========================================================= */

.auth-secondary__title {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.auth-secondary__text {
    margin-bottom: 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
}

.auth-secondary__muted {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.58);
}


/* =========================================================
   EMPTY STATES
========================================================= */

.empty-login-state {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    line-height: 1.6;
}

.empty-panel {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: var(--muted);
}

.empty-panel__icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #8f99ab;
    font-size: 32px;
}

.empty-panel__title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.empty-panel__text {
    font-size: 14px;
}


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

@media (max-width: 640px) {
    .auth-card {
        max-width: 100%;
        padding: 28px 18px 24px;
        border-radius: 18px;
    }

    .auth-brand__logo {
        max-width: 180px;
    }

    .auth-brand__subtitle {
        font-size: 16px;
    }

    .auth-password-toggle {
        width: 56px;
    }
}

/* =========================
   UTILITIES
========================= */

.discord-webhook-card .form-field,
.filter-group,
.audit-filter-item {
    min-width: 0;
}

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

@media (max-width: 1100px) {
    .content {
        width: calc(100vw - 24px);
    }

    .settings-layout,
    .profile-grid,
    .donut-wrap,
    .mapping-grid {
        grid-template-columns: 1fr;
    }

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

    .span-4,
    .span-6,
    .span-12 {
        grid-column: auto;
    }

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

    .dashboard-grid > .stat-card,
    .dashboard-grid .span-7 {
        grid-column: span 1;
    }

    .identity-grid,
    .form-grid--2,
    .form-grid--4 {
        grid-template-columns: 1fr;
    }

    .section-tabs,
    .section-tabs--narrow {
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
    }

    .detail-card--compact {
        max-width: none;
    }

    .audit-filter-bar {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 640px) {
    .audit-filter-bar {
        grid-template-columns: 1fr;
    }
}