/* ============================================================
   DESIGN SYSTEM v4 — Gaming SaaS (Discord / Linear vibe)
   Dark nativ #0B0F17 / #151D2A, accente violet + cyan + mint,
   rounded-xl, glassmorphism fin, glow discret doar pe elementele cheie.
   Tokenii sunt denumiti dupa scala Tailwind (slate / violet / cyan ...)
   ca sa poata fi mutati 1:1 intr-un tailwind.config daca se migreaza.
   ============================================================ */

:root {
    /* --- Tokeni stil Tailwind --- */
    --slate-950: #0B0F17;
    --slate-900: #0F1520;
    --slate-800: #151D2A;
    --slate-700: #1E2838;
    --slate-600: #2B374B;
    --slate-500: #4B5870;
    --slate-400: #8794AB;
    --slate-300: #B3BDCE;
    --slate-100: #EEF1F7;

    --violet-500: #8B5CF6;
    --violet-400: #A78BFA;
    --indigo-500: #6366F1;
    --indigo-400: #818CF8;
    --cyan-400:   #22D3EE;
    --cyan-300:   #67E8F9;
    --emerald-400:#34D399;
    --rose-400:   #FB7185;
    --amber-400:  #FBBF24;

    --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
    --space-4: 16px; --space-6: 24px; --space-8: 32px;

    --radius-sm: 8px;
    --radius-md: 12px;   /* rounded-xl */
    --radius-lg: 16px;   /* rounded-2xl */

    /* --- Aliasuri semantice (folosite de paginile existente) --- */
    --bg:         var(--slate-950);
    --bg-raised:  var(--slate-800);
    --bg-overlay: var(--slate-700);
    --bg-inset:   #0E1420;

    --border:        rgba(255,255,255,0.07);
    --border-strong: rgba(255,255,255,0.13);

    --text:       var(--slate-100);
    --text-dim:   var(--slate-400);
    --text-faint: var(--slate-500);
    --text-muted: var(--text-dim);

    --indigo:       var(--violet-500);
    --indigo-light: var(--violet-400);
    --indigo-dim:   rgba(139,92,246,0.15);

    --teal:        var(--emerald-400);   /* status online / "add" */
    --teal-dim:    rgba(52,211,153,0.13);
    --red:         var(--rose-400);
    --red-dim:     rgba(251,113,133,0.13);
    --cyan-dim:    rgba(34,211,238,0.13);

    --amber:        #F59E0B;
    --amber-light:  var(--amber-400);
    --amber-dim:    rgba(251,191,36,0.13);

    --accent: var(--violet-500);
    --accent-soft: var(--indigo-dim);
    --green: var(--teal);

    --glass: linear-gradient(180deg, rgba(25,34,50,0.80), rgba(21,29,42,0.66));
    --glow-violet: 0 0 24px -6px rgba(139,92,246,0.55);
    --glow-cyan:   0 0 24px -6px rgba(34,211,238,0.50);
    --glow-mint:   0 0 18px -4px rgba(52,211,153,0.65);

    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;

    --sidebar-w: 252px;
    --sidebar-w-collapsed: 76px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html { background: var(--bg); }

body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background:
        radial-gradient(900px 520px at 8% -8%, rgba(139,92,246,0.13), transparent 60%),
        radial-gradient(800px 480px at 100% 105%, rgba(34,211,238,0.08), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

a { color: var(--indigo-light); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--violet-500); outline-offset: 2px; border-radius: 6px; }

code {
    font-family: var(--font-mono);
    background: var(--bg-inset);
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.92em;
    border: 1px solid var(--border);
}

.ico { flex-shrink: 0; }

* { scrollbar-width: thin; scrollbar-color: var(--slate-600) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-600); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-500); background-clip: padding-box; }

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

/* ---------------------------------------------------------- */
/* Sidebar                                                      */
/* ---------------------------------------------------------- */
.sidebar {
    width: var(--sidebar-w);
    background: rgba(11,15,23,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 40;
    transition: width 0.2s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.4px;
    margin: 2px 0 26px;
    padding: 0 6px;
    color: var(--text);
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--violet-500), var(--cyan-400));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
    flex-shrink: 0;
    box-shadow: var(--glow-violet);
}

