/* HypeX RPG panel — temă dark cu accent roșu. */
:root {
    --accent: #E10600;
    --accent-hover: #ff2a1f;
    --accent-soft: rgba(225, 6, 0, 0.14);
    --bg: #0c0c0f;
    --surface: #15151a;
    --surface-2: #1c1c23;
    --surface-3: #24242d;
    --border: #2a2a34;
    --text: #ececf1;
    --muted: #9a9aab;
    --success: #34c46a;
    --warning: #f2b51c;
    --info: #3b8cf2;
    --radius: 10px;
    --topbar-h: 62px;
    --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; }
h2 { font-size: 19px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
button { font: inherit; }

.icon {
    width: 18px; height: 18px; flex-shrink: 0;
    /* proprietăți moștenite de conținutul <use> din icons.svg */
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-xl { width: 48px; height: 48px; color: var(--accent); }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: 14px;
    padding: 0 16px;
    background: var(--surface);
    border-bottom: 2px solid var(--accent);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 8px; }

.icon-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 0; border-radius: 8px;
    background: transparent; color: var(--text);
    cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn .icon { width: 20px; height: 20px; }
.sidebar-toggle { display: none; }

.search { position: relative; flex: 1; max-width: 380px; margin-left: 12px; }
.search input {
    width: 100%; height: 38px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface-2); color: var(--text);
    font: inherit; outline: none;
}
.search input:focus { border-color: var(--accent); }
.search-icon { position: absolute; left: 11px; top: 10px; color: var(--muted); pointer-events: none; }
.search-results {
    position: absolute; top: 44px; left: 0; right: 0;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.search-results a, .search-results p {
    display: flex; justify-content: space-between; gap: 8px;
    margin: 0; padding: 9px 12px; color: var(--text);
}
.search-results a:hover, .search-results a.focused { background: var(--accent-soft); }
.search-results small { color: var(--muted); }

.topnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topnav-link { color: var(--muted); font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.topnav-link:hover { color: var(--text); background: var(--surface-3); }

.dot-badge {
    position: absolute; top: 2px; right: 0;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* Dropdown-uri (<details>) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
    min-width: 230px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    padding: 6px;
}
.dropdown-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dropdown-empty { margin: 0; padding: 14px 10px; color: var(--muted); }
.dropdown-menu > a, .dropdown-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 10px; border: 0; border-radius: 7px;
    background: none; color: var(--text); text-align: left; cursor: pointer;
}
.dropdown-menu > a:hover, .dropdown-menu button:hover { background: var(--surface-3); }
.dropdown-menu form { margin: 0; }
.notif-menu { width: 330px; }
.notif-item { flex-direction: column; align-items: flex-start !important; gap: 2px !important; }
.notif-item small { color: var(--muted); }
.notif-item.unread { border-left: 3px solid var(--accent); }

.account-btn { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 22px; font-weight: 600; }
.account-btn:hover { background: var(--surface-3); }
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 700;
}
.chevron { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
details[open] > summary .chevron { transform: rotate(180deg); }

.role { padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.role-founder { background: var(--accent); color: #fff; }
.role-admin { background: rgba(225, 6, 0, 0.2); color: #ff6a63; }
.role-helper { background: rgba(59, 140, 242, 0.2); color: #79b2ff; }
.role-leader { background: rgba(242, 181, 28, 0.2); color: #f6cc5c; }
.role-player { background: var(--surface-3); color: var(--muted); }

/* ---------- Shell: sidebar + conținut ---------- */
.shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
    position: sticky; top: var(--topbar-h);
    width: var(--sidebar-w); flex-shrink: 0;
    height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
    padding: 12px 10px 24px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    scrollbar-width: thin;
}
.sidebar-backdrop { display: none; }
.side-nav ul { list-style: none; margin: 2px 0 8px; padding: 0; }
.nav-group > summary {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 8px;
    color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    list-style: none; cursor: pointer; user-select: none;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { color: var(--text); }
.nav-group-label { flex: 1; }
.nav-group[open] .badge-group { display: none; }
.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px 8px 14px; border-radius: 8px;
    color: var(--text); font-weight: 500;
}
.nav-link .icon { color: var(--muted); }
.nav-link span:not(.badge) { flex: 1; }
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav-link.active .icon { color: var(--accent); }
.nav-link.soon { opacity: .6; }
.badge {
    min-width: 22px; padding: 1px 7px; border-radius: 11px;
    background: var(--accent); color: #fff;
    font-size: 12px; font-weight: 700; text-align: center;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 20px 40px; }

/* ---------- Componente ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; }
.card-flush { padding: 0; overflow: hidden; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head form { margin: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 18px; border: 0; border-radius: 8px;
    background: var(--accent); color: #fff; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface-3); color: var(--text); }
.btn-ghost:hover { background: var(--border); color: var(--text); }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border-left: 3px solid var(--info); background: rgba(59, 140, 242, 0.1); }
.alert-success { border-color: var(--success); background: rgba(52, 196, 106, 0.1); }
.alert-error { border-color: var(--accent); background: var(--accent-soft); }
.alert-info { border-color: var(--info); }

.notice { margin-top: 16px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 6px; }

.form { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form input, .form select, .form textarea {
    padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface-2); color: var(--text);
    font: inherit; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }

.auth-card { max-width: 420px; margin: 40px auto; }
.auth-logo { margin-bottom: 12px; }
.auth-logo img { border-radius: 12px; }

.list { list-style: none; margin: 0; padding: 0; }
.list-item a { display: flex; flex-direction: column; gap: 2px; padding: 13px 18px; color: var(--text); border-bottom: 1px solid var(--border); }
.list-item:last-child a { border-bottom: 0; }
.list-item a:hover { background: var(--surface-2); }
.list-item.unread a { box-shadow: inset 3px 0 0 var(--accent); }
.empty { margin: 0; padding: 28px; text-align: center; color: var(--muted); }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; text-align: center; }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0; }
.pager a, .pager .current { padding: 6px 12px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.pager a:hover { border-color: var(--accent); }
.pager .current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.prose { line-height: 1.7; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose h2:first-child, .prose p:first-child { margin-top: 0; }
.prose code { padding: 1px 6px; border-radius: 5px; background: var(--surface-3); font-size: .92em; }
.prose blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.prose ul, .prose ol { padding-left: 22px; }

/* ---------- Footer ---------- */
.footer {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted); font-size: 13px;
}
.footer strong { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
    .sidebar-toggle { display: inline-flex; }
    .sidebar {
        position: fixed; left: 0; top: var(--topbar-h); z-index: 35;
        transform: translateX(-100%); transition: transform .2s ease;
    }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop {
        display: block; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 30;
        background: rgba(0, 0, 0, 0.55);
    }
    body.sidebar-open { overflow: hidden; }
}
@media (max-width: 640px) {
    .topbar { gap: 6px; padding: 0 8px; }
    .brand-name, .hide-sm { display: none; }
    .search { margin-left: 4px; }
    .content { padding: 16px 12px 32px; }
    .card { padding: 16px; }
    .notif-menu { width: calc(100vw - 24px); right: -60px; }
}

/* ---------- Home ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    background: linear-gradient(120deg, rgba(225, 6, 0, 0.18), var(--surface) 55%); border-color: rgba(225, 6, 0, 0.35); }
.hero h1 { font-size: 28px; }
.hero p { margin: 0; }
.connect { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.connect-addr { padding: 8px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-grid .card { margin: 0; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-label .icon { color: var(--accent); }
.stat-value { font-size: 34px; font-weight: 700; line-height: 1.15; }
.stat-value small { font-size: 18px; color: var(--muted); font-weight: 500; }
.stat-sub { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.on { background: var(--success); box-shadow: 0 0 0 3px rgba(52, 196, 106, 0.2); }
.status-dot.off { background: var(--accent); }

.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card h2 { margin: 0 0 12px; }
.card-head h2 { margin: 0; }
.chart-box { position: relative; height: 280px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col .card { margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.facts div { padding: 10px 12px; background: var(--surface-2); border-radius: 8px; }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.link-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); background: var(--surface-2); }
.link-list a:hover { background: var(--accent-soft); color: #fff; }
.link-list .icon { color: var(--accent); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.video { margin: 0; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }
.video figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* Tabele (lista de comenzi și listele din fazele următoare) */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); white-space: nowrap; }
.table tr:hover td { background: var(--surface-2); }
.table code { white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.toc a { padding: 6px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 14px; }
.toc a:hover { border-color: var(--accent); }

@media (max-width: 960px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .stat-grid { grid-template-columns: 1fr; }
    .link-list, .facts { grid-template-columns: 1fr; }
    .hero h1 { font-size: 22px; }
    .connect { width: 100%; }
    .connect-addr { flex: 1; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Jucători și profil ---------- */
.inline-search { display: flex; gap: 8px; }
.inline-search input {
    min-width: 0; flex: 1; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface-2); color: var(--text); font: inherit; outline: none;
}
.inline-search input:focus { border-color: var(--accent); }
.inline-search.wide { max-width: 560px; margin-bottom: 18px; }

.player-link { color: var(--text); font-weight: 600; }
.player-link:hover { color: var(--accent); }
.table td .role { margin-left: 6px; }
.status-dot.idle { background: #55555f; }
.faction-tag {
    --fc: var(--muted);
    display: inline-block; padding: 2px 9px; border-radius: 10px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    color: var(--fc); background: color-mix(in srgb, var(--fc) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--fc) 35%, transparent);
}
.ping { font-variant-numeric: tabular-nums; }
.ping.good { color: var(--success); }
.ping.ok { color: var(--warning); }
.ping.bad { color: var(--accent); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; font-size: 13px; background: var(--surface-3); color: var(--muted); }
.tag-green { background: rgba(52, 196, 106, 0.14); color: #6fdc97; }
.tag-red { background: var(--accent-soft); color: #ff6a63; }
.tag-yellow { background: rgba(242, 181, 28, 0.15); color: #f6cc5c; }

.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-avatar {
    flex-shrink: 0; width: 72px; height: 72px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), #7a0300); color: #fff; font-size: 32px; font-weight: 700;
}
.profile-avatar.has-skin { position: relative; overflow: hidden; }
.profile-avatar .skin-face {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 8%; transform: scale(1.9); transform-origin: 50% 0;
    background: var(--surface-2);
}
.skin-card .skin-figure {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 220px; border-radius: 12px; background: var(--surface-2); overflow: hidden;
}
.skin-card .skin-figure img { max-width: 100%; max-height: 320px; object-fit: contain; display: block; }
.skin-card .skin-missing { display: none; }
.skin-card .skin-figure.img-failed .skin-missing { display: block; }
.skin-card .skin-model { margin: 10px 0 0; text-align: center; }
.profile-main { flex: 1; min-width: 0; }
.profile-main h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.profile-main h1 .role { font-size: 13px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.profile-level { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-radius: 12px; background: var(--surface-2); }
.profile-level strong { font-size: 30px; line-height: 1.1; color: var(--accent); }
.profile-level span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.card h3 { margin: 16px 0 6px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.kv div { padding: 9px 12px; background: var(--surface-2); border-radius: 8px; }
.kv dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kv dd { margin: 2px 0 0; font-weight: 600; }
.kv .private { border: 1px dashed var(--border); }
.private-note { margin: 8px 0 0; }

.skill { padding: 10px 0; border-bottom: 1px solid var(--border); }
.skill:last-child { border-bottom: 0; }
.skill-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.bar { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-bottom: 4px; }
.bar span { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: 4px; }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list .icon { color: var(--accent); }
.plain-list li > span { flex: 1; }
.plate { padding: 2px 8px; border-radius: 5px; background: #f2f2f2; color: #111; font-weight: 700; font-size: 12px; letter-spacing: .05em; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 8px 14px; border-left: 2px solid var(--border); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline li .faction-tag { align-self: flex-start; }

.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.coming { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px; opacity: .7; }

@media (max-width: 960px) {
    .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .profile-head { flex-wrap: wrap; }
    .profile-avatar { width: 56px; height: 56px; font-size: 26px; }
    .kv, .coming-grid { grid-template-columns: 1fr; }
    .page-head .inline-search { width: 100%; }
}

/* ---------- Tichete și discuții ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.filters select {
    padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface); color: var(--text); font: inherit;
}
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); }
.seg-item { padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; }
.seg-item input { display: none; }
.seg-item.active { background: var(--accent); color: #fff; }

.status { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-open, .status-pending { background: rgba(59, 140, 242, 0.18); color: #79b2ff; }
.status-in_progress, .status-test { background: rgba(242, 181, 28, 0.18); color: #f6cc5c; }
.status-closed { background: var(--surface-3); color: var(--muted); }
.status-accepted { background: rgba(52, 196, 106, 0.16); color: #6fdc97; }
.status-rejected { background: var(--accent-soft); color: #ff6a63; }
.status-approved { background: var(--accent-soft); color: #ff6a63; }
.ww-gang { margin-bottom: 14px; }
.ww-gang-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.status-expired, .status-lifted { background: var(--surface-3); color: var(--muted); }
.status-lg { padding: 5px 14px; font-size: 14px; }

.row-link { color: var(--text); font-weight: 600; }
.row-link:hover { color: var(--accent); }
.table-click tbody tr { cursor: default; }

.form-card { max-width: 760px; }
.form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form-row .btn { margin-left: auto; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.upload input[type=file] { padding: 8px; }
.upload input[type=file]::file-selector-button {
    margin-right: 10px; padding: 6px 12px; border: 0; border-radius: 6px;
    background: var(--surface-3); color: var(--text); font: inherit; cursor: pointer;
}
.counter { align-self: flex-end; margin-top: -8px; font-size: 12px; }

.thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.thread .card { margin: 0; }
.msg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.msg-staff { border-color: rgba(225, 6, 0, 0.35); }
.msg-staff .msg-head { background: linear-gradient(90deg, rgba(225, 6, 0, 0.14), transparent); }
.msg-internal { border-style: dashed; border-color: rgba(242, 181, 28, 0.5); }
.msg-internal .msg-head { background: rgba(242, 181, 28, 0.08); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.msg-date { margin-left: auto; }
.msg-body { padding: 14px 16px; line-height: 1.6; overflow-wrap: anywhere; }
.msg-files { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 16px 14px; }
.msg-files img { width: 140px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
.msg-files a:hover img { border-color: var(--accent); }
.avatar-sm { width: 26px; height: 26px; font-size: 13px; }

.thread-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
.side-list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.side-list dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.side-list dt:empty { display: none; }
.side-list dd { margin: 2px 0 0; }
.side-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.side-actions form { margin: 0; }

@media (max-width: 960px) {
    .thread-layout { grid-template-columns: 1fr; }
    .thread-side { position: static; order: -1; }
}

/* ---------- Reclamații ---------- */
.type-picker { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-picker legend { font-weight: 500; margin-bottom: 6px; padding: 0; }
.type-option { flex-direction: row !important; align-items: flex-start; gap: 10px !important; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.type-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.type-option input { margin-top: 3px; accent-color: var(--accent); }
.type-option span { display: flex; flex-direction: column; gap: 3px; }
.type-option small { font-weight: 400; line-height: 1.35; }
.ac-field { position: relative; }
.ac-field .search-results { top: 100%; margin-top: 4px; z-index: 5; }

.type-player { background: rgba(59, 140, 242, 0.16); color: #79b2ff; }
.type-faction { background: rgba(242, 181, 28, 0.15); color: #f6cc5c; }
.type-staff { background: var(--accent-soft); color: #ff6a63; }

.evidence { padding: 0 16px 14px; }
.evidence ul { margin: 6px 0 0; padding-left: 18px; }
.evidence li { overflow-wrap: anywhere; }
.verdict { border-left: 4px solid var(--muted); }
.verdict h2 { margin-bottom: 6px; }
.verdict-accepted { border-left-color: var(--success); }
.verdict-rejected { border-left-color: var(--accent); }
.verdict-form { border-color: rgba(225, 6, 0, 0.35); }
.seg-verdict { align-self: flex-start; }
.thread-title { margin: 8px 0 0; font-size: 18px; }
.msg-side-target { border-color: rgba(242, 181, 28, 0.4); }
.msg-side-staff { border-color: rgba(225, 6, 0, 0.35); }
.msg-side-staff .msg-head { background: linear-gradient(90deg, rgba(225, 6, 0, 0.14), transparent); }
.msg-side-leader { border-color: rgba(52, 196, 106, 0.35); }
.profile-report { align-self: flex-start; }

@media (max-width: 640px) {
    .type-picker { grid-template-columns: 1fr; }
}

/* ---------- Unban ---------- */
.banned-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ban-card { border-color: rgba(225, 6, 0, 0.35); }
.ban-box { margin-bottom: 14px; }
.ban-box .wide { grid-column: 1 / -1; }

/* ---------- Facțiuni ---------- */
.faction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.faction-grid .card { margin: 0; }
.faction-card { --fc: var(--accent); border-top: 3px solid var(--fc); display: flex; flex-direction: column; gap: 12px; }
.faction-card header { display: flex; align-items: flex-start; gap: 10px; }
.faction-card header > div { flex: 1; }
.faction-card h2 { margin: 0; font-size: 18px; }
.faction-card h2 a { color: var(--text); }
.faction-card h2 a:hover { color: var(--fc); }
.faction-card h3 { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.faction-dot { display: inline-block; width: 12px; height: 12px; margin-top: 6px; margin-right: 8px; border-radius: 50%; background: var(--fc, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fc, var(--accent)) 25%, transparent); flex-shrink: 0; }
.faction-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.faction-stats div { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.faction-stats dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.faction-stats dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.faction-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.faction-hero { --fc: var(--accent); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px;
    border-top: 3px solid var(--fc); background: linear-gradient(120deg, color-mix(in srgb, var(--fc) 14%, transparent), var(--surface) 55%); }
.faction-hero h1 { display: flex; align-items: center; margin-top: 4px; }
.faction-hero .faction-dot { margin-top: 0; }
.card-pad { margin: 0; padding: 16px 20px 12px; }
.btn .badge { background: #fff; color: var(--accent); }

.row-actions { position: relative; }
.row-actions > summary { list-style: none; }
.row-actions > summary::-webkit-details-marker { display: none; }
.row-actions-menu {
    /* în flux (nu absolut): tabelul are overflow-x și ar tăia un meniu suprapus */
    margin-top: 8px; width: 330px; max-width: 75vw;
    display: flex; flex-direction: column; gap: 8px; padding: 10px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.inline-form { display: flex; gap: 6px; margin: 0; }
.inline-form input, .inline-form select {
    flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px;
    background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
}
.inline-form .btn { white-space: nowrap; }
.btn-danger { background: #7a0300; }
.btn-danger:hover { background: var(--accent); }

.qa { margin: 0; }
.qa dt { font-weight: 600; margin-top: 14px; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 6px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); overflow-wrap: anywhere; }

.table tfoot th { background: var(--surface-2); color: var(--text); }
.row-dim td { opacity: .55; }

/* ---------- Staff ---------- */
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.text-warn { color: var(--warning); font-weight: 700; }
a.faction-tag:hover { filter: brightness(1.2); }
.table td:has(> .status-dot) { white-space: nowrap; }

/* ---------- Mafii și războaie ---------- */
.kv .wide { grid-column: 1 / -1; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; margin-bottom: 18px; }
.map-layout .card { margin: 0; }
.map-card { padding: 10px; background: #0a0d12; }
.turf-map { display: block; width: 100%; height: auto; max-height: 72vh; }
.turf-map .grid line { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1.5; }
.turf rect { fill-opacity: 0.42; stroke: rgba(0, 0, 0, 0.75); stroke-width: 3; transition: fill-opacity .15s; }
.turf:hover rect { fill-opacity: 0.7; }
.turf text { fill: #fff; text-anchor: middle; font-weight: 700; paint-order: stroke; stroke: rgba(0, 0, 0, 0.8); stroke-width: 4px; pointer-events: none; }
.turf-active rect { stroke: #fff; stroke-width: 8; animation: turfPulse 1s ease-in-out infinite alternate; }
@keyframes turfPulse { from { fill-opacity: 0.35; } to { fill-opacity: 0.85; } }

.map-legend h2 { margin-bottom: 10px; }
.legend-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.legend-row:last-of-type { border-bottom: 0; }
.legend-swatch { --fc: var(--muted); width: 18px; height: 18px; margin-top: 3px; border-radius: 5px; background: var(--fc); flex-shrink: 0; }

.war-live { display: flex; align-items: center; gap: 8px; color: var(--text); }
.war-live:hover { color: var(--text); background: rgba(225, 6, 0, 0.22); }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: livePulse 1s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(225, 6, 0, 0.25); } }
.war-active { border-color: rgba(225, 6, 0, 0.45); }
.war-live-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.versus { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.versus .faction-tag { font-size: 16px; padding: 5px 14px; }
.vs { font-weight: 800; color: var(--accent); }

.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.sb-side { --fc: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 10px;
    background: color-mix(in srgb, var(--fc) 10%, transparent); border: 1px solid color-mix(in srgb, var(--fc) 30%, transparent); }
.sb-side strong { color: var(--fc); font-size: 18px; }
.sb-score { font-size: 40px; font-weight: 800; line-height: 1.1; }
.sb-win { box-shadow: 0 0 0 2px var(--fc); }
.sb-win strong::after { content: ' 🏆'; }
.sb-mid { font-size: 22px; font-weight: 800; color: var(--accent); }

.sort-link { color: inherit; }
.sort-link.active { color: var(--accent); }
.rank-cell { font-weight: 800; color: var(--muted); }
.rank-1 { color: #f6cc5c; }
.rank-2 { color: #d6d6e0; }
.rank-3 { color: #d99a5b; }

@media (max-width: 960px) {
    .map-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .scoreboard { grid-template-columns: 1fr; }
}

/* ---------- Sondaje, update-uri, shop ---------- */
.poll-head, .update-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.poll-head h2, .update-head h2 { margin: 0; flex: 1; }
.poll-results { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.poll-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.poll-results li.mine .bar span { background: var(--success); }
.poll-vote { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.poll-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.poll-option:has(input:checked) { border-color: var(--accent); }
.poll-option input { accent-color: var(--accent); }
.poll-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; }
.poll-admin { display: flex; gap: 12px; }
.poll-admin form { margin: 0; }
.poll-ended { opacity: .85; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 13px; }
.link-btn:hover { color: var(--text); }
.link-btn.danger:hover { color: var(--accent); }
.version { padding: 3px 10px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-cat { margin: 22px 0 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; }
.product-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.product-body { padding: 14px 16px; flex: 1; }
.product-body h3 { margin: 0 0 6px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.price { font-size: 18px; color: var(--accent); }
.btn.disabled { opacity: .6; cursor: default; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.product-body h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); text-transform: none; letter-spacing: 0; }

/* ---------- Statistici ---------- */
a.seg-item { color: var(--muted); }
a.seg-item.active { color: #fff; }
.table td.strong { font-weight: 800; color: var(--text); }
.bar-cell { min-width: 180px; }
.bar-cell .bar { margin-bottom: 2px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-grid .card { margin: 0; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.kpi span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { font-size: 24px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hbars li { display: grid; grid-template-columns: 140px 1fr 50px; align-items: center; gap: 10px; }
.hbars .bar { margin: 0; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.hbar-n { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.filters .inline-search { flex: 1; max-width: 420px; }

/* ---------- Panou admin ---------- */
a.kpi-link { color: var(--text); transition: border-color .15s; }
a.kpi-link:hover { border-color: var(--accent); color: var(--text); }
.admin-actions .inline-form { margin-bottom: 10px; align-items: center; }
.admin-actions .inline-form label { white-space: nowrap; }
.input-days { max-width: 80px; flex: 0 0 80px !important; }
.form-inline-grid { display: grid; grid-template-columns: 1fr 2fr 120px 90px auto; gap: 10px; align-items: end; margin-top: 14px; }
.filter-input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.details-cell { max-width: 420px; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
input[type=color] { width: 70px; height: 38px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
@media (max-width: 960px) { .form-inline-grid { grid-template-columns: 1fr; } }

/* ---------- Clanuri ---------- */
.clan-tag { --fc: var(--muted); color: var(--fc); font-weight: 800; letter-spacing: .02em; }
a.clan-tag:hover { color: var(--fc); filter: brightness(1.2); }
.clan-tag.big { font-size: inherit; }
.clan-progress { display: flex; flex-direction: column; gap: 4px; min-width: 260px; }
.clan-progress .bar { height: 9px; }
.clan-progress .bar span { background: var(--fc, var(--accent)); }
a.clan-card { opacity: 1; color: var(--text); }
a.clan-card:hover { border-color: var(--accent); color: var(--text); }
.alliance-clans { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.alliance-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.spray-point circle { fill-opacity: 0.85; stroke: rgba(0, 0, 0, 0.7); stroke-width: 8; }
.spray-point:hover circle { fill-opacity: 1; stroke: #fff; }
.spray-point text { fill: #fff; text-anchor: middle; font-weight: 700; paint-order: stroke; stroke: rgba(0, 0, 0, 0.85); stroke-width: 10px; pointer-events: none; }
.spray-point .tag-label { stroke-width: 6px; }

/* ---------- Calibrarea hărții ---------- */
.steps { margin: 8px 0 14px; padding-left: 20px; line-height: 1.7; }
.map-status { align-self: end; }
.calib-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calib-point { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.calib-point legend { padding: 0 6px; }
.map-calib-wrap { position: relative; display: inline-block; max-width: 100%; margin-top: 14px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.map-calib-wrap img { display: block; max-width: 100%; height: auto; cursor: crosshair; }
.calib-marker, .calib-dot { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.calib-marker { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
.calib-dot { width: 10px; height: 10px; border-radius: 50%; background: #F1C40F; box-shadow: 0 0 0 2px #000; }
@media (max-width: 640px) { .calib-points { grid-template-columns: 1fr; } }

/* ---------- Achievements ---------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ach-grid .card { margin: 0; }
.ach { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-color: rgba(241, 196, 15, 0.35); }
.ach-head { display: flex; align-items: center; gap: 8px; }
.ach-head .icon { color: #F1C40F; }
.ach-rarity { color: #F1C40F; }
.ach-locked { opacity: .5; filter: grayscale(1); }
.ach-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ach-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600;
    background: rgba(241, 196, 15, 0.14); color: #f6cc5c; border: 1px solid rgba(241, 196, 15, 0.3); }
.ach-badge .icon { width: 13px; height: 13px; }
.ref-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }


/* ==========================================================================
   Aspect „încadrat”: banner cu dealurile RED-LINE, bara de căutare sub el,
   meniul din stânga ca un card, iconițe colorate pe grupe (din 14.11.2026).
   ========================================================================== */
body {
    background:
        radial-gradient(1200px 500px at 50% -120px, rgba(156, 31, 77, 0.28), transparent 70%),
        radial-gradient(900px 600px at 100% 30%, rgba(225, 6, 0, 0.06), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
.frame { max-width: 1320px; margin: 0 auto; padding: 0 14px 10px; }

/* Bannerul: vezi tema „Los Santos la apus” de la finalul fișierului. */
.site-banner { position: relative; display: block; overflow: hidden; }
/* Poza are deja logo-ul și numele serverului: textul peste ea rămâne doar pentru cititoarele de ecran. */
.site-banner-brand {
    position: absolute; clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}

/* Bara de sus: sub banner, în cadru */
.topbar {
    position: sticky; top: 0;
    margin-top: 12px;
    border: 1px solid var(--border); border-bottom: 2px solid var(--accent);
    border-radius: 12px;
    background: rgba(21, 21, 26, 0.92); backdrop-filter: blur(10px);
}
.topbar .brand-name { display: none; }

/* Meniul și conținutul */
.shell { gap: 16px; margin-top: 16px; min-height: auto; }
.sidebar {
    top: calc(var(--topbar-h) + 14px);
    height: auto; max-height: calc(100vh - var(--topbar-h) - 28px);
    align-self: flex-start;
    border: 1px solid var(--border); border-radius: 12px;
}
.content { padding: 0 0 30px; max-width: none; }
.footer { border-radius: 12px; }

/* Iconițe colorate pe grupe */
.nav-group { --gc: var(--accent); }
.nav-group[data-group="general"]   { --gc: #ff4d5e; }
.nav-group[data-group="support"]   { --gc: #b16cff; }
.nav-group[data-group="community"] { --gc: #4da3ff; }
.nav-group[data-group="staff"]     { --gc: #2fd0a0; }
.nav-group[data-group="wars"]      { --gc: #7ad84d; }
.nav-group[data-group="clans"]     { --gc: #2ec27e; }
.nav-group[data-group="stats"]     { --gc: #f2c94c; }
.nav-group[data-group="shop"]      { --gc: #ff9f43; }
.nav-group[data-group="admin"]     { --gc: #ff6b6b; }
.nav-group > summary .icon:first-child,
.nav-link .icon {
    color: var(--gc);
}
.nav-link .icon {
    width: 28px; height: 28px; padding: 5px; border-radius: 8px;
    background: color-mix(in srgb, var(--gc) 14%, transparent);
}
.nav-link { padding: 5px 10px 5px 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.nav-link.active { background: color-mix(in srgb, var(--gc) 16%, transparent); box-shadow: inset 3px 0 0 var(--gc); }
.nav-link.active .icon { color: var(--gc); background: color-mix(in srgb, var(--gc) 26%, transparent); }
.nav-link .badge { background: #2a5cff; }

@media (max-width: 960px) {
    .sidebar { top: var(--topbar-h); max-height: none; height: calc(100vh - var(--topbar-h)); border-radius: 0; }
    .shell { gap: 0; }
}
@media (max-width: 640px) {
    .frame { padding: 0 8px 8px; }
}
