* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #0d0f14; color: #e2e8f0; }
.layout { display: flex; height: 100vh; overflow: hidden; }

/* ─── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar { width: 230px; background: #0f1117; border-right: 1px solid #1a1d2a; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.sidebar-logo { padding: 20px 20px 18px; border-bottom: 1px solid #1a1d2a; display: flex; align-items: center; gap: 11px; }
.logo-icon { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 12px rgba(99,102,241,0.35); }
.logo-texts { display: flex; flex-direction: column; }
.logo-text { font-size: 15px; font-weight: 800; color: #e2e8f0; letter-spacing: -0.3px; }
.logo-accent { color: #a5b4fc; }
.logo-sub { font-size: 10px; color: #374151; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px; }
.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #6b7a8d; cursor: pointer; text-decoration: none; border: none; background: transparent; width: 100%; text-align: left; font-family: inherit; transition: all 0.15s; position: relative; }
.nav-item:hover { background: rgba(255,255,255,0.04); color: #cbd5e1; }
.nav-item.active { background: rgba(99,102,241,0.14); color: #a5b4fc; font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; background: #6366f1; border-radius: 0 2px 2px 0; }
.nav-logs { display: none; }
.nav-team { display: none; }
.sidebar-footer { padding: 16px; border-top: 1px solid #1e2130; }
.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: #6366f1; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.user-role { font-size: 11px; color: #4a5568; margin-top: 1px; }
.btn-pw { width: 100%; padding: 7px; background: #1a1d27; color: #6b7a8d; border: 1px solid #252836; border-radius: 8px; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; margin-bottom: 6px; }
.btn-pw:hover { background: #252836; color: #e2e8f0; }
.btn-logout { width: 100%; padding: 8px; background: rgba(248,113,113,0.08); color: #f87171; border: 1px solid rgba(248,113,113,0.18); border-radius: 8px; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; }
.btn-logout:hover { background: rgba(248,113,113,0.14); }

/* ─── Main wrapper & topbar ───────────────────────────────────────────────── */
.main-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar { background: #0f1117; border-bottom: 1px solid #1a1d2a; padding: 0 32px; height: 52px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; box-shadow: 0 1px 0 rgba(255,255,255,0.02); }
.topbar-left { display: flex; align-items: center; gap: 8px; }
.topbar-home { display: flex; align-items: center; color: #2d3748; }
.topbar-sep { color: #252836; font-size: 14px; }
.topbar-page { font-size: 14px; font-weight: 700; color: #e2e8f0; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-datebox { display: flex; align-items: center; gap: 8px; background: #1a1d27; border: 1px solid #252836; border-radius: 8px; padding: 6px 14px; }
.topbar-datebox svg { color: #4a5568; flex-shrink: 0; }
.topbar-date { font-size: 12px; font-weight: 600; color: #6b7a8d; white-space: nowrap; }

/* ─── Main ────────────────────────────────────────────────────────────────── */
.main { flex: 1; padding: 28px 32px; overflow-y: auto; }
.page-header { margin-bottom: 28px; }
.page-title { font-size: 22px; font-weight: 700; color: #e2e8f0; }
.page-sub { font-size: 13px; color: #4a5568; margin-top: 4px; }

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card { background: #151820; border: 1px solid #1e2130; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.018); }
.card-body { padding: 24px; }

/* ─── Stats grid ──────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #151820; border: 1px solid #1e2130; border-radius: 12px; padding: 20px 24px; position: relative; overflow: hidden; }
.stat-accent { position: absolute; top: 0; left: 0; width: 3px; height: 100%; border-radius: 12px 0 0 12px; }
.stat-label { font-size: 11px; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.stat-value { font-size: 30px; font-weight: 800; color: #e2e8f0; line-height: 1; }
.stat-sub { font-size: 12px; color: #4a5568; margin-top: 6px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Table ───────────────────────────────────────────────────────────────── */
.table-wrapper { overflow: hidden; border-radius: 12px; border: 1px solid #1e2130; }
table { width: 100%; border-collapse: collapse; background: #151820; }
thead tr { border-bottom: 1px solid #1e2130; }
th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
td { padding: 12px 16px; font-size: 13px; color: #b0bac4; border-bottom: 1px solid #191c26; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.1s; }
tbody tr:hover { background: #1a1d27; cursor: pointer; box-shadow: inset 3px 0 0 rgba(99,102,241,0.45); }
tbody tr.no-hover:hover { background: transparent; cursor: default; box-shadow: none; }

/* ─── Badges ──────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge-active    { background: rgba(52,211,153,0.1);  color: #34d399; border-color: rgba(52,211,153,0.22); }
.badge-banned    { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.22); }
.badge-pl        { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.22); }
.badge-tm        { background: rgba(167,139,250,0.1); color: #a78bfa; border-color: rgba(167,139,250,0.22); }
.badge-admin     { background: rgba(251,146,60,0.1);  color: #fb923c; border-color: rgba(251,146,60,0.22); }
.badge-mod       { background: rgba(96,165,250,0.1);  color: #60a5fa; border-color: rgba(96,165,250,0.22); }
.badge-probe-mod { background: rgba(56,189,248,0.1);  color: #38bdf8; border-color: rgba(56,189,248,0.22); }
.badge-sup       { background: rgba(52,211,153,0.1);  color: #34d399; border-color: rgba(52,211,153,0.22); }
.badge-probe-sup { background: rgba(100,116,139,0.1); color: #94a3b8; border-color: rgba(100,116,139,0.22); }
.badge-action    { background: rgba(96,165,250,0.1);  color: #60a5fa; border-color: rgba(96,165,250,0.22); }
.badge-override  { background: rgba(167,139,250,0.1); color: #a78bfa; border-color: rgba(167,139,250,0.22); font-size: 10px; }
.badge-cop       { background: rgba(96,165,250,0.1);  color: #60a5fa; border-color: rgba(96,165,250,0.22); }
.badge-med       { background: rgba(251,113,133,0.1); color: #fb7185; border-color: rgba(251,113,133,0.22); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn { padding: 8px 16px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.15s; white-space: nowrap; letter-spacing: 0.01em; }
.btn-primary { background: #6366f1; color: #fff; border-color: #6366f1; }
.btn-primary:hover { background: #4f46e5; }
.btn-danger  { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.22); }
.btn-danger:hover  { background: rgba(248,113,113,0.18); }
.btn-success { background: rgba(52,211,153,0.1); color: #34d399; border-color: rgba(52,211,153,0.22); }
.btn-success:hover { background: rgba(52,211,153,0.18); }
.btn-ghost   { background: #1a1d27; color: #6b7a8d; border-color: #252836; }
.btn-ghost:hover   { background: #252836; color: #e2e8f0; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.action-btns { display: flex; gap: 6px; }

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
label { display: block; font-size: 12px; font-weight: 600; color: #6b7a8d; margin-bottom: 6px; }
.input { width: 100%; padding: 9px 12px; border: 1px solid #252836; border-radius: 8px; font-size: 13px; font-family: inherit; color: #e2e8f0; background: #1a1d27; outline: none; transition: border 0.15s, box-shadow 0.15s; }
.input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.18); }
.search-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.search-input { padding: 9px 14px; border: 1px solid #252836; border-radius: 8px; font-size: 13px; font-family: inherit; color: #e2e8f0; background: #1a1d27; outline: none; width: 280px; }
.search-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.18); }
.form-section-divider { font-size: 11px; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: 0.08em; margin: 20px 0 10px; padding-top: 16px; border-top: 1px solid #1e2130; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-group { display: flex; gap: 4px; background: #0d0f14; border-radius: 8px; padding: 3px; }
.toggle-btn { flex: 1; padding: 6px 12px; border-radius: 6px; border: none; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; background: transparent; color: #4a5568; transition: all 0.15s; }
.toggle-btn.active { background: #1e2130; color: #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.toggle-btn:hover:not(.active) { color: #6b7a8d; }

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal { background: #151820; border: 1px solid #1e2130; border-radius: 16px; padding: 28px; width: 380px; box-shadow: 0 24px 64px rgba(0,0,0,0.5); transform: translateY(10px); transition: transform 0.15s; }
.modal-bg.open .modal { transform: translateY(0); }
.modal-wide { width: 500px; }
.modal-perm { width: 560px; max-width: 95vw; max-height: 88vh; overflow-y: auto; }
.modal-title { font-size: 18px; font-weight: 700; color: #e2e8f0; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: #4a5568; margin-bottom: 20px; }

/* ─── Toast ───────────────────────────────────────────────────────────────── */
.toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; z-index: 500; transform: translateY(80px); opacity: 0; transition: all 0.2s; pointer-events: none; font-family: inherit; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #0f2318; color: #34d399; border: 1px solid rgba(52,211,153,0.22); }
.toast.error   { background: #210f0f; color: #f87171; border: 1px solid rgba(248,113,113,0.22); }

/* ─── Perm list ───────────────────────────────────────────────────────────── */
.perm-list { display: flex; flex-direction: column; }
.perm-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #1e2130; font-size: 13px; color: #6b7a8d; }
.perm-item:last-child { border-bottom: none; }
.perm-yes { color: #34d399; font-weight: 700; }
.perm-no  { color: #252836; font-weight: 700; }

/* ─── Recent / Empty ──────────────────────────────────────────────────────── */
.recent-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #1e2130; }
.recent-item:last-child { border-bottom: none; }
.recent-name { font-size: 13px; font-weight: 500; color: #b0bac4; }
.recent-uid  { font-size: 11px; color: #4a5568; font-family: monospace; margin-top: 1px; }
.empty { text-align: center; padding: 48px 20px; color: #4a5568; font-size: 13px; }

/* ─── User grid (Team) ────────────────────────────────────────────────────── */
.user-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.user-card { background: #151820; border: 1px solid #1e2130; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.user-card-top { display: flex; align-items: center; gap: 12px; }
.user-card-avatar { width: 40px; height: 40px; border-radius: 50%; background: #6366f1; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.user-card-name { font-size: 14px; font-weight: 700; color: #e2e8f0; }
.user-card-date { font-size: 11px; color: #4a5568; margin-top: 2px; }
.user-card-sub  { font-size: 12px; margin-top: 2px; }
.user-card-playtime { font-size: 12px; color: #4a5568; }
.player-linked-name { color: #818cf8; font-weight: 600; }
.player-unlinked    { color: #4a5568; }

/* ─── Permission editor ───────────────────────────────────────────────────── */
.perm-editor-hint { font-size: 11px; color: #4a5568; margin-bottom: 8px; }
.perm-editor { border: 1px solid #1e2130; border-radius: 10px; overflow: hidden; }
.perm-edit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #191c26; }
.perm-edit-row:last-child { border-bottom: none; }
.perm-edit-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.perm-edit-name { font-size: 13px; color: #6b7a8d; font-weight: 500; white-space: nowrap; }
.perm-default-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.perm-default-yes { background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.perm-default-no  { background: #1a1d27; color: #2d3445; border: 1px solid #252836; }
.perm-3way { display: flex; gap: 3px; flex-shrink: 0; }
.perm-3btn { padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 6px; border: 1px solid #252836; background: #1a1d27; color: #4a5568; cursor: pointer; font-family: inherit; transition: all 0.1s; white-space: nowrap; }
.perm-3btn:hover:not(:disabled) { border-color: #374151; color: #6b7a8d; }
.perm-3btn:disabled { opacity: 0.3; cursor: not-allowed; }
.perm-3btn.std-active { background: #252836; color: #b0bac4; border-color: #374151; }
.perm-3btn.yes-active { background: rgba(52,211,153,0.1);  color: #34d399; border-color: rgba(52,211,153,0.3); }
.perm-3btn.no-active  { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.3); }

/* ─── My stats ────────────────────────────────────────────────────────────── */
.my-stats-card { margin-bottom: 24px; }
.my-stats-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.my-stats-title { font-size: 14px; font-weight: 700; color: #e2e8f0; margin-bottom: 14px; }
.my-stats-counters { display: flex; align-items: center; gap: 20px; }
.my-stat-block { text-align: left; }
.my-stat-value { font-size: 32px; font-weight: 800; color: #818cf8; line-height: 1; }
.my-stat-label { font-size: 11px; color: #4a5568; margin-top: 4px; }
.my-stat-divider { width: 1px; height: 36px; background: #1e2130; }
.my-stats-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.action-chip { background: #1a1d27; border: 1px solid #252836; border-radius: 8px; padding: 6px 12px; display: flex; align-items: center; gap: 8px; }
.action-chip-count { font-size: 15px; font-weight: 700; color: #e2e8f0; }
.action-chip-label { font-size: 12px; color: #4a5568; }
.my-stats-recent { margin-top: 16px; border-top: 1px solid #1e2130; padding-top: 14px; }
.my-stats-recent-title { font-size: 11px; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

/* ─── Spielerakte ─────────────────────────────────────────────────────────── */
.akte-hero { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.akte-hero-avatar { width: 60px; height: 60px; min-width: 60px; border-radius: 14px; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #fff; flex-shrink: 0; letter-spacing: -1px; }
.akte-hero-body { flex: 1; min-width: 0; }
.akte-hero-name { font-size: 20px; font-weight: 800; color: #e2e8f0; line-height: 1.2; }
.akte-hero-pid  { font-size: 11px; color: #4a5568; font-family: monospace; margin-top: 3px; }
.akte-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.akte-chip { background: #0d0f14; border: 1px solid #1e2130; border-top: 2px solid transparent; border-radius: 8px; padding: 7px 13px; min-width: 80px; }
.akte-chip-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #4a5568; margin-bottom: 3px; }
.akte-chip-value { font-size: 13px; font-weight: 700; color: #e2e8f0; }
.akte-hero-actions { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; flex-shrink: 0; }
.akte-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.akte-section-title { font-size: 11px; font-weight: 700; color: #4a5568; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.akte-status-item { display: flex; align-items: center; gap: 6px; }
.akte-status-label { font-size: 12px; color: #4a5568; font-weight: 500; }
.akte-gear-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.akte-gear-tab { padding: 5px 14px; border-radius: 6px; border: 1px solid #252836; font-size: 12px; font-weight: 600; cursor: pointer; background: #1a1d27; color: #4a5568; font-family: inherit; transition: all 0.1s; }
.akte-gear-tab.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.akte-gear-content pre.gear-display { background: #0d0f14; border: 1px solid #1e2130; border-radius: 8px; padding: 12px; font-size: 11px; font-family: monospace; overflow-x: auto; white-space: pre-wrap; word-break: break-all; max-height: 220px; overflow-y: auto; margin: 0; line-height: 1.6; color: #6b7a8d; }
.akte-license-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.akte-license-label { font-size: 12px; font-weight: 600; color: #4a5568; min-width: 64px; padding-top: 3px; flex-shrink: 0; }
.akte-license-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.akte-house-card { border: 1px solid #1e2130; border-radius: 8px; padding: 14px; margin-bottom: 8px; background: #1a1d27; }
.akte-house-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.akte-house-pos  { font-size: 11px; color: #4a5568; margin-top: 4px; font-family: monospace; }
.vehicle-gear-detail { margin-top: 8px; }

/* ─── Misc ────────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #252836; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #374151; }
.mono { font-family: monospace; font-size: 11px; color: #4a5568; }
.fw600 { font-weight: 600; color: #e2e8f0; }

/* ─── Nav icons ───────────────────────────────────────────────────────────── */
.nav-item svg { flex-shrink: 0; opacity: 0.55; transition: opacity 0.1s; }
.nav-item:hover svg, .nav-item.active svg { opacity: 1; }
.nav-divider { height: 1px; background: #1e2130; margin: 8px 4px; }
.nav-section-label { font-size: 10px; font-weight: 700; color: #2d3748; text-transform: uppercase; letter-spacing: 0.10em; padding: 14px 14px 4px; user-select: none; }
.nav-section-admin { display: none; }

/* ─── Stats grid (responsive) ─────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* ─── Stat bars (Spielerstatus) ───────────────────────────────────────────── */
.stat-bars { display: flex; flex-direction: column; gap: 10px; }
.stat-bar-row { display: flex; align-items: center; gap: 10px; }
.stat-bar-label { font-size: 11px; color: #4a5568; font-weight: 600; width: 40px; flex-shrink: 0; }
.stat-bar-track { flex: 1; height: 6px; background: #1a1d27; border-radius: 3px; overflow: hidden; border: 1px solid #252836; }
.stat-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.stat-bar-hp    { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-bar-food  { background: linear-gradient(90deg, #d97706, #f59e0b); }
.stat-bar-water { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.stat-bar-val { font-size: 11px; color: #6b7a8d; width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ─── Gang styles ─────────────────────────────────────────────────────────── */
.gang-member-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #1e2130; }
.gang-member-pill { font-size: 11px; color: #6b7a8d; background: #1a1d27; border: 1px solid #252836; border-radius: 12px; padding: 2px 10px; }

/* ─── Wanted badge ────────────────────────────────────────────────────────── */
.badge-wanted { background: rgba(251,146,60,0.1); color: #fb923c; border-color: rgba(251,146,60,0.22); }

/* ─── Container section ───────────────────────────────────────────────────── */
.akte-container-card { border: 1px solid #1e2130; border-radius: 8px; padding: 14px; margin-bottom: 8px; background: #1a1d27; }
.akte-container-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }

/* ─── Aliases ─────────────────────────────────────────────────────────────── */
.akte-aliases { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.alias-pill { font-size: 11px; color: #818cf8; background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.18); border-radius: 12px; padding: 2px 10px; }

/* ─── Playtime breakdown ──────────────────────────────────────────────────── */
.playtime-breakdown { font-size: 10px; color: #4a5568; margin-top: 4px; }

/* ─── Quick stats row ─────────────────────────────────────────────────────── */
.quick-stats { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.quick-stat { background: #151820; border: 1px solid #1e2130; border-radius: 10px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.quick-stat-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-stat-label { font-size: 11px; color: #4a5568; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.quick-stat-value { font-size: 20px; font-weight: 800; color: #e2e8f0; line-height: 1; }

/* ─── Inventar Grid ───────────────────────────────────────────────────────── */
.inv-section { margin-bottom: 14px; }
.inv-section:last-child { margin-bottom: 0; }
.inv-section-label { font-size: 10px; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid #1e2130; }
.inv-items { display: flex; flex-wrap: wrap; gap: 4px; }
.inv-item { display: inline-flex; align-items: center; gap: 5px; background: #1a1d27; border: 1px solid #252836; border-radius: 6px; padding: 4px 10px; }
.inv-item-name { font-size: 12px; color: #b0bac4; }
.inv-item-count { font-size: 11px; font-weight: 700; color: #818cf8; background: rgba(99,102,241,0.1); border-radius: 4px; padding: 1px 5px; }
.inv-item.cat-weapons  { border-color: rgba(248,113,113,0.25); }
.inv-item.cat-weapons .inv-item-name { color: #f87171; }
.inv-item.cat-illegal  { border-color: rgba(251,146,60,0.25); }
.inv-item.cat-illegal .inv-item-name { color: #fb923c; }
.inv-item.cat-medical  { border-color: rgba(52,211,153,0.25); }
.inv-item.cat-medical .inv-item-name { color: #34d399; }
.inv-item.cat-mags     { border-color: rgba(96,165,250,0.2); }

/* ─── License Editor ──────────────────────────────────────────────────────── */
.lic-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-height: 36px; }
.lic-badge { padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #252836; background: #1a1d27; color: #4a5568; transition: all .15s; user-select: none; }
.lic-badge:hover { border-color: #374151; color: #6b7a8d; }
.lic-badge.active { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.4); color: #818cf8; }
.lic-badge.active.illegal { background: rgba(251,146,60,0.1); border-color: rgba(251,146,60,0.35); color: #fb923c; }
.lic-custom-row { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #1e2130; }

/* ─── Spawn Grid ─────────────────────────────────────────────────────────── */
.spawn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.spawn-card { border-radius: 10px; border: 1px solid #252836; padding: 14px 16px; cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 12px; }
.spawn-card:hover { border-color: var(--sc, #6366f1); background: color-mix(in srgb, var(--sc, #6366f1) 8%, #151820); }
.spawn-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.spawn-label { font-size: 13px; font-weight: 700; color: #e2e8f0; }
.spawn-sub { font-size: 11px; color: #4a5568; margin-top: 1px; }

/* ─── House card improvements ────────────────────────────────────────────── */
.akte-house-meta { font-size: 11px; color: #4a5568; margin-top: 3px; }
.house-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid #1e2130; }

/* ─── Stat Cards V2 (Logistix-style) ────────────────────────────────────── */
.stats-grid-v2 { grid-template-columns: repeat(3, 1fr); }
.stat-card-v2 { background: #151820; border: 1px solid #1e2130; border-top: 3px solid transparent; border-radius: 12px; padding: 20px 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); transition: transform 0.15s, box-shadow 0.15s; }
.stat-card-v2:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.45); }
.stat-v2-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.stat-v2-title { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-v2-icon { opacity: 0.35; flex-shrink: 0; }
.stat-v2-value { font-size: 30px; font-weight: 800; color: #e2e8f0; line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat-v2-bar { height: 3px; background: rgba(255,255,255,0.05); border-radius: 2px; margin-bottom: 10px; overflow: hidden; }
.stat-v2-bar-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.stat-v2-sub { font-size: 11px; color: #4a5568; }

/* ─── Dashboard welcome ──────────────────────────────────────────────────── */
.dash-welcome { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.dash-welcome-title { font-size: 20px; font-weight: 700; color: #e2e8f0; }
.dash-welcome-sub { font-size: 13px; color: #4a5568; margin-top: 3px; }

/* ─── Card section header ────────────────────────────────────────────────── */
.card-section-title { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }

/* ─── Inventory V2 ───────────────────────────────────────────────────────── */
.inv-empty { color: #4a5568; font-size: 13px; padding: 8px 0; }
.inv-section-v2 { margin-bottom: 16px; }
.inv-section-v2:last-child { margin-bottom: 0; }
.inv-section-header-v2 { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.inv-section-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.inv-section-title-v2 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.inv-section-count-v2 { font-size: 11px; color: #2d3748; margin-left: auto; }
.inv-list { display: flex; flex-direction: column; gap: 2px; }
.inv-list-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 6px; background: #0d0f14; border: 1px solid #1a1d27; gap: 8px; }
.inv-list-row:hover { background: #13151e; }
.inv-list-name { font-size: 12px; color: #b0bac4; flex: 1; min-width: 0; }
.inv-list-count { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; white-space: nowrap; }