.nav-section-title {
    font-size: 10.5px;
    color: var(--text-faint);
    letter-spacing: 0.9px;
    margin: 22px 10px 8px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.server-label {
    font-size: 12px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin: 2px 10px 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    transition: background 0.14s ease, color 0.14s ease;
}
.nav-link .ico { opacity: 0.85; }
.nav-link:hover { background: rgba(255,255,255,0.045); text-decoration: none; color: var(--text); }
.nav-link:active { background: rgba(255,255,255,0.07); }

.nav-link.active {
    background: linear-gradient(90deg, rgba(139,92,246,0.20), rgba(139,92,246,0.05));
    color: var(--text);
}
.nav-link.active::before {
    content: "";
    position: absolute; left: -14px; top: 8px; bottom: 8px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--violet-500);
    box-shadow: 0 0 10px rgba(139,92,246,0.9);
}
.nav-link.active .ico { opacity: 1; color: var(--violet-400); }

/* compat cu vechile variante "rich" */
.nav-link-rich { align-items: center; }
.nav-link-icon { display: flex; }
.nav-link-sub { display: none; }

.nav-label { overflow: hidden; text-overflow: ellipsis; }

/* --- Sidebar pliat (desktop) --- */
body.sb-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
body.sb-collapsed .nav-label,
body.sb-collapsed .brand-text,
body.sb-collapsed .server-label { display: none; }
body.sb-collapsed .nav-section-title {
    font-size: 0; margin: 14px 12px 10px; height: 1px; background: var(--border);
}
body.sb-collapsed .nav-link { justify-content: center; padding: 11px 0; }
body.sb-collapsed .brand { justify-content: center; padding: 0; }
body.sb-collapsed .nav-link.active::before { left: -14px; }

/* ---------------------------------------------------------- */
/* Main / topbar                                                */
/* ---------------------------------------------------------- */
.main { flex: 1; min-width: 0; }

.topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 28px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(11,15,23,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-height: 62px;
}

.icon-btn {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.only-mobile { display: none; }

.topbar-spacer { flex: 1; }

.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); }
.topbar-user a, .topbar-user button.linklike {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 0;
    color: var(--indigo-light); font-size: 13px; font-weight: 600; font-family: inherit;
}
.topbar-user a:hover, .topbar-user button.linklike:hover { color: var(--text); text-decoration: none; }

/* --- Widget status server (top bar) --- */
.srv-widget {
    display: flex; align-items: center; gap: 14px;
    padding: 6px 14px 6px 10px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 0;
}
.srv-widget .srv-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.srv-widget .srv-name { font-weight: 700; font-size: 13.5px; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-widget .srv-addr { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }
.srv-widget .srv-meta { display: flex; gap: 6px; }

.srv-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    font-size: 11.5px; font-weight: 600; color: var(--text-dim);
    white-space: nowrap;
}
.srv-chip strong { color: var(--text); font-weight: 700; font-family: var(--font-mono); font-size: 11.5px; }
.srv-chip.online  { color: var(--teal); background: var(--teal-dim); border-color: rgba(52,211,153,0.25); }
.srv-chip.offline { color: var(--red);  background: var(--red-dim);  border-color: rgba(251,113,133,0.25); }

.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal);
    display: inline-block;
    box-shadow: var(--glow-mint);
    animation: pulse-ring 2.2s infinite;
}
.live-dot.off { background: var(--red); box-shadow: none; animation: none; }

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.content { padding: 28px 28px 64px; max-width: 1480px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.3px; }
.page-sub { color: var(--text-dim); font-size: 13.5px; margin: 5px 0 0; }

/* compat: vechea bara de status (nu mai e folosita in layout) */
.status-strip { display: none; }

