#dashboard-view { min-height: 100vh; background: #050505; }
#dashboard-view.hidden { display: none; }

.dash-layout { display: flex; min-height: 100vh; }

.dash-sidebar {
    width: 268px; flex-shrink: 0; background: #070707;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow: hidden;
}

#dash-sidebar-nav {
    flex: 1; min-height: 0; overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#dash-sidebar-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }

.dash-sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dash-sidebar-brand img { width: 36px; height: 36px; object-fit: contain; }
.dash-brand-text { display: flex; flex-direction: column; gap: 2px; }
.dash-brand-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.dash-brand-sub { font-size: 0.68rem; color: #6b7280; }

.dash-nav-section { padding: 10px 8px; }
.dash-nav-label {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: #52525b; padding: 8px 12px 6px;
}

.dash-nav-item {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px; color: #9ca3af;
    font-size: 0.84rem; font-weight: 500; cursor: pointer;
    transition: all 0.2s; border: 1px solid transparent;
    background: transparent; text-align: left; text-decoration: none;
}
.dash-nav-item:hover { color: #fff; background: rgba(255,255,255,0.04); }
.dash-nav-item.active {
    color: #fff; background: rgba(236,72,153,0.1);
    border-color: rgba(236,72,153,0.35);
    box-shadow: inset 3px 0 0 #ec4899;
}
.dash-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.75; }
.dash-nav-item.active svg { opacity: 1; color: #ec4899; }

.dash-nav-badge {
    margin-left: auto; font-size: 0.58rem; font-weight: 700;
    padding: 2px 7px; border-radius: 9999px;
    background: rgba(236,72,153,0.15); color: #f9a8d4;
    border: 1px solid rgba(236,72,153,0.3);
}

.dash-server-group { margin-top: 2px; }
.dash-server-group.selected > .dash-server-toggle { background: rgba(236,72,153,0.08); border: 1px solid rgba(236,72,153,0.2); }
.dash-server-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5);
}
.dash-server-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.dash-server-count { font-size: 0.68rem; color: #6b7280; font-weight: 500; margin-right: 4px; }

.dash-server-picker {
    margin-bottom: 16px; padding: 14px 16px; border-radius: 12px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
}
.dash-server-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dash-server-picker-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; }
.dash-server-picker-count { font-size: 0.68rem; color: #ec4899; font-weight: 600; }
.dash-server-picker-list { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-server-pick {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
    border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); width: auto;
    background: rgba(0,0,0,0.25); color: #d1d5db; font-size: 0.8rem; font-weight: 500; cursor: pointer;
    transition: all 0.2s;
}
.dash-server-pick:hover { border-color: rgba(236,72,153,0.3); color: #fff; }
.dash-server-pick.active {
    border-color: rgba(236,72,153,0.45); background: rgba(236,72,153,0.12); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(236,72,153,0.2);
}
.dash-server-pick-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-server-pick-meta { font-size: 0.65rem; color: #6b7280; }
.dash-inline-config { margin: 8px 0 14px; padding: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dash-inline-config .dash-config-textarea { min-height: 64px; margin-top: 4px; }
.dash-server-toggle {
    width: 100%; display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: 10px; background: transparent;
    border: none; color: #e5e7eb; font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.dash-server-toggle:hover { background: rgba(255,255,255,0.04); }
.dash-server-toggle svg:not(.chevron) { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.dash-server-toggle svg.chevron { width: 14px; height: 14px; margin-left: auto; transition: transform 0.2s; color: #6b7280; flex-shrink: 0; }
.dash-server-group.open .dash-server-toggle svg.chevron { transform: rotate(180deg); }
.dash-server-submenu { display: none; padding-left: 6px; margin-top: 2px; }
.dash-server-group.open .dash-server-submenu { display: block; }
.dash-server-submenu .dash-nav-item { font-size: 0.8rem; padding: 7px 12px 7px 26px; }

.dash-sidebar-footer {
    flex-shrink: 0; margin-top: auto; padding: 10px 8px 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.dash-user-wrap { position: relative; margin-top: 8px; }
.dash-user-card {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 12px; background: rgba(236,72,153,0.06);
    border: 1px solid rgba(236,72,153,0.15); cursor: pointer; transition: all 0.2s;
}
.dash-user-card:hover { border-color: rgba(236,72,153,0.35); }
.dash-user-card img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(236,72,153,0.4); }
.dash-user-name { font-size: 0.8rem; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user-id { font-size: 0.65rem; color: #6b7280; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.dash-user-chevron { margin-left: auto; color: #6b7280; width: 14px; height: 14px; flex-shrink: 0; }

/* Icon sizing – prevent SVG stretch in flex layouts */
#dashboard-view svg:not(.dash-map-full) {
    width: 16px; height: 16px; flex-shrink: 0;
    max-width: 18px; max-height: 18px;
}
.dash-feature-card > svg { width: 28px !important; height: 28px !important; max-width: 28px !important; max-height: 28px !important; }
.dash-empty > svg { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; opacity: 0.35; }
.dash-card > div > svg { width: 18px !important; height: 18px !important; }

.dash-user-menu {
    position: absolute; bottom: calc(100% + 8px); left: 0; right: 0;
    background: #111; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 6px; display: none; z-index: 50;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.dash-user-menu.open { display: block; }
.dash-user-menu-head { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 4px; }
.dash-menu-item {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px; border: none; background: transparent;
    color: #d1d5db; font-size: 0.82rem; cursor: pointer; text-align: left;
}
.dash-menu-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dash-menu-item.danger { color: #f87171; }
.dash-menu-item svg { width: 16px; height: 16px; opacity: 0.7; }

.dash-main { flex: 1; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; }

.dash-topbar {
    padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 10;
}
.dash-breadcrumb { font-size: 0.84rem; color: #6b7280; }
.dash-breadcrumb span { color: #fff; font-weight: 600; }
.dash-topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dash-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 9999px; font-size: 0.72rem; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
}
.dash-pill.online { background: rgba(34,197,94,0.1); color: #86efac; border-color: rgba(34,197,94,0.25); }
.dash-pill.demo { background: rgba(249,115,22,0.1); color: #fdba74; border-color: rgba(249,115,22,0.25); }
.dash-pill.version { background: rgba(255,255,255,0.04); color: #9ca3af; }
.dash-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }

.dash-time-filters {
    display: flex; gap: 3px; background: rgba(255,255,255,0.03);
    padding: 3px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.06);
}
.dash-time-btn {
    padding: 5px 12px; border-radius: 7px; border: none; background: transparent;
    color: #9ca3af; font-size: 0.74rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.dash-time-btn.active, .dash-time-btn:hover { background: rgba(236,72,153,0.15); color: #fff; }

.btn-logout {
    padding: 6px 14px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.12);
    background: transparent; color: #9ca3af; font-size: 0.78rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-logout:hover { color: #fff; border-color: rgba(236,72,153,0.45); }
.btn-logout svg { width: 14px; height: 14px; }

.dash-body { padding: 22px 24px 36px; flex: 1; }
.dash-page { animation: dashFade 0.25s ease; }
@keyframes dashFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dash-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-page-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.dash-page-sub { font-size: 0.82rem; color: #6b7280; margin-top: 4px; }

.dash-banner {
    height: 110px; border-radius: 14px; margin-bottom: 20px;
    background: radial-gradient(ellipse at 15% 50%, rgba(236,72,153,0.3), transparent 55%),
                radial-gradient(ellipse at 85% 20%, rgba(168,85,247,0.2), transparent 50%),
                linear-gradient(135deg, #0c0c0c, #140810);
    border: 1px solid rgba(236,72,153,0.12);
}

.dash-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 14px; }
.dash-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.dash-card {
    padding: 18px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02);
}
.dash-card:hover { border-color: rgba(236,72,153,0.2); }

.dash-stat-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; margin-bottom: 6px; }
.dash-stat-value { font-size: 1.45rem; font-weight: 700; }
.dash-stat-value.sm { font-size: 1.05rem; }
.dash-stat-sub { font-size: 0.72rem; color: #6b7280; margin-top: 4px; }
.dash-stat-value.cyan { color: #67e8f9; }
.dash-stat-value.purple { color: #c084fc; }
.dash-stat-value.red { color: #f87171; }
.dash-stat-value.green { color: #4ade80; }

.dash-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 10px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; border: 1px solid transparent;
}
.dash-btn svg { width: 16px; height: 16px; }
.dash-btn-primary { background: #ec4899; color: #fff; border-color: #ec4899; }
.dash-btn-primary:hover { background: #db2777; }
.dash-btn-secondary { background: rgba(255,255,255,0.05); color: #e5e7eb; border-color: rgba(255,255,255,0.1); }
.dash-btn-secondary:hover { border-color: rgba(236,72,153,0.35); }
.dash-btn-danger { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.35); }
.dash-btn-danger:hover { background: rgba(239,68,68,0.25); }
.dash-btn-sm { padding: 5px 12px; font-size: 0.72rem; border-radius: 8px; }

.dash-icon-btn {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
    color: #9ca3af; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.dash-icon-btn:hover { color: #ec4899; border-color: rgba(236,72,153,0.4); }
.dash-icon-btn svg { width: 14px; height: 14px; }

.dash-search {
    width: 100%; padding: 11px 14px 11px 40px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
    color: #fff; font-size: 0.84rem; outline: none;
}
.dash-search:focus { border-color: rgba(236,72,153,0.4); }
.dash-search-wrap { position: relative; }
.dash-search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #6b7280; }

.dash-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.07); }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.dash-table th {
    text-align: left; padding: 12px 14px; color: #6b7280; font-weight: 600;
    background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}
.dash-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.dash-table tr:hover td { background: rgba(236,72,153,0.03); }

.dash-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 9999px; font-size: 0.65rem; font-weight: 700;
}
.dash-tag.pink { background: rgba(236,72,153,0.15); color: #f9a8d4; border: 1px solid rgba(236,72,153,0.3); }
.dash-tag.red { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.dash-tag.green { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.dash-tag.orange { background: rgba(249,115,22,0.12); color: #fdba74; border: 1px solid rgba(249,115,22,0.25); }
.dash-tag.blue { background: rgba(59,130,246,0.12); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.dash-tag.gray { background: rgba(255,255,255,0.05); color: #9ca3af; border: 1px solid rgba(255,255,255,0.08); }

.dash-player-row { display: flex; align-items: center; gap: 12px; }
.dash-player-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(168,85,247,0.3));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.dash-threat { font-weight: 700; }
.dash-threat.low { color: #4ade80; }
.dash-threat.mid { color: #fbbf24; }
.dash-threat.high { color: #f87171; }

/* Players grid */
.dash-players-head { margin-bottom: 16px; }
.dash-players-title-row { display: flex; align-items: center; gap: 10px; }
.dash-players-count-badge {
    font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 9999px;
    background: rgba(236,72,153,0.15); color: #f9a8d4; border: 1px solid rgba(236,72,153,0.35);
}
.dash-players-toolbar { margin-bottom: 16px; }
.dash-players-search { margin-bottom: 12px; }
.dash-players-filters {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.dash-check-filter {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; color: #9ca3af; cursor: pointer; user-select: none;
}
.dash-check-filter input { accent-color: #ec4899; width: 14px; height: 14px; }
.dash-players-sort { margin-left: auto; }
.dash-players-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.dash-player-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px; padding: 12px 14px; transition: border-color 0.2s, background 0.2s;
}
.dash-player-card:hover { border-color: rgba(236,72,153,0.25); background: rgba(236,72,153,0.04); }
.dash-player-card-top {
    display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; margin-bottom: 8px;
}
.dash-player-card-icon {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    background: rgba(236,72,153,0.1); border: 1px solid rgba(236,72,153,0.2);
    display: flex; align-items: center; justify-content: center; color: #f9a8d4;
}
.dash-player-card-icon svg { width: 15px !important; height: 15px !important; max-width: 15px !important; max-height: 15px !important; }
.dash-player-card-name {
    font-size: 0.78rem; font-weight: 600; color: #f3f4f6; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.dash-player-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dash-player-ping {
    display: inline-flex; align-items: center; gap: 4px; font-size: 0.65rem; font-weight: 600;
}
.dash-player-ping svg { width: 12px !important; height: 12px !important; max-width: 12px !important; max-height: 12px !important; opacity: 0.8; }
.dash-player-ping.good { color: #4ade80; }
.dash-player-ping.mid { color: #fbbf24; }
.dash-player-ping.bad { color: #f87171; }
.dash-player-threat-badge {
    min-width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; color: #fff;
}
.dash-player-threat-badge.low { background: rgba(34,197,94,0.25); border: 1px solid rgba(34,197,94,0.4); color: #86efac; }
.dash-player-threat-badge.mid { background: rgba(251,191,36,0.2); border: 1px solid rgba(251,191,36,0.4); color: #fde68a; }
.dash-player-threat-badge.high { background: rgba(239,68,68,0.85); border: 1px solid rgba(239,68,68,0.5); }
.dash-player-card-joined { font-size: 0.68rem; color: #6b7280; margin-bottom: 10px; }
.dash-player-card-health { margin-bottom: 8px; }
.dash-player-health-head {
    display: flex; justify-content: space-between; font-size: 0.68rem; color: #9ca3af; margin-bottom: 5px;
}
.dash-health-bar {
    height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.06); overflow: hidden;
}
.dash-health-fill { height: 100%; border-radius: 9999px; transition: width 0.3s; }
.dash-health-fill.low { background: linear-gradient(90deg, #ef4444, #f87171); }
.dash-health-fill.mid { background: linear-gradient(90deg, #f97316, #fbbf24); }
.dash-health-fill.high { background: linear-gradient(90deg, #22c55e, #4ade80); }
.dash-player-card-playtime { font-size: 0.68rem; color: #6b7280; display: inline-flex; align-items: center; gap: 4px; }
.dash-player-card-playtime svg { width: 12px !important; height: 12px !important; }
.dash-player-card-main { min-width: 0; }
.dash-player-card-id { font-size: 0.62rem; color: #6b7280; font-weight: 600; letter-spacing: 0.04em; }
.dash-player-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.dash-player-tag {
    font-size: 0.58rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
}
.dash-player-tag.admin { background: rgba(236,72,153,0.15); color: #f9a8d4; border: 1px solid rgba(236,72,153,0.3); }
.dash-player-tag.threat { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.dash-player-tag.new { background: rgba(59,130,246,0.12); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.dash-player-card-footer {
    display: flex; align-items: center; justify-content: space-between; margin-top: 4px;
    padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05);
}
.dash-player-card-action {
    width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03); color: #9ca3af; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.dash-player-card-action:hover { border-color: rgba(236,72,153,0.35); color: #f9a8d4; background: rgba(236,72,153,0.08); }
.dash-player-card-action svg { width: 14px !important; height: 14px !important; }
.dash-select {
    padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3); color: #e5e7eb; font-size: 0.75rem; cursor: pointer;
}
.dash-select:focus { outline: none; border-color: rgba(236,72,153,0.45); box-shadow: 0 0 0 2px rgba(236,72,153,0.15); }
.dash-players-sort { margin-left: auto; min-width: 160px; }
.dash-filter-card { margin-bottom: 16px; border-radius: 14px; }
.dash-filter-inner { padding: 16px 18px; border-radius: 13px; }
.dash-filter-title { font-size: 0.82rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.dash-filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dash-filter-search { flex: 1; min-width: 220px; }
.dash-action-wrap { position: relative; }
.dash-action-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 4px); min-width: 200px;
    background: #18181b; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    padding: 6px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.dash-action-menu.open { display: block; }
.dash-action-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px;
    border: none; background: transparent; color: #e5e7eb; font-size: 0.78rem; cursor: pointer; border-radius: 8px; text-align: left;
}
.dash-action-menu button:hover { background: rgba(255,255,255,0.05); }
.dash-action-menu button.danger { color: #f87171; }
.dash-action-menu button svg { width: 14px !important; height: 14px !important; }
.dash-players-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06);
}
.dash-players-range { font-size: 0.75rem; color: #6b7280; }
.dash-players-pagination { display: flex; align-items: center; gap: 10px; }
.dash-players-page-label { font-size: 0.75rem; color: #9ca3af; white-space: nowrap; }
.dash-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.dash-chart-card { padding: 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02); }
.dash-chart-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.dash-chart-title { font-size: 0.92rem; font-weight: 700; }
.dash-chart-meta { font-size: 0.7rem; color: #6b7280; margin-top: 3px; }
.dash-chart-wrap { position: relative; height: 220px; }
.dash-chart-wrap.tall { height: 260px; }
.dash-donut-wrap { position: relative; height: 190px; }
.dash-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.dash-donut-center .num { font-size: 1.3rem; font-weight: 700; }
.dash-donut-center .lbl { font-size: 0.62rem; color: #6b7280; text-transform: uppercase; }

.dash-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); gap: 12px;
}
.dash-toggle-row:last-child { border-bottom: none; }
.dash-toggle-label { font-size: 0.82rem; color: #e5e7eb; }

.dash-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.dash-switch input { opacity: 0; width: 0; height: 0; }
.dash-switch span {
    position: absolute; inset: 0; border-radius: 9999px; cursor: pointer;
    background: rgba(255,255,255,0.1); transition: 0.2s;
}
.dash-switch span::before {
    content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
    border-radius: 50%; background: #fff; transition: 0.2s;
}
.dash-switch input:checked + span { background: #ec4899; }
.dash-switch input:checked + span::before { transform: translateX(20px); }

.dash-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02); color: #9ca3af; font-size: 0.78rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.dash-tab svg { width: 15px; height: 15px; }
.dash-tab.active, .dash-tab:hover { color: #fff; border-color: rgba(236,72,153,0.35); background: rgba(236,72,153,0.1); }

.dash-config-label { display: block; font-size: 0.68rem; font-weight: 600; color: #9ca3af; margin-bottom: 4px; }
.dash-config-textarea {
    width: 100%; min-height: 64px; padding: 8px 10px; border-radius: 8px;
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1);
    color: #e5e7eb; font-size: 0.72rem; font-family: ui-monospace, monospace; resize: vertical;
}
.dash-config-textarea:focus { outline: none; border-color: rgba(236,72,153,0.45); }
.dash-config-input {
    width: 100%; padding: 8px 10px; border-radius: 8px;
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1); color: #e5e7eb; font-size: 0.8rem;
}
.dash-pill.offline { background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.25); }
.dash-pill.offline .dash-status-dot { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }

.dash-map-wrap {
    position: relative; height: calc(100vh - 180px); min-height: 520px;
    border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
    background: #0a1420;
}
.dash-map-bg {
    position: absolute; inset: 0; z-index: 1;
}
.dash-map-bg svg.dash-map-full {
    width: 100% !important; height: 100% !important;
    max-width: none !important; max-height: none !important;
    object-fit: cover;
}
.dash-map-markers {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.dash-map-marker {
    position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: #22c55e; border: 2px solid #fef08a;
    box-shadow: 0 0 8px rgba(34,197,94,0.9);
    transform: translate(-50%, -50%); cursor: pointer; pointer-events: auto;
    transition: transform 0.15s;
}
.dash-map-marker:hover {
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 3;
}
.dash-map-marker.threat { background: #ef4444; border-color: #fca5a5; box-shadow: 0 0 8px rgba(239,68,68,0.9); }
.dash-map-marker.admin { background: #ec4899; border-color: #fbcfe8; }
.dash-map-panel {
    position: absolute; top: 16px; width: 260px; max-height: calc(100% - 32px);
    background: rgba(8,8,8,0.88); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 14px; overflow-y: auto; z-index: 10;
    backdrop-filter: blur(12px);
}
.dash-map-panel.left { left: 16px; }
.dash-map-panel.right { right: 16px; width: 240px; }
.dash-map-panel .dash-chart-title { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.dash-map-panel .dash-chart-title svg { width: 15px !important; height: 15px !important; }

.dash-stream-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 14px; min-height: calc(100vh - 140px); }
.dash-stream-player-wrap { border-radius: 14px; }
.dash-stream-player {
    background: #050505; border-radius: 13px; display: flex; flex-direction: column; overflow: hidden; min-height: 560px;
}
.dash-stream-head {
    padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.dash-stream-head-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-stream-head-right { display: flex; align-items: center; gap: 8px; }
.dash-stream-ping { font-size: 0.78rem; font-weight: 600; }
.dash-stream-threat-ring {
    min-width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; border: 2px solid rgba(255,255,255,0.15);
}
.dash-stream-threat-ring.low { background: rgba(34,197,94,0.15); color: #86efac; border-color: rgba(34,197,94,0.4); }
.dash-stream-threat-ring.mid { background: rgba(251,191,36,0.12); color: #fde68a; border-color: rgba(251,191,36,0.35); }
.dash-stream-threat-ring.high { background: rgba(239,68,68,0.2); color: #fca5a5; border-color: rgba(239,68,68,0.45); }
.dash-stream-screen { flex: 1; min-height: 420px; position: relative; overflow: hidden; background: #0a1628; }
.dash-stream-screen.paused .dash-stream-scene { animation-play-state: paused; }
.dash-stream-scene { position: absolute; inset: 0; animation: dash-stream-drive 12s linear infinite; }
.dash-stream-sky { position: absolute; inset: 0 0 45%; background: linear-gradient(180deg, #1e3a5f 0%, #ec489933 40%, #fbbf2444 100%); }
.dash-stream-hills { position: absolute; left: 0; right: 0; bottom: 38%; height: 18%; background: linear-gradient(180deg, transparent, #1a2f1a 80%); }
.dash-stream-road { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, #2a2a2a, #141414); transform: perspective(400px) rotateX(18deg); transform-origin: bottom; }
.dash-stream-road-lines { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: repeating-linear-gradient(180deg, #fbbf24 0 24px, transparent 24px 48px); animation: dash-road-scroll 1.2s linear infinite; }
.dash-stream-player-silhouette { position: absolute; left: 50%; bottom: 28%; width: 40px; height: 80px; margin-left: -20px; background: linear-gradient(180deg, #374151, #111827); border-radius: 8px 8px 4px 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.dash-stream-hud-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; font-size: 0.72rem; color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.8); z-index: 2; }
.dash-stream-hud-bottom { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 2; }
.dash-stream-health { display: flex; align-items: center; gap: 8px; font-size: 0.68rem; color: #d1d5db; flex: 1; max-width: 220px; }
.dash-stream-health .dash-health-bar { flex: 1; height: 8px; }
.dash-stream-live-pill { font-size: 0.72rem; font-weight: 700; color: #4ade80; background: rgba(34,197,94,0.15); padding: 4px 10px; border-radius: 9999px; border: 1px solid rgba(34,197,94,0.3); }
.dash-stream-crosshair { position: absolute; left: 50%; top: 45%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid rgba(236,72,153,0.7); border-radius: 50%; z-index: 2; }
.dash-stream-crosshair::before, .dash-stream-crosshair::after { content: ''; position: absolute; background: rgba(236,72,153,0.7); }
.dash-stream-crosshair::before { left: 50%; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; }
.dash-stream-crosshair::after { top: 50%; left: -6px; right: -6px; height: 2px; margin-top: -1px; }
@keyframes dash-stream-drive { 0%,100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(8deg); } }
@keyframes dash-road-scroll { to { transform: translateY(48px); } }
.dash-stream-bar {
    padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.02);
}
.dash-stream-play-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(236,72,153,0.2); color: #f9a8d4; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dash-stream-play-btn svg { width: 14px !important; height: 14px !important; }
.dash-stream-time { font-size: 0.75rem; color: #9ca3af; min-width: 36px; font-variant-numeric: tabular-nums; }
.dash-stream-live-label { flex: 1; font-size: 0.72rem; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.dash-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.6); animation: dash-pulse-live 1.5s ease infinite; }
@keyframes dash-pulse-live { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.dash-stream-sidebar { height: 100%; display: flex; flex-direction: column; min-height: 560px; }
.dash-stream-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-stream-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dash-stream-list { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; max-height: calc(100vh - 340px); }
.dash-stream-item-wrap { border-radius: 12px; }
.dash-stream-item-wrap .dash-stream-item.active { border-color: rgba(236,72,153,0.45); background: rgba(236,72,153,0.08); box-shadow: inset 0 0 0 1px rgba(236,72,153,0.2); }
.dash-stream-item {
    width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02); cursor: pointer; transition: all 0.2s; color: inherit;
}
.dash-stream-item.active, .dash-stream-item:hover { background: rgba(236,72,153,0.08); }
.dash-stream-item-top { font-size: 0.78rem; margin-bottom: 6px; }
.dash-stream-item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.dash-stream-item-meta { display: flex; justify-content: space-between; font-size: 0.68rem; color: #6b7280; }

.dash-console {
    background: #030303; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
    font-family: 'Consolas', 'Monaco', monospace; font-size: 0.78rem; overflow: hidden;
}
.dash-console-head {
    padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: space-between;
}
.dash-console-body { padding: 16px; height: 420px; overflow-y: auto; line-height: 1.6; }
.dash-console-body .info { color: #4ade80; }
.dash-console-body .warn { color: #fbbf24; }
.dash-console-body .error { color: #f87171; }
.dash-console-body .chat { color: #c084fc; }
.dash-console-body .ac { color: #67e8f9; }
.dash-console-input {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.dash-console-input input {
    flex: 1; background: transparent; border: none; color: #fff; outline: none; font-family: inherit;
}

.dash-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.dash-feature-card { padding: 24px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.07); text-align: center; }
.dash-feature-card svg { width: 32px; height: 32px; color: #ec4899; margin-bottom: 12px; }
.dash-feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.dash-feature-card p { font-size: 0.78rem; color: #6b7280; line-height: 1.5; }

.dash-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 200;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.dash-modal-overlay.open { display: flex; }
.dash-modal {
    width: 100%; max-width: 480px; background: #0d0d0d; border-radius: 16px;
    border: 1px solid rgba(236,72,153,0.2); padding: 24px; max-height: 85vh; overflow-y: auto;
}
.dash-modal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.dash-modal p { font-size: 0.8rem; color: #6b7280; margin-bottom: 18px; }
.dash-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.dash-perm-list { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.dash-perm-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 10px; cursor: pointer; transition: background 0.2s;
}
.dash-perm-item:hover { background: rgba(255,255,255,0.04); }
.dash-perm-item input { accent-color: #ec4899; }

.dash-empty { text-align: center; padding: 48px 24px; color: #6b7280; }
.dash-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.4; }

.dash-expire-badge {
    display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 9999px;
    font-size: 0.65rem; font-weight: 600; background: rgba(34,197,94,0.12);
    color: #86efac; border: 1px solid rgba(34,197,94,0.25);
}

@media (max-width: 1280px) {
    .dash-grid-4, .dash-feature-grid { grid-template-columns: repeat(2,1fr); }
    .dash-players-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-grid-3, .dash-stream-wrap { grid-template-columns: 1fr; }
    .dash-config-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .dash-gta-map-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
    .dash-gta-map-center { min-height: 400px; }
    .dash-profile-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .dash-layout { flex-direction: column; }
    .dash-sidebar { width: 100%; height: auto; position: relative; }
    .dash-grid-4, .dash-grid-2, .dash-feature-grid, .dash-players-grid { grid-template-columns: 1fr; }
    .dash-players-filters { flex-direction: column; align-items: flex-start; }
    .dash-players-sort { margin-left: 0; }
    .dash-map-panel { width: calc(100% - 32px) !important; max-height: 200px; }
    .dash-body { padding: 14px; }
    .dash-config-grid-4, .dash-config-grid-2 { grid-template-columns: 1fr; }
    .dash-config-actions-row { justify-content: flex-start; }
}

.dash-player-card-wrap { border-radius: 14px; }
.dash-player-card-wrap .dash-player-card { cursor: pointer; }
.dash-player-card-wrap:hover .dash-player-card { border-color: rgba(236,72,153,0.25); background: rgba(236,72,153,0.04); }

.dash-config-section {
    border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02); overflow: hidden;
}
.dash-config-section-inner { padding: 14px 16px; }

.dash-stream-item-wrap { border-radius: 12px; }
.dash-stream-player-wrap { border-radius: 14px; }

.dash-toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 300; padding: 12px 18px;
    border-radius: 12px; background: rgba(236,72,153,0.15); border: 1px solid rgba(236,72,153,0.4);
    color: #f9a8d4; font-size: 0.82rem; opacity: 0; transform: translateY(8px); transition: all 0.25s; pointer-events: none;
}
.dash-toast.show { opacity: 1; transform: translateY(0); }
.dash-toast.error { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #fca5a5; }

.dash-config-top { margin-bottom: 16px; }
.dash-config-top-search { margin-bottom: 12px; }
.dash-config-actions-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dash-config-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash-config-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dash-config-section { min-height: 320px; }
.dash-config-section-inner { padding: 16px; height: 100%; max-height: 420px; overflow-y: auto; }
.dash-config-section-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dash-config-section-body .dash-toggle-row { padding: 8px 0; }
.dash-config-event-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }

.dash-blocked-card { max-width: 480px; }
.dash-blocked-inner { padding: 32px 24px; text-align: center; }
.dash-blocked-inner svg { width: 40px !important; height: 40px !important; opacity: 0.5; margin-bottom: 12px; color: #ec4899; }
.dash-blocked-inner h3 { font-size: 1rem; margin-bottom: 8px; }
.dash-blocked-inner p { font-size: 0.8rem; color: #6b7280; margin-bottom: 16px; }

.dash-search-hero { text-align: center; padding: 32px 0 24px; }
.dash-search-hero.compact { padding: 0 0 16px; }
.dash-search-hero-input { max-width: 640px; margin: 16px auto 0; }
.dash-search-hint { font-size: 0.75rem; color: #6b7280; margin-top: 12px; }
.dash-link-btn { background: none; border: none; color: #ec4899; cursor: pointer; font-size: inherit; text-decoration: underline; padding: 0 2px; }

.dash-profile-card { margin-bottom: 0; }
.dash-profile-inner { padding: 20px; }
.dash-profile-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.dash-profile-avatar { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(168,85,247,0.3)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; flex-shrink: 0; }
.dash-profile-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.dash-profile-license { font-size: 0.72rem; color: #6b7280; font-family: monospace; margin-bottom: 8px; }
.dash-profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.dash-profile-stats div { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 10px 12px; }
.dash-profile-stats span { display: block; font-size: 0.62rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.dash-profile-stats strong { font-size: 0.82rem; }
.dash-profile-threat span { font-size: 0.75rem; color: #9ca3af; }
.dash-threat-bar-wrap { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.dash-threat-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 9999px; overflow: hidden; }
.dash-threat-bar-fill { height: 100%; border-radius: 9999px; }
.dash-threat-bar-fill.low { background: #22c55e; }
.dash-threat-bar-fill.mid { background: #fbbf24; }
.dash-threat-bar-fill.high { background: #ef4444; }
.dash-id-box { font-family: monospace; font-size: 0.72rem; padding: 10px 12px; background: rgba(0,0,0,0.35); border-radius: 8px; margin-bottom: 8px; color: #d1d5db; }
.dash-empty-sm { font-size: 0.8rem; color: #6b7280; padding: 12px 0; }

.dash-gta-map-wrap { display: grid; grid-template-columns: 260px 1fr 280px; gap: 0; min-height: 620px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.dash-gta-map-center { position: relative; background: #0d1f33; overflow: hidden; min-height: 620px; }
.dash-gta-map-bg { position: absolute; inset: 0; background: #0d1f33; }
.dash-gta-map-img { width: 100%; height: 100%; object-fit: contain; display: block; filter: saturate(0.9) brightness(0.95); }
.dash-gta-map-fallback { position: absolute; inset: 0; display: none; }
.dash-gta-map-fallback.show { display: block; }
.dash-gta-map-fallback svg { width: 100%; height: 100%; object-fit: contain; }
.dash-gta-map-img.hidden { display: none; }
.dash-gta-map-panel { background: rgba(8,8,12,0.92); backdrop-filter: blur(12px); padding: 16px; overflow-y: auto; z-index: 2; }
.dash-gta-map-panel.left { border-right: 1px solid rgba(255,255,255,0.06); }
.dash-gta-map-panel.right { border-left: 1px solid rgba(255,255,255,0.06); }
.dash-gta-panel-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.dash-gta-panel-title span { font-size: 0.72rem; color: #6b7280; font-weight: 500; }
.dash-gta-info { font-size: 0.72rem; color: #f9a8d4; background: rgba(236,72,153,0.08); border: 1px solid rgba(236,72,153,0.22); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; line-height: 1.4; }
.dash-gta-map-center.heatmap::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 48% 72%, rgba(239,68,68,0.35), transparent 35%), radial-gradient(circle at 62% 58%, rgba(239,68,68,0.25), transparent 30%); pointer-events: none; z-index: 1; mix-blend-mode: screen; }
.dash-gta-markers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.dash-map-marker {
    position: absolute; transform: translate(-50%,-50%); width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; cursor: pointer; pointer-events: auto; transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.dash-map-marker.player { background: #22c55e; color: #fff; }
.dash-map-marker.admin { background: #ec4899; color: #fff; }
.dash-map-marker.threat { background: #ef4444; color: #fff; }
.dash-map-marker.selected { transform: translate(-50%,-50%) scale(1.2); box-shadow: 0 0 0 3px rgba(236,72,153,0.5), 0 4px 12px rgba(236,72,153,0.4); z-index: 3; }
.dash-map-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.dash-map-trail polyline { fill: none; stroke: rgba(239,68,68,0.75); stroke-width: 0.6; stroke-linecap: round; stroke-dasharray: 2 1; }
.dash-map-popup { position: absolute; z-index: 10; width: min(280px, 90%); pointer-events: auto; transform: translate(-50%, -100%); margin-top: -12px; }
.dash-map-popup-inner { padding: 12px; border-radius: 12px; background: rgba(8,8,12,0.95); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); }
.dash-map-popup-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dash-map-popup-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(236,72,153,0.2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #f9a8d4; flex-shrink: 0; }
.dash-map-popup-head strong { display: block; font-size: 0.82rem; }
.dash-map-popup-head span { font-size: 0.68rem; color: #6b7280; }
.dash-map-popup-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; font-size: 0.68rem; }
.dash-map-popup-stats span { display: block; color: #6b7280; margin-bottom: 2px; }
.dash-map-popup-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-map-license { font-family: monospace; font-size: 0.62rem !important; }
.dash-map-slider-block { margin: 12px 0; }
.dash-map-slider-block label { display: flex; justify-content: space-between; font-size: 0.72rem; color: #9ca3af; margin-bottom: 6px; }
.dash-map-range { width: 100%; accent-color: #ec4899; margin-bottom: 4px; }
.dash-map-range.threat { accent-color: #ef4444; }
.dash-map-range.time { accent-color: #fbbf24; }
.dash-map-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dash-map-chip {
    padding: 6px 10px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03); color: #9ca3af; font-size: 0.68rem; cursor: pointer; transition: all 0.2s;
}
.dash-map-chip.active, .dash-map-chip:hover { border-color: rgba(236,72,153,0.4); color: #f9a8d4; background: rgba(236,72,153,0.1); }
.dash-gta-table tr.selected td { background: rgba(236,72,153,0.08); }
.dash-map-cluster { position: absolute; transform: translate(-50%,-50%); min-width: 28px; height: 28px; border-radius: 50%; background: rgba(239,68,68,0.9); color: #fff; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,0.3); box-shadow: 0 2px 8px rgba(0,0,0,0.4); pointer-events: none; }
.dash-gta-table-wrap { max-height: calc(100vh - 200px); overflow-y: auto; }
.dash-gta-table { width: 100%; font-size: 0.72rem; border-collapse: collapse; }
.dash-gta-table th { text-align: left; color: #6b7280; font-size: 0.62rem; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dash-gta-table td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }

.dash-menu-item.active-choice { border: 1px solid rgba(236,72,153,0.45); background: rgba(236,72,153,0.08); }

html[data-dash-theme="light"] #dashboard-view { background: #f4f4f5; }
html[data-dash-theme="light"] .dash-sidebar { background: #fff; }
html[data-dash-theme="light"] .dash-config-section-inner { background: #fff; }
html[data-dash-theme="light"] .dash-nav-item { color: #52525b; }
html[data-dash-theme="light"] .dash-body { color: #18181b; }
html[data-dash-theme="light"] .dash-select { background: #fff; color: #18181b; }
html[data-dash-theme="light"] .dash-action-menu { background: #fff; border-color: rgba(0,0,0,0.1); }

