/** elTAP Admin — sidebar layout v3 (AZ/EN, oxunaqlılıq) */
:root {
    --bg: #0c1018;
    --bg-elevated: #121820;
    --bg-card: #1a2230;
    --border: #2d3848;
    --border-soft: #232c3a;
    --text: #f1f5f9;
    --text-secondary: #c8d3e0;
    --text-muted: #9fb0c3;
    --muted: var(--text-muted);
    --link: #d8c4ff;
    --link-hover: #ede5ff;
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-soft: rgba(139, 92, 246, 0.16);
    --accent-border: rgba(139, 92, 246, 0.42);
    --danger: #f87171;
    --success: #4ade80;
    --warning: #fbbf24;
    --info: #a5b4fc;
    --sidebar-w: 272px;
    --topbar-h: 58px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --main-max: 1440px;
}

.admin-body {
    font-family: 'Inter', 'Noto Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body button {
    font-family: inherit;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    font-size: 1.1rem;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 150;
    overflow: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
    min-height: var(--topbar-h);
    box-sizing: border-box;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #db2777);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar-brand strong { display: block; font-size: 0.98rem; color: var(--text); letter-spacing: -0.01em; }
.sidebar-brand span { display: block; font-size: 0.74rem; color: var(--text-muted); margin-top: 0.1rem; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.65rem 0.75rem 0.5rem; scrollbar-width: thin; }
.sidebar-group { margin-bottom: 0.35rem; border-radius: var(--radius-sm); }
.sidebar-group summary {
    list-style: none;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    user-select: none;
}
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-group summary:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.sidebar-group[open] summary { color: var(--text); }

.sidebar-links { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.25rem 0 0.55rem 0.25rem; }
.sidebar-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.52rem 0.78rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    border: 1px solid transparent;
}
.sidebar-links a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.sidebar-links a.active {
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 650;
    border-color: var(--accent-border);
}
.sidebar-link-label { flex: 1; min-width: 0; }

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.sidebar-account {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
}
.sidebar-account:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.admin-topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1.5rem;
    min-height: var(--topbar-h);
    box-sizing: border-box;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.admin-topbar h1 { margin: 0; font-size: 1.05rem; font-weight: 650; color: var(--text); letter-spacing: -0.02em; }