/* ---------------------------------------------------------- */
/* Cards (KPI)                                                   */
/* ---------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.card {
    position: relative;
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.16s ease, transform 0.16s ease;
}
.card::after {                       /* lumina difuza din coltul dreapta-sus */
    content: "";
    position: absolute; right: -40px; top: -50px;
    width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(closest-side, var(--kpi-glow, rgba(139,92,246,0.20)), transparent);
    pointer-events: none;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.card .value { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.card .label { font-size: 12.5px; color: var(--text-dim); margin-top: 7px; font-weight: 500; }
.card .sub { font-size: 11.5px; color: var(--text-faint); margin-top: 8px; }
.card .icon {
    position: relative; z-index: 1;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--indigo-dim);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--violet-400);
    box-shadow: var(--glow-violet);
}
.card.kpi-cyan  { --kpi-glow: rgba(34,211,238,0.17); }
.card.kpi-cyan .icon  { background: var(--cyan-dim); color: var(--cyan-400); box-shadow: var(--glow-cyan); }
.card.kpi-mint  { --kpi-glow: rgba(52,211,153,0.16); }
.card.kpi-mint .icon  { background: var(--teal-dim); color: var(--emerald-400); box-shadow: var(--glow-mint); }

/* ---------------------------------------------------------- */
/* Panels                                                        */
/* ---------------------------------------------------------- */
.panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.panels.panels-3-2 { grid-template-columns: 3fr 2fr; }

.panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    min-width: 0;
    transition: border-color 0.16s ease;
}
.panel:hover { border-color: var(--border-strong); }

.panel h2 {
    display: flex; align-items: center; gap: 9px;
    font-size: 12px;
    margin: 0 0 16px;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.panel h2 .ico { color: var(--violet-400); }
.panel h2 .h2-right { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-faint); font-size: 12px; }

.chart-wrap { position: relative; height: 250px; width: 100%; }

.stat-line { font-size: 13.5px; margin-bottom: 11px; color: var(--text-dim); line-height: 1.5; }
.stat-line strong { color: var(--text); font-weight: 600; }

/* --- Server health --- */
.health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.health-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 0;
}
.health-item .hi-ico {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--indigo-dim); color: var(--violet-400);
}
.health-item.cyan .hi-ico  { background: var(--cyan-dim); color: var(--cyan-400); }
.health-item.mint .hi-ico  { background: var(--teal-dim); color: var(--emerald-400); }
.health-item.amber .hi-ico { background: var(--amber-dim); color: var(--amber-400); }
.health-item .hi-label { font-size: 11px; color: var(--text-faint); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.health-item .hi-value { font-size: 14.5px; font-weight: 700; margin-top: 2px; word-break: break-all; }
.health-item.wide { grid-column: 1 / -1; }
.health-foot { margin-top: 12px; font-size: 12px; color: var(--text-faint); }

/* --- Top players --- */
.top-list { display: grid; gap: 10px; }
.top-item {
    display: flex; align-items: center; gap: 13px;
    padding: 11px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.14s ease, background 0.14s ease;
    color: inherit;
}
.top-item:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.05); text-decoration: none; }
.top-rank {
    width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 800; color: var(--text-dim);
    background: rgba(255,255,255,0.05);
}
.top-item.r1 .top-rank { background: rgba(251,191,36,0.16); color: var(--amber-400); box-shadow: 0 0 14px -4px rgba(251,191,36,0.6); }
.top-item.r2 .top-rank { background: rgba(179,189,206,0.15); color: var(--slate-300); }
.top-item.r3 .top-rank { background: rgba(251,146,60,0.15); color: #FB923C; }
.top-avatar {
    width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: #fff;
    background: linear-gradient(135deg, var(--violet-500), var(--indigo-500));
}
.top-info { min-width: 0; flex: 1; }
.top-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.top-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.top-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); margin-top: 7px; overflow: hidden; }
.top-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet-500), var(--cyan-400)); }
.top-lvl { font-size: 11.5px; font-weight: 800; color: var(--violet-400); background: var(--indigo-dim); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* --- Vizitatori pe tari --- */
.country-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.country-row .flag { font-size: 18px; width: 26px; text-align: center; }
.country-row .bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.country-row .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan-400), var(--violet-500)); border-radius: 999px; }
.country-row strong { font-family: var(--font-mono); font-size: 12.5px; }

/* ---------------------------------------------------------- */
/* Tables                                                        */
/* ---------------------------------------------------------- */
table.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

table.data-table th, table.data-table td {
    text-align: left;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table.data-table th {
    color: var(--text-faint);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.025);
}

table.data-table tbody tr { transition: background 0.12s ease; }
table.data-table tbody tr:hover { background: rgba(139,92,246,0.07); }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table td a { font-weight: 600; }

.mono, .uid { color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge-add    { background: rgba(110,231,183,0.12); color: #86EFAC; border-color: rgba(110,231,183,0.22); }
.badge-remove { background: rgba(252,165,165,0.12); color: #FCA5A5; border-color: rgba(252,165,165,0.22); }
.badge-muted  { background: rgba(255,255,255,0.04); color: var(--text-dim); border-color: var(--border); }
.badge-muted::before { display: none; }
.badge-info   { background: var(--cyan-dim); color: var(--cyan-300); border-color: rgba(34,211,238,0.22); }
.badge-violet { background: var(--indigo-dim); color: var(--violet-400); border-color: rgba(139,92,246,0.28); }
.badge-gold   { background: var(--amber-dim); color: var(--amber-400); border-color: rgba(251,191,36,0.28); }
.badge-gold::before, .badge-violet::before, .badge-info::before { display: none; }

.table-wrap {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    overflow-x: auto;
}

/* tabel "card" complet: header + toolbar + tabel */
.table-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}
.table-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.table-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.1px; display: flex; align-items: center; gap: 10px; }
.table-head h2 .ico { color: var(--violet-400); }
.table-head .th-sub { font-size: 12.5px; color: var(--text-dim); font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* toolbar: cautare + filtre rapide */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search {
    position: relative; display: flex; align-items: center;
}
.search .ico { position: absolute; left: 11px; color: var(--text-faint); pointer-events: none; }
.search input {
    width: 240px; max-width: 100%;
    padding: 9px 12px 9px 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-inset);
    color: var(--text);
    font-size: 13px; font-family: inherit;
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.search input::placeholder { color: var(--text-faint); }
.search input:hover { border-color: var(--border-strong); }
.search input:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 3px rgba(139,92,246,0.18); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text-dim);
    font-size: 12.5px; font-weight: 600; font-family: inherit;
    cursor: pointer;
    transition: all 0.14s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip:active { transform: scale(0.97); }
.chip.active { background: var(--indigo-dim); border-color: rgba(139,92,246,0.45); color: var(--violet-400); box-shadow: var(--glow-violet); }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }

.select {
    padding: 8px 30px 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-inset);
    color: var(--text);
    font-size: 13px; font-family: inherit;
    cursor: pointer;
}
.select:focus { outline: none; border-color: var(--violet-500); }

/* ---------------------------------------------------------- */
/* Login                                                          */
/* ---------------------------------------------------------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 36px 34px;
    width: 360px; max-width: 100%;
    box-shadow: 0 30px 80px -30px rgba(139,92,246,0.35);
}

.login-box h1 { font-size: 18px; margin: 0 0 24px; text-align: center; font-weight: 800; letter-spacing: 0.5px; }

.login-box input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-inset);
    color: var(--text);
    margin-bottom: 14px;
    font-size: 14px; font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-box input:focus { border-color: var(--violet-500); outline: none; box-shadow: 0 0 0 3px rgba(139,92,246,0.18); }

.login-box button {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--violet-500), var(--indigo-500));
    color: #fff;
    font-size: 14px;
    font-weight: 700; font-family: inherit;
    cursor: pointer;
    transition: filter 0.12s ease, transform 0.12s ease;
}
.login-box button:hover { filter: brightness(1.12); }
.login-box button:active { transform: scale(0.99); }

.error-text { color: var(--red); font-size: 13px; margin-bottom: 12px; }

/* ---------------------------------------------------------- */
/* Buttons / forms                                               */
/* ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 600; font-family: inherit;
    cursor: pointer;
    transition: filter 0.12s ease, background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }

.btn-primary { background: linear-gradient(135deg, var(--violet-500), var(--indigo-500)); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); text-decoration: none; }

.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }

.btn-link { background: none; border: none; padding: 0; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; }
.btn-link.btn-teal { color: var(--indigo-light); }
.btn-link.btn-red { color: var(--red); }
.btn-link:hover { text-decoration: underline; }

.btn-block { width: 100%; }

.settings-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 16px;
    align-items: start;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 18px;
}
.settings-grid .field-wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .settings-grid { grid-template-columns: 1fr; }
}

.field { margin-bottom: 17px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }

.input, select.input, textarea.input {
    width: 100%;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-inset);
    color: var(--text);
    font-size: 13.5px; font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: var(--border-strong); }
.input:focus { border-color: var(--violet-500); outline: none; box-shadow: 0 0 0 3px rgba(139,92,246,0.18); }
.input:disabled { opacity: 0.5; cursor: not-allowed; }
textarea.input { resize: vertical; font-family: var(--font-mono); }

.form-row { display: flex; gap: 10px; align-items: center; }

.empty-state { padding: 40px 20px; text-align: center; color: var(--text-faint); font-size: 13.5px; }
.empty-state strong { display: block; color: var(--text-dim); font-size: 14.5px; margin-bottom: 5px; font-weight: 600; }

/* ---------------------------------------------------------- */
/* Skeleton loading                                              */
/* ---------------------------------------------------------- */
.skeleton {
    position: relative; overflow: hidden;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    color: transparent !important;
}
.skeleton::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.chart-wrap.is-loading::before {
    content: ""; position: absolute; inset: 0; border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    animation: shimmer-pulse 1.4s ease-in-out infinite;
}
@keyframes shimmer-pulse { 50% { opacity: 0.4; } }