.topbar-sub { margin: 0.12rem 0 0; font-size: 0.78rem; color: var(--text-muted); }
.admin-topbar .muted { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.logout-form { margin: 0; }

.lang-switch { display: inline-flex; gap: 0.2rem; padding: 0.2rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.lang-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.1rem; padding: 0.28rem 0.55rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    text-decoration: none; color: var(--text-muted);
    transition: background 0.12s, color 0.12s;
}
.lang-pill:hover { color: var(--text); }
.lang-pill.active { background: var(--accent); color: #fff; }
.lang-switch-sidebar { width: 100%; justify-content: center; }
@media (max-width: 960px) { .lang-switch-topbar { display: none; } }
@media (min-width: 961px) { .lang-switch-sidebar { display: none; } }

.security-banner {
    position: fixed;
    top: var(--topbar-h);
    left: var(--sidebar-w);
    right: 0;
    z-index: 99;
    background: rgba(251, 191, 36, 0.14);
    border-bottom: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
    padding: 0.6rem 1.5rem;
    font-size: 0.82rem;
    line-height: 1.45;
}
.security-banner a { color: #fef08a; text-decoration: underline; }
.security-banner-danger { background: rgba(127, 29, 29, 0.92); border-color: #991b1b; color: #fecaca; }
.security-banner-warn { background: rgba(120, 53, 15, 0.92); border-color: #b45309; color: #fde68a; }

.admin-main {
    margin-left: var(--sidebar-w);
    padding: calc(var(--topbar-h) + 1.35rem) 1.75rem 2.25rem;
    max-width: var(--main-max);
    width: 100%;
    box-sizing: border-box;
}
body.has-security-banner .admin-main { padding-top: calc(var(--topbar-h) + 3rem); }

.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at top, #1e1b4b 0%, var(--bg) 55%);
}
.admin-login { max-width: 400px; width: calc(100% - 2rem); margin: 0; }
.login-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.login-logo {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #db2777);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.login-brand h1 { margin: 0; font-size: 1.35rem; }
.btn-block { width: 100%; margin-top: 1rem; }
.login-dev-hint { margin-top: 1rem; font-size: 0.75rem; padding: 0.65rem 0.75rem; background: rgba(255,255,255,0.04); border-radius: 8px; }

@media (max-width: 960px) {
    .sidebar-toggle { display: block; }
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: var(--shadow); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-topbar { left: 0; padding-left: 3.25rem; }
    .security-banner { left: 0; }
    .admin-main { margin-left: 0; }
}

.admin-header, .admin-nav { display: none !important; }

.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.35rem 1.45rem;
    border: 1px solid var(--border);
    margin-bottom: 1.1rem;
    box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
.admin-card h2, .admin-card h3 { color: var(--text); margin-top: 0; }
.admin-card h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.admin-card h3 { font-size: 0.98rem; margin-bottom: 0.55rem; color: var(--text-secondary); }

table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { text-align: left; padding: 0.72rem 0.7rem; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}
tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

.btn {
    border: none; border-radius: var(--radius-sm); padding: 0.48rem 0.9rem;
    cursor: pointer; font-weight: 650; font-size: 0.84rem;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); text-decoration: none; text-align: center; }
.btn-ghost:hover { color: var(--text); border-color: var(--accent-border); background: rgba(255,255,255,0.03); }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.78rem; }
.btn-ban { background: #dc2626; color: #fff; }
.btn-allow { background: #16a34a; color: #fff; }

.muted { color: var(--text-muted); }
.success-msg {
    color: var(--success); background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25); border-radius: 8px;
    padding: 0.65rem 0.85rem; margin-bottom: 1rem; font-size: 0.85rem;
}
.error-msg {
    color: #fca5a5; background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 8px;
    padding: 0.65rem 0.85rem; margin-bottom: 1rem; font-size: 0.85rem;
}
.error { color: #f87171; }

.lang-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem 0.65rem;
    margin: 0.5rem 0 0.75rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.lang-grid-caption {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}
.lang-grid-compact { margin-top: 0.35rem; }
.lang-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin: 0 !important;
}
.lang-grid input {
    max-width: none;
    margin-top: 0 !important;
    font-size: 0.82rem;
    padding: 0.45rem 0.55rem;
}
.site-row-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.site-row-new {
    background: rgba(124, 58, 237, 0.06);
    border: 1px dashed rgba(124, 58, 237, 0.35);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-top: 1.25rem;
}
@media (max-width: 900px) {
    .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lang-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 11rem;
}
.lang-stack-caption {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}
.lang-stack-row {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.4rem;
    align-items: center;
}
.lang-stack-table { min-width: 13rem; }
.lang-stack-row input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.42rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.82rem;
}
.lang-stack-row input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.table-wrap td .lang-stack { margin: 0; }
.table-wrap td { min-width: 8rem; vertical-align: top; }
.table-wrap td code { word-break: break-all; }

.muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.admin-form label { display: block; margin-top: 0.85rem; font-size: 0.84rem; color: var(--text-secondary); font-weight: 550; line-height: 1.4; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%; max-width: 540px; box-sizing: border-box; margin-top: 0.35rem;
    padding: 0.58rem 0.78rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 0.9rem;
}
.admin-form input::placeholder, .admin-form textarea::placeholder { color: #6b7c90; }

.page-head { margin-bottom: 1.35rem; }
.page-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.page-head h2 { margin: 0 0 0.4rem; font-size: 1.45rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.page-head .lead { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; max-width: 820px; }
.page-head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.info-box {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.info-box p { margin: 0; }

.settings-hint {
    background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 1rem;
    font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5;
}
.settings-hint a { color: var(--link); }
.settings-hint strong { color: var(--text); }

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft);
}
.admin-form .row-check { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.admin-form .row-check input { width: auto; max-width: none; }

.admin-login label { display: block; margin-top: 0.75rem; font-size: 0.86rem; color: var(--text-secondary); font-weight: 550; }
.admin-login input {
    width: 100%; box-sizing: border-box; margin-top: 0.28rem; padding: 0.62rem 0.78rem;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.admin-login .login-lang { display: flex; justify-content: center; margin-bottom: 0.85rem; }

.alert-pill {
    display: inline-block; background: var(--warning); color: #1c1917;
    padding: 0.1rem 0.42rem; border-radius: 99px; font-size: 0.68rem; font-weight: 800;
    min-width: 1.15rem; text-align: center;
}

tr.row-risk-high td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
tr.row-risk-medium td:first-child { box-shadow: inset 4px 0 0 var(--warning); }
tr.row-risk-low td:first-child { box-shadow: inset 4px 0 0 var(--success); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.9rem; }

.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters a {
    padding: 0.4rem 0.85rem; border-radius: 8px; text-decoration: none;
    color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); font-size: 0.82rem;
}
.filters a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.72rem; font-weight: 600; }
.badge-pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-allowed { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge-banned { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-new { background: rgba(234, 179, 8, 0.2); color: #facc15; margin-left: 0.35rem; font-size: 0.65rem; }

.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stat { flex: 1; min-width: 120px; padding: 0.85rem 1rem; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); }
.stat strong { display: block; font-size: 1.45rem; }
.stat span { color: var(--text-muted); font-size: 0.78rem; }

.note-input {
    width: 100%; min-width: 120px; padding: 0.35rem; border-radius: 6px;
    border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.75rem; margin-bottom: 0.35rem;
}
.actions { display: flex; flex-direction: column; gap: 0.35rem; min-width: 140px; }
.issue-tag { display: inline-block; margin: 0.1rem 0.2rem 0.1rem 0; padding: 0.1rem 0.4rem; background: var(--border); border-radius: 4px; font-size: 0.7rem; }

.risk-high { background: rgba(127, 29, 29, 0.35); color: #fecaca; border-left: 4px solid var(--danger); }
.risk-medium { background: rgba(113, 63, 18, 0.25); color: #fde68a; border-left: 4px solid var(--warning); }
.risk-low { background: rgba(20, 83, 45, 0.25); color: #bbf7d0; border-left: 4px solid var(--success); }
.risk-pending { background: rgba(30, 64, 175, 0.28); color: #bfdbfe; border-left: 4px solid #3b82f6; }
tr.row-risk-pending td:first-child { box-shadow: inset 4px 0 0 #3b82f6; }
.dash-kpi .stat.risk-pending strong { color: #60a5fa; }

.dash-kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.dash-kpi .stat { border: 1px solid var(--border); }
.dash-kpi .stat.risk-high strong { color: #f87171; }
.dash-kpi .stat.risk-medium strong { color: #fbbf24; }
.dash-kpi .stat.risk-low strong { color: #4ade80; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.detail-box { background: var(--bg); border-radius: 10px; padding: 1rem; border: 1px solid var(--border); }
.detail-box h4 { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--text-muted); }

.settings-layout { display: grid; grid-template-columns: minmax(200px, 240px) 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 800px) { .settings-layout { grid-template-columns: 1fr; } }
.settings-nav { display: flex; flex-direction: column; gap: 0.35rem; position: sticky; top: calc(var(--topbar-h) + 1rem); }
.settings-nav a {
    padding: 0.55rem 0.75rem; border-radius: 8px; text-decoration: none;
    color: var(--text-muted); font-size: 0.85rem; font-weight: 600; border: 1px solid transparent;
}
.settings-nav a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.settings-nav a.active { background: var(--accent-soft); color: #ddd6fe; border-color: rgba(124,58,237,0.35); }
.settings-panel h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.settings-panel .lead { margin: 0 0 1.25rem; color: var(--text-muted); font-size: 0.85rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.info-tile { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; }
.info-tile span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.info-tile strong { font-size: 0.95rem; word-break: break-all; }
.status-ok { color: var(--success); }
.status-warn { color: var(--warning); }
.status-bad { color: var(--danger); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.filter-tabs a {
    padding: 0.4rem 0.85rem; border-radius: 999px; text-decoration: none; font-size: 0.82rem; font-weight: 600;
    color: var(--text-muted); border: 1px solid var(--border); background: var(--bg);
}
.filter-tabs a:hover { color: var(--text); border-color: var(--accent); }
.filter-tabs a.active { background: var(--accent-soft); color: var(--text); border-color: var(--accent-border); }
.settings-nav a.active { background: var(--accent-soft); color: var(--text); border-color: var(--accent-border); }
.admin-section-title { margin: 1.5rem 0 0.5rem; font-size: 0.95rem; color: var(--text-secondary); border-top: 1px solid var(--border); padding-top: 1rem; }
.chart-card h3 { margin: 0 0 1rem; font-size: 0.95rem; color: var(--text-secondary); }
.filter-tabs .count { opacity: 0.75; font-weight: 500; margin-left: 0.25rem; }

.payout-dl { margin: 0; display: grid; gap: 0.5rem; }
.payout-dl dt { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.payout-dl dd { margin: 0 0 0.65rem; font-size: 0.92rem; }
.payout-dl .payout-value { font-size: 0.88rem; word-break: break-all; background: var(--bg-elevated); padding: 0.2rem 0.45rem; border-radius: 4px; }
.copy-btn { padding: 0.15rem 0.45rem !important; font-size: 0.75rem !important; vertical-align: middle; }
.payout-dest { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.admin-section-title { margin: 1.5rem 0 0.5rem; font-size: 0.95rem; color: #94a3b8; border-top: 1px solid var(--border); padding-top: 1rem; }
.settings-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.settings-links a {
    padding: 0.4rem 0.7rem; border-radius: 8px; background: var(--bg-card);
    border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; font-size: 0.8rem; font-weight: 600;
}

.overview-main { max-width: none; }
.overview-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.overview-head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 1100px) { .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .overview-grid { grid-template-columns: 1fr; } }
.overview-card {
    display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; border-radius: 14px;
    background: var(--bg-card); border: 1px solid var(--border); text-decoration: none; color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.overview-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.overview-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.overview-data strong { display: block; font-size: 1.35rem; line-height: 1.2; color: #f8fafc; }
.overview-data span { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }
.tone-blue .overview-icon { background: #1e3a8a55; }
.tone-purple .overview-icon { background: #6d28d955; }
.tone-cyan .overview-icon { background: #0891b255; }
.tone-teal .overview-icon { background: #0f766e55; }
.tone-sky .overview-icon { background: #0284c755; }
.tone-amber .overview-icon { background: #d9770655; }
.tone-green .overview-icon { background: #16a34a55; }
.tone-rose .overview-icon { background: #e11d4855; }
.tone-pink .overview-icon { background: #db277755; }
.tone-mint .overview-icon { background: #14b8a655; }
.tone-lime .overview-icon { background: #65a30d55; }
.tone-indigo .overview-icon { background: #4f46e555; }
.tone-violet .overview-icon { background: #7c3aed55; }
.tone-slate .overview-icon { background: #47556955; }
.overview-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .overview-charts { grid-template-columns: 1fr; } }
.chart-card h3 { margin: 0 0 1rem; font-size: 0.95rem; color: #cbd5e1; }
.overview-recent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.platform-snapshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
@media (max-width: 900px) { .platform-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .platform-snapshot-grid { grid-template-columns: 1fr; } }
.platform-snap-item {
    display: block; padding: 0.75rem 0.85rem; border-radius: 0.5rem; border: 1px solid var(--border);
    background: var(--bg); text-decoration: none; color: inherit; transition: border-color 0.15s;
}
.platform-snap-item:hover { border-color: var(--accent); }
.platform-snap-item strong { display: block; color: #f8fafc; font-size: 1.05rem; }
.platform-snap-item span { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: var(--text-muted); }
.platform-snap-item em { display: block; margin-top: 0.2rem; font-size: 0.72rem; color: var(--text-muted); font-style: normal; }
tr.row-new-classic td:first-child { border-left: 3px solid rgba(234, 179, 8, 0.35); }