/* ---------------------------------------------------------- */
/* Channel tree                                                  */
/* ---------------------------------------------------------- */
.channel-node-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
}
.channel-node-row:hover { background: rgba(255,255,255,0.035); }
.channel-node-row .ch-icon { color: var(--text-faint); flex-shrink: 0; }
.channel-node-row .ch-name { font-family: var(--font-ui); flex: 1; }
.channel-node-row .ch-actions { white-space: nowrap; display: flex; gap: 14px; align-items: center; }

.channel-children {
    margin-left: 22px;
    border-left: 1px solid var(--border);
    padding-left: 14px;
}

.channel-edit-row { padding: 8px 10px 10px 34px; }

/* ---------------------------------------------------------- */
/* Shop grid                                                     */
/* ---------------------------------------------------------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

.shop-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: border-color 0.16s ease, transform 0.16s ease;
}
.shop-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-2px); }
.shop-card.locked { opacity: 0.5; }

.shop-card .level-num { font-size: 12px; color: var(--text-dim); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 10px; }
.shop-card .price { font-size: 25px; font-weight: 800; color: var(--amber-400); letter-spacing: -0.4px; margin-bottom: 4px; }
.shop-card .price-unit { font-size: 12px; color: var(--text-dim); font-weight: 500; margin-bottom: 14px; }
.shop-card .tokens-req { font-size: 12px; color: var(--text-faint); margin-bottom: 14px; }
.shop-card .cmd {
    display: block;
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--violet-400);
    text-align: center;
}

/* ---------------------------------------------------------- */
/* Profil: Gaming Card ID                                        */
/* ---------------------------------------------------------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--text-dim); font-size: 13px; font-weight: 500; }
.back-link:hover { color: var(--text); text-decoration: none; }

.id-card {
    position: relative;
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
}
.id-banner {
    height: 104px;
    background:
        radial-gradient(420px 160px at 12% 0%, rgba(139,92,246,0.55), transparent 70%),
        radial-gradient(420px 160px at 88% 100%, rgba(34,211,238,0.35), transparent 70%),
        linear-gradient(135deg, #1b2036, #131a2b);
    border-bottom: 1px solid var(--border);
}
.id-main { display: flex; gap: 22px; padding: 0 26px 24px; flex-wrap: wrap; align-items: flex-start; }

.id-avatar { position: relative; margin-top: -48px; width: 104px; height: 104px; flex-shrink: 0; border-radius: 26px; background: #151D2A; padding: 3px; background-image: linear-gradient(135deg, #A78BFA, #22D3EE); box-shadow: 0 0 16px rgba(139,92,246,0.4); }
.id-avatar img, .id-avatar-fallback { width: 100%; height: 100%; display: block; border-radius: 23px; object-fit: cover; background: #151D2A; }
.id-avatar-fallback { display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 800; color: #EEF1F7; }
.id-status {
    position: absolute; right: -5px; bottom: -5px;
    width: 18px; height: 18px; border-radius: 50%;
    border: 3px solid #151D2A;
    background: var(--slate-500);
}
.id-status.on { background: var(--teal); box-shadow: var(--glow-mint); }

.id-info { flex: 1; min-width: 240px; padding-top: 14px; }
.id-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 24px; font-weight: 800; letter-spacing: -0.4px; margin: 0; }
.id-desc { color: var(--text-dim); font-size: 13.5px; margin: 6px 0 12px; }
.id-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.id-uid {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 11px; border-radius: var(--radius-sm);
    background: var(--bg-inset); border: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
    max-width: 100%; word-break: break-all;
}

.id-level {
    flex: 1 1 320px; min-width: 260px; max-width: 460px;
    margin-top: 14px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.lvl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lvl-now { font-size: 13px; font-weight: 800; letter-spacing: 0.6px; color: var(--violet-400); text-transform: uppercase; }
.lvl-now b { font-size: 26px; color: var(--text); margin-left: 6px; letter-spacing: -0.5px; }
.lvl-next { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.lvl-next b { color: var(--cyan-400); }
.lvl-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: 12px; color: var(--text-dim); }
.lvl-foot strong { color: var(--text); font-weight: 700; }

.progress-bar {
    position: relative;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}
.progress-bar-fill {
    position: relative;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--violet-500), var(--cyan-400));
    box-shadow: 0 0 14px rgba(139,92,246,0.55);
    min-width: 6px;
    overflow: hidden;
    animation: bar-grow 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.progress-bar-fill::after {            /* reflexie care trece prin bara */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.6s 1s infinite;
}
@keyframes bar-grow { from { width: 0; } }

.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.res {
    display: flex; align-items: center; gap: 13px;
    padding: 16px 18px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.res .res-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--indigo-dim); color: var(--violet-400); flex-shrink: 0; }
.res.gold .res-ico { background: var(--amber-dim); color: var(--amber-400); box-shadow: 0 0 20px -6px rgba(251,191,36,0.6); }
.res.cyan .res-ico { background: var(--cyan-dim); color: var(--cyan-400); box-shadow: var(--glow-cyan); }
.res .res-val { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.res .res-label { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; font-weight: 500; }

.id-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.id-meta > div { padding: 14px 26px; border-right: 1px solid var(--border); }
.id-meta > div:last-child { border-right: none; }
.id-meta span { display: block; font-size: 10.5px; color: var(--text-faint); font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; margin-bottom: 5px; }
.id-meta strong { font-size: 13px; font-weight: 600; font-family: var(--font-mono); }

/* tab-uri */
.stat-tabs {
    display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: nowrap;
    padding: 4px; background: var(--bg-inset); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow-x: auto; width: fit-content; max-width: 100%;
}
.stat-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 600; font-family: inherit;
    cursor: pointer; white-space: nowrap;
    transition: all 0.14s ease;
}
.stat-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.stat-tab:active { transform: scale(0.97); }
.stat-tab.active { background: var(--indigo-dim); border-color: rgba(139,92,246,0.4); color: var(--text); box-shadow: var(--glow-violet); }
.stat-tab:disabled { opacity: 0.4; cursor: not-allowed; }

.section-title { font-size: 12px; margin: 26px 0 12px; color: var(--text-dim); font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; }

.scroll-table { max-height: 380px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.scroll-table table { border: none; }
.scroll-table thead th { position: sticky; top: 0; background: #1a2333; z-index: 1; }

.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.status-online { background: var(--teal); box-shadow: var(--glow-mint); animation: pulse-ring 2.2s infinite; }
.status-offline { background: var(--slate-500); }

.amt-pos { color: var(--teal); font-weight: 700; font-family: var(--font-mono); }
.amt-neg { color: var(--red); font-weight: 700; font-family: var(--font-mono); }

/* compat (clase vechi, nefolosite acum) */
.level-pill { background: var(--indigo-dim); color: var(--violet-400); font-weight: 800; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; letter-spacing: 0.4px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; }
.profile-stat { background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 15px; }
.profile-stat .value { font-size: 19px; font-weight: 700; }
.profile-stat .label { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }

/* ---------------------------------------------------------- */
/* Collapsible sections                                          */
/* ---------------------------------------------------------- */
.collapsible-section {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4px 22px;
    margin-bottom: 16px;
}

.collapsible-section summary {
    cursor: pointer; padding: 15px 0; font-size: 14px; font-weight: 600;
    list-style: none; display: flex; align-items: center; gap: 10px;
    user-select: none; color: var(--text-dim);
}
.collapsible-section summary::-webkit-details-marker { display: none; }
.collapsible-section summary::before { content: "▸"; color: var(--text-faint); transition: transform 0.15s ease; font-size: 11px; }
.collapsible-section[open] summary::before { transform: rotate(90deg); }
.collapsible-section .scroll-table { margin-bottom: 18px; }

.count-badge {
    background: var(--indigo-dim);
    color: var(--violet-400);
    font-size: 11px; font-weight: 700;
    padding: 2px 9px; border-radius: 999px;
}

/* ---------------------------------------------------------- */
/* DataTables (suprascrie jquery.dataTables.min.css, care se    */
/* incarca dupa app.css -> specificitate extra + !important)    */
/* ---------------------------------------------------------- */
div.dataTables_wrapper { color: var(--text); }
div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dataTables_length { padding: 14px 20px 0; }
div.dataTables_wrapper div.dataTables_filter { float: right; }
div.dataTables_wrapper div.dataTables_filter label,
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_info { color: var(--text-dim); font-size: 12.5px; }
div.dataTables_wrapper div.dataTables_filter input,
div.dataTables_wrapper div.dataTables_length select {
    background: var(--bg-inset) !important; color: var(--text) !important;
    border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
    padding: 7px 11px; font-size: 13px; font-family: inherit; margin-left: 8px;
}
div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: var(--violet-500) !important; outline: none; box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
}
div.dataTables_wrapper div.dataTables_info { padding: 16px 20px 18px; }
div.dataTables_wrapper div.dataTables_paginate { padding: 12px 20px 16px; }
div.dataTables_wrapper .dataTables_scroll { margin-top: 10px; }

div.dataTables_wrapper table.dataTable { margin: 12px 0 0 !important; border-bottom: none !important; background: transparent; }
table.dataTable thead th, table.dataTable thead td { border-bottom: 1px solid var(--border) !important; }
table.dataTable.no-footer { border-bottom: none !important; }
table.dataTable tbody tr { background-color: transparent !important; }
table.dataTable thead > tr > th.sorting:before, table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before, table.dataTable thead > tr > th.sorting_desc:after {
    color: var(--violet-400) !important; font-size: 0.75em !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button {
    color: var(--text-dim) !important;
    padding: 6px 12px !important;
    font-size: 12.5px; font-weight: 600;
    border: 1px solid transparent !important;
    border-radius: var(--radius-sm) !important;
    background: transparent !important;
    box-shadow: none !important;
}
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current:hover {
    background: var(--indigo-dim) !important;
    border-color: rgba(139,92,246,0.45) !important;
    color: var(--text) !important;
}
div.dataTables_wrapper div.dataTables_paginate .paginate_button:hover {
    background: rgba(255,255,255,0.06) !important; border-color: var(--border) !important; color: var(--text) !important;
}
div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled:hover {
    color: var(--text-faint) !important; opacity: 0.5; background: transparent !important; border-color: transparent !important;
}

div.dataTables_wrapper .table-scroll table.dataTable { margin: 0 !important; }
div.dataTables_wrapper .table-foot {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
    border-top: 1px solid var(--border);
}
div.dataTables_wrapper .table-foot .dataTables_info,
div.dataTables_wrapper .table-foot .dataTables_paginate { float: none; padding-top: 12px; padding-bottom: 12px; }
.log-name { color: var(--text); font-weight: 600; }


/* ---------------------------------------------------------- */
/* Flash / notice / form-card / check / timeline                 */
/* ---------------------------------------------------------- */
.flash, .notice {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    font-size: 13.5px; line-height: 1.55;
    background: rgba(255,255,255,0.03);
    color: var(--text-dim);
}
.flash .ico, .notice .ico { margin-top: 2px; }
.flash-ok  { background: var(--teal-dim); border-color: rgba(52,211,153,0.28); color: #86EFAC; }
.flash-err { background: var(--red-dim);  border-color: rgba(251,113,133,0.30); color: #FCA5A5; }
.notice { background: var(--cyan-dim); border-color: rgba(34,211,238,0.22); }
.notice .ico { color: var(--cyan-400); }
.notice strong { color: var(--text); }
.notice.warn { background: var(--amber-dim); border-color: rgba(251,191,36,0.25); }
.notice.warn .ico { color: var(--amber-400); }

.check {
    display: flex !important; align-items: center; gap: 9px;
    font-size: 13px; color: var(--text-dim); margin-bottom: 7px !important; font-weight: 500;
    cursor: pointer;
}
.check input { accent-color: var(--violet-500); width: 16px; height: 16px; }

.form-card { max-width: 640px; margin-bottom: 20px; }
.pending-list .stat-line:last-child { margin-bottom: 0; }

.row-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.row-actions form { margin: 0; display: inline; }

.update-item {
    position: relative;
    padding: 18px 20px 18px 24px;
    margin-bottom: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.update-item::before {
    content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--violet-500), var(--cyan-400));
}
.update-item .u-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 6px; }
.update-item .u-title { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.update-item .u-desc { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

.save-bar {
    position: sticky; bottom: 16px; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; margin-top: 8px;
    background: rgba(15,21,32,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px -18px rgba(0,0,0,0.7);
}
.save-bar span { font-size: 13px; color: var(--text-dim); }

.shop-card .shop-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.shop-card .shop-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--amber-dim); color: var(--amber-400); }
.shop-card.locked .shop-ico { background: rgba(255,255,255,0.05); color: var(--text-faint); }
.shop-card:not(.locked) { background: linear-gradient(180deg, rgba(139,92,246,0.10), rgba(21,29,42,0.66)); }

.settings-sections-grid .panel h2 { padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }

/* ---------------------------------------------------------- */
/* Responsive                                                    */
/* ---------------------------------------------------------- */
.sb-overlay { display: none; }

@media (max-width: 1100px) {
    .srv-widget .srv-addr { display: none; }
}

@media (max-width: 900px) {
    .panels, .panels.panels-3-2 { grid-template-columns: 1fr; }
    .only-mobile { display: inline-flex; }
    .only-desktop { display: none !important; }

    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        width: 272px;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        background: rgba(11,15,23,0.96);
    }
    body.sb-open .sidebar { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,0.6); }
    body.sb-open .sb-overlay {
        display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,0.55);
    }
    /* pe mobil ignoram starea "pliat" */
    body.sb-collapsed .sidebar { width: 272px; }
    body.sb-collapsed .nav-label, body.sb-collapsed .brand-text, body.sb-collapsed .server-label { display: initial; }
    body.sb-collapsed .nav-section-title { font-size: 10.5px; height: auto; background: none; margin: 22px 10px 8px; }
    body.sb-collapsed .nav-link { justify-content: flex-start; padding: 9px 11px; }
    body.sb-collapsed .brand { justify-content: flex-start; padding: 0 6px; }

    .topbar { padding: 10px 16px; }
    .content { padding: 20px 16px 56px; }
    .srv-widget .srv-meta .srv-chip.hide-sm { display: none; }
    .id-main { padding: 0 18px 20px; }
    .id-meta > div { padding: 12px 18px; }
}

@media (max-width: 560px) {
    .srv-widget { padding: 5px 10px; gap: 8px; }
    .srv-widget .srv-meta { display: none; }
    .topbar-user .tu-label { display: none; }
    .health-grid { grid-template-columns: 1fr; }
    .search input { width: 100%; }
    .toolbar, .search { width: 100%; }
    .page-title { font-size: 20px; }
    .id-name { font-size: 21px; }
    .id-level { max-width: none; }
    div.dataTables_wrapper div.dataTables_filter { float: none; }
}
