/* ============================================================
   Staff Station — main stylesheet
   Theme variables, layout, components.
   ============================================================ */

:root {
  --bg:       #0a0c12;
  --bg2:      #11131e;
  --bg3:      #181b27;
  --surface:  rgba(20, 23, 36, 0.97);
  --border:   rgba(255, 255, 255, 0.06);
  --border2:  rgba(255, 255, 255, 0.12);

  --accent:   #6c63ff;
  --accent2:  #a78bfa;
  --accent3:  #c4b5fd;
  --teal:     #2dd4bf;
  --gold:     #fbbf24;
  --red:      #f87171;
  --green:    #34d399;

  --text:     #f1f0ff;
  --text2:    #a09dbe;
  --text3:    #5e5c7a;

  --r:        14px;
  --r-sm:     8px;
  --shadow:   0 4px 24px rgba(108, 99, 255, 0.08);

  --font:     'DM Sans', sans-serif;
  --head:     'Syne', sans-serif;
  --mono:     'DM Mono', monospace;

  --sidebar:  260px;
}

.lm {
  --bg:      #f5f4ff;
  --bg2:     #eeedf9;
  --bg3:     #e4e3f5;
  --surface: rgba(255, 255, 255, 0.97);
  --border:  rgba(108, 99, 255, 0.10);
  --border2: rgba(108, 99, 255, 0.20);
  --text:    #1a1730;
  --text2:   #4a4770;
  --text3:   #9997bc;
  --shadow:  0 4px 24px rgba(108, 99, 255, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(108, 99, 255, 0.07), transparent),
    radial-gradient(ellipse 40% 60% at 80% 100%, rgba(45, 212, 191, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Modern animated mode ---------- */
body.modern::before { animation: bgShift 8s ease-in-out infinite alternate; }
@keyframes bgShift {
  0%   { background:
           radial-gradient(ellipse 60% 40% at 20% 0%,   rgba(108, 99, 255, 0.12), transparent),
           radial-gradient(ellipse 40% 60% at 80% 100%, rgba(45, 212, 191, 0.07), transparent); }
  100% { background:
           radial-gradient(ellipse 60% 40% at 80% 100%, rgba(108, 99, 255, 0.12), transparent),
           radial-gradient(ellipse 40% 60% at 20% 0%,   rgba(45, 212, 191, 0.07), transparent); }
}
body.modern .card                  { transition: all .3s cubic-bezier(.4, 0, .2, 1); }
body.modern .card:hover            { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(108, 99, 255, 0.15); }
body.modern .btn-primary           { animation: none; }
body.modern .btn-primary:hover     { box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5); }
body.modern .sidebar-item.active::before { animation: sideGlow 2s ease-in-out infinite alternate; }
@keyframes sideGlow { 0% { opacity: .6; } 100% { opacity: 1; } }
body.modern .stat-val              { animation: countIn .6s ease; }
@keyframes countIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
body.modern .notif                 { backdrop-filter: blur(20px); }
body.modern .header                { backdrop-filter: blur(40px); }
body.modern .sidebar               { backdrop-filter: blur(40px); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 62px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.header-inner {
  height: 62px;
  display: flex; align-items: center;
  padding: 0 20px; gap: 12px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
  width: calc(var(--sidebar) - 20px);
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.logo-name      { font-family: var(--head); font-size: 17px; font-weight: 700; color: var(--text); }
.logo-name span { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.theme-wrap { display: flex; align-items: center; gap: 7px; }
.theme-lbl  { font-size: 12px; color: var(--text3); }

.toggle-pill         { position: relative; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.toggle-pill input   { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track        { position: absolute; inset: 0; background: var(--bg3); border: 1px solid var(--border2); border-radius: 24px; transition: .3s; }
.toggle-track::after { content: ''; position: absolute; width: 18px; height: 18px; top: 2px; left: 2px; background: var(--text3); border-radius: 50%; transition: .3s; }
.toggle-pill input:checked + .toggle-track          { background: rgba(108, 99, 255, 0.2); border-color: var(--accent); }
.toggle-pill input:checked + .toggle-track::after   { transform: translateX(20px); background: var(--accent); }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 5px 12px 5px 5px; border-radius: 40px;
  cursor: pointer; transition: border-color .2s;
}
.user-chip:hover { border-color: var(--border2); }

.ua {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  overflow: hidden; flex-shrink: 0;
}
.ua img    { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.uc-name   { font-size: 13px; font-weight: 600; color: var(--text); }
.uc-role   { font-size: 11px; color: var(--text3); }

.icon-btn {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 7px; cursor: pointer;
  color: var(--text2); transition: all .2s; display: flex; position: relative;
}
.icon-btn:hover { border-color: var(--border2); color: var(--accent); }
.icon-btn .mi   { font-size: 18px; }

.badge-notif {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff; border-radius: 50%;
  width: 16px; height: 16px;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.modern-wrap {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 20px;
}
.modern-lbl { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed; top: 62px; left: 0; bottom: 0;
  width: var(--sidebar);
  background: var(--surface); border-right: 1px solid var(--border);
  z-index: 200;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .3s;
}
.sidebar-nav            { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-section        { margin-bottom: 20px; }
.sidebar-section-label  { font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; padding: 0 8px; margin-bottom: 8px; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--text2); cursor: pointer; transition: all .2s;
  font-size: 13px; font-weight: 500;
  position: relative; text-decoration: none;
  border: none; background: none; width: 100%; text-align: left;
}
.sidebar-item:hover         { background: rgba(108, 99, 255, 0.08); color: var(--text); }
.sidebar-item.active        { background: rgba(108, 99, 255, 0.12); color: var(--accent); font-weight: 600; }
.sidebar-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.sidebar-item .mi          { font-size: 18px; flex-shrink: 0; }
.sidebar-item .item-badge  { margin-left: auto; background: var(--accent); color: #fff; border-radius: 20px; padding: 1px 7px; font-size: 10px; font-weight: 700; }
.sidebar-item .item-badge.red { background: var(--red); }
.sidebar-footer            { padding: 12px; border-top: 1px solid var(--border); }

/* ============================================================
   APP SHELL
   ============================================================ */
#appShell      { display: none; }
.content-area  { padding-top: 62px; padding-left: var(--sidebar); min-height: 100vh; }
.page          { display: none; max-width: 1280px; margin: 0 auto; padding: 28px 24px; animation: fadeUp .3s ease; }
.page.active   { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   LOGIN
   ============================================================ */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px;
  padding: 52px 44px;
  max-width: 440px; width: 100%;
  position: relative; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.login-badge {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 24px;
}
.login-title { font-family: var(--head); font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.login-sub   { color: var(--text2); font-size: 14px; text-align: center; margin-bottom: 28px; }

.btn-steam {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  color: #fff; width: 100%;
}
.btn-steam:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(27, 40, 56, 0.5); }

/* ============================================================
   TABS
   ============================================================ */
.tabs    { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 9px 18px; background: none; border: none;
  border-bottom: 2px solid transparent;
  color: var(--text3);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s; margin-bottom: -1px;
}
.tab-btn:hover         { color: var(--text2); }
.tab-btn.active        { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane              { display: none; }
.tab-pane.active       { display: block; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; }
.form-input, .form-select, .form-textarea {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font); font-size: 14px;
  transition: all .2s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}
.form-input::placeholder { color: var(--text3); }
.form-select             { cursor: pointer; }
.form-select option      { background: var(--bg2); }
.form-textarea           { resize: vertical; min-height: 80px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  border: none;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn .mi          { font-size: 17px; }
.btn-primary      { background: linear-gradient(135deg, var(--accent), #8b7cf8); color: #fff; }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35); }
.btn-secondary    { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border2); color: var(--accent); }
.btn-success      { background: linear-gradient(135deg, #34d399, #10b981); color: #fff; }
.btn-danger       { background: linear-gradient(135deg, #f87171, #ef4444); color: #fff; }
.btn-warning      { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1730; }
.btn-teal         { background: linear-gradient(135deg, var(--teal), #14b8a6); color: #fff; }
.btn-purple       { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; }
.btn-sm           { padding: 6px 12px; font-size: 12px; }
.btn-sm .mi       { font-size: 15px; }
.btn-full         { width: 100%; }
.btn:disabled     { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px;
  position: relative; overflow: hidden;
  transition: border-color .2s;
}
.card:hover  { border-color: var(--border2); }
.card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.4), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }
.card-header  { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.card-icon    { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon .mi { font-size: 20px; color: #fff; }
.ci-accent    { background: linear-gradient(135deg, var(--accent), #8b7cf8); }
.ci-teal      { background: linear-gradient(135deg, var(--teal), #14b8a6); }
.ci-gold      { background: linear-gradient(135deg, var(--gold), #f59e0b); }
.ci-red       { background: linear-gradient(135deg, var(--red), #ef4444); }
.ci-green     { background: linear-gradient(135deg, var(--green), #10b981); }
.ci-purple    { background: linear-gradient(135deg, var(--accent2), var(--accent)); }
.card-title   { font-family: var(--head); font-size: 16px; font-weight: 700; color: var(--text); }
.card-sub     { font-size: 12px; color: var(--text3); margin-top: 2px; }
.card-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   GRID
   ============================================================ */
.grid { display: grid; gap: 20px; }
.g2   { grid-template-columns: repeat(2, 1fr); }
.g3   { grid-template-columns: repeat(3, 1fr); }
.g4   { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

/* ============================================================
   STAT BOX
   ============================================================ */
.stat-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px; text-align: center;
}
.stat-val { font-family: var(--head); font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.stat-lbl { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }

/* ============================================================
   PROGRESS RING & GOAL
   ============================================================ */
.prog-wrap   { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.prog-svg    { transform: rotate(-90deg); }
.prog-track  { fill: none; stroke: var(--border); stroke-width: 10; }
.prog-fill {
  fill: none; stroke: url(#pg); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 534; stroke-dashoffset: 534;
  transition: stroke-dashoffset .8s cubic-bezier(.4, 0, .2, 1);
}
.prog-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.prog-count  { font-family: var(--head); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.prog-goal-lbl { font-size: 13px; color: var(--text3); margin-top: 4px; }
.goal-sep    { width: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: 5px auto; }
.ticket-controls { display: flex; gap: 10px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.ticket-controls .btn { flex: 1; min-width: 130px; }
.goal-bar {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 14px 0;
}
.goal-pct { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--accent); }
.goal-txt { font-size: 13px; color: var(--text2); }
.reset-timer {
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 10px; padding: 10px;
  text-align: center; margin-top: 10px;
}
.rt-lbl { font-size: 10px; color: var(--accent2); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.rt-val { font-size: 18px; font-weight: 700; color: var(--text); font-family: var(--mono); }
.cooldown-wrap   { background: rgba(251, 191, 36, 0.06); border: 1px solid rgba(251, 191, 36, 0.2); border-radius: 10px; padding: 12px 16px; margin-top: 10px; }
.cooldown-lbl    { font-size: 12px; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.cooldown-track  { height: 3px; background: rgba(251, 191, 36, 0.15); border-radius: 2px; overflow: hidden; }
.cooldown-fill   { height: 100%; background: linear-gradient(90deg, var(--gold), #f59e0b); transition: width .1s linear; }

/* ============================================================
   LOG ITEMS
   ============================================================ */
.log-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 8px;
  border-left: 3px solid var(--border);
}
.log-item.increment   { border-left-color: var(--green); }
.log-item.decrement   { border-left-color: var(--red); }
.log-icon             { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.log-icon.increment   { background: rgba(52, 211, 153, 0.1); color: var(--green); }
.log-icon.decrement   { background: rgba(248, 113, 113, 0.1); color: var(--red); }
.log-icon .mi         { font-size: 15px; }
.log-action           { font-size: 13px; font-weight: 600; color: var(--text); }
.log-change           { font-size: 12px; color: var(--text3); }
.log-time             { font-size: 11px; color: var(--text3); }

/* ============================================================
   NOTE / USER / PLAYER CARDS
   ============================================================ */
.note-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin-bottom: 12px;
  transition: all .2s;
}
.note-card:hover { border-color: var(--border2); }
.note-title  { font-family: var(--head); font-size: 14px; font-weight: 700; color: var(--accent2); margin-bottom: 6px; }
.note-body   { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 10px; white-space: pre-line; }
.note-meta   { font-size: 11px; color: var(--text3); }
.note-actions { display: flex; gap: 7px; margin-top: 10px; }

.user-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 8px;
  transition: border-color .2s;
}
.user-row:hover { border-color: var(--border2); }
.user-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 14px;
  overflow: hidden; flex-shrink: 0;
}
.user-av img      { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-info        { flex: 1; }
.user-name        { font-weight: 600; font-size: 14px; color: var(--text); }
.user-role-txt    { font-size: 12px; color: var(--text3); }
.user-actions     { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   BADGES
   ============================================================ */
.badge        { padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.b-owner      { background: rgba(248, 113, 113, 0.12); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.25); }
.b-admin      { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }
.b-mod        { background: rgba(52, 211, 153, 0.12); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.25); }
.b-user       { background: rgba(255, 255, 255, 0.06); color: var(--text3); border: 1px solid var(--border); }
.b-online     { background: rgba(52, 211, 153, 0.12); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.25); }
.b-offline    { background: rgba(255, 255, 255, 0.05); color: var(--text3); border: 1px solid var(--border); }
.b-pending    { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.2); }
.b-banned     { background: rgba(248, 113, 113, 0.12); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.25); }
.b-watched    { background: rgba(248, 113, 113, 0.12); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.2); }
.b-assist     { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.2); }

/* ============================================================
   PLAYER CARDS / FICHE
   ============================================================ */
.player-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px;
  transition: all .2s; position: relative; overflow: hidden;
}
.player-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.player-card:hover::before { transform: scaleX(1); }
.player-card:hover         { border-color: rgba(167, 139, 250, 0.25); }
.player-name  { font-family: var(--head); font-size: 15px; font-weight: 700; color: var(--accent2); margin-bottom: 3px; }
.player-sid   { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.player-stats { display: flex; gap: 12px; margin: 12px 0; }
.player-stat  { text-align: center; flex: 1; background: var(--bg3); border-radius: 8px; padding: 8px; }
.psv          { font-family: var(--head); font-size: 18px; font-weight: 700; color: var(--accent2); }
.psl          { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; }
.player-note-prev {
  font-size: 12px; color: var(--text2); font-style: italic; line-height: 1.5;
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: 8px; padding: 9px; margin-bottom: 10px;
}

.fiche-hdr     { text-align: center; padding: 28px 0; margin-bottom: 20px; }
.fiche-title {
  font-family: var(--head); font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.fiche-meta    { color: var(--text3); font-size: 13px; margin-bottom: 14px; }
.fiche-badges  { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ban-item, .warn-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; margin-bottom: 8px;
  transition: border-color .2s;
}
.ban-item:hover, .warn-item:hover { border-color: var(--border2); }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-hdr {
  display: flex; align-items: center; gap: 22px;
  margin-bottom: 28px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); flex-wrap: wrap;
}
.profile-av {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-size: 28px; font-weight: 700; color: #fff;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(108, 99, 255, 0.4);
}
.profile-av img  { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-name    { font-family: var(--head); font-size: 22px; font-weight: 700; margin-bottom: 3px; }
.profile-info    { color: var(--text3); font-size: 13px; }

/* ============================================================
   LINK ITEMS
   ============================================================ */
.link-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none; color: var(--text);
  transition: all .2s; margin-bottom: 8px;
}
.link-item:hover { border-color: var(--border2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108, 99, 255, 0.1); }
.link-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 17px;
}
.link-title { font-weight: 600; font-size: 14px; color: var(--text); }
.link-url   { font-size: 12px; color: var(--text3); }

.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
  flex-shrink: 0; animation: dot-pulse 2s infinite;
}
@keyframes dot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }

/* ============================================================
   PREVIEW BOX
   ============================================================ */
.preview-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
  font-family: var(--mono); font-size: 13px; color: var(--text);
  min-height: 50px; word-wrap: break-word; line-height: 1.5;
  transition: border-color .2s;
}
.preview-box.warn-b   { border-color: #fbbf24 !important; color: #fbbf24 !important; }
.preview-box.alert-b  { border-color: #f97316 !important; color: #f97316 !important; }
.preview-box.danger-b { border-color: var(--red) !important; color: var(--red) !important; }
.cmd-box {
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 10px; padding: 14px;
  font-family: var(--mono); font-size: 13px; color: var(--text);
  word-wrap: break-word;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(6px);
  z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}
.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.modal-hdr     { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 0; }
.modal-title   { font-family: var(--head); font-size: 18px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.modal-title .mi { color: var(--accent); }
.modal-body    { padding: 22px; }
.modal-footer  { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 22px; }
.modal-close   { background: none; border: none; color: var(--text3); cursor: pointer; padding: 4px; border-radius: 6px; transition: all .2s; display: flex; }
.modal-close:hover { color: var(--red); background: rgba(248, 113, 113, 0.1); }
.modal-close .mi { font-size: 20px; }

/* ============================================================
   BAN TYPE SELECTOR / DURATIONS
   ============================================================ */
.ban-type-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.ban-type-opt {
  border: 2px solid var(--border); border-radius: 12px;
  padding: 14px; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 11px; color: var(--text2);
}
.ban-type-opt:hover    { border-color: var(--accent); color: var(--text); }
.ban-type-opt.sel      { border-color: var(--accent); background: rgba(108, 99, 255, 0.08); color: var(--text); }
.ban-type-opt .mi      { font-size: 22px; color: var(--accent); }

.dur-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.num-input  { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.num-input button {
  background: var(--bg3); border: none; color: var(--accent);
  cursor: pointer; padding: 8px 10px; font-size: 16px; font-weight: 700;
  transition: background .2s;
}
.num-input button:hover { background: var(--border2); }
.num-input input {
  border: none; background: transparent; color: var(--text);
  text-align: center; font-size: 15px; font-weight: 600;
  width: 100%; font-family: var(--font);
}
.num-input input:focus { outline: none; }
.dur-preview {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: 13px;
}

/* ============================================================
   TOGGLE ROW / SERVER CHIPS / PAGINATION / SEARCH / PERIOD
   ============================================================ */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.tgl-lbl    { font-size: 13px; font-weight: 600; color: var(--text); }
.tgl-desc   { font-size: 11px; color: var(--text3); margin-top: 2px; }

.server-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.server-chip  {
  padding: 7px 14px; border: 2px solid var(--border); border-radius: 20px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text2); transition: all .2s; background: var(--bg3);
}
.server-chip:hover, .server-chip.active { border-color: var(--accent); color: var(--accent); background: rgba(108, 99, 255, 0.08); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.pag-btn    { padding: 7px 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text2); cursor: pointer; font-size: 13px; transition: all .2s; display: flex; align-items: center; gap: 4px; }
.pag-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pag-btn:disabled { opacity: .35; cursor: not-allowed; }
.pag-info   { font-size: 12px; color: var(--text3); }

.search-wrap { position: relative; margin-bottom: 18px; }
.search-ico  { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text3); }
.search-ico .mi { font-size: 18px; }
.search-field {
  width: 100%; padding: 9px 12px 9px 40px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-family: var(--font); font-size: 13px; transition: all .2s;
}
.search-field:focus { outline: none; border-color: var(--accent); }

.period-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.period-btn  { padding: 5px 12px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg3); color: var(--text3); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; }
.period-btn:hover, .period-btn.active { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   NOTIFICATIONS / EMPTY / HELPERS
   ============================================================ */
.notif-wrap { position: fixed; top: 76px; right: 18px; z-index: 999; display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.notif {
  padding: 12px 16px; border-radius: 11px; color: #fff;
  font-weight: 600; font-size: 13px;
  transform: translateX(360px); transition: transform .3s;
  pointer-events: auto;
  display: flex; align-items: center; gap: 7px;
  max-width: 300px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.notif.show     { transform: translateX(0); }
.notif.success  { background: linear-gradient(135deg, #34d399, #059669); }
.notif.error    { background: linear-gradient(135deg, #f87171, #dc2626); }
.notif.info     { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.notif .mi      { font-size: 17px; }

.empty-state    { text-align: center; padding: 50px 20px; color: var(--text3); }
.empty-state .mi { font-size: 48px; color: var(--border2); display: block; margin-bottom: 12px; }

.flex          { display: flex; align-items: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.mb-16         { margin-bottom: 16px; }
.mb-20         { margin-bottom: 20px; }
.mb-24         { margin-bottom: 24px; }
.text-muted    { color: var(--text3); font-size: 13px; }
.text-accent   { color: var(--accent); }
.text-center   { text-align: center; }
.w-full        { width: 100%; }
.page-title    { font-family: var(--head); font-size: 26px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.page-sub      { color: var(--text3); font-size: 13px; margin-bottom: 24px; }
.highlight     { background: rgba(251, 191, 36, 0.2); color: #fbbf24; padding: 1px 3px; border-radius: 3px; }
.mono          { font-family: var(--mono); }

/* ============================================================
   TAGS / LINKS EDITOR / DANGER ZONE
   ============================================================ */
.tag-selector { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tag-opt {
  padding: 7px 14px; border: 2px solid var(--border);
  border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 700; transition: all .2s; background: var(--bg3);
}
.tag-opt:hover           { border-color: var(--border2); }
.tag-opt.selected-mod    { border-color: #34d399; background: rgba(52, 211, 153, 0.1); color: #34d399; }
.tag-opt.selected-admin  { border-color: var(--accent3); background: rgba(167, 139, 250, 0.1); color: var(--accent3); }
.tag-opt.selected-active { border-color: var(--accent); background: rgba(108, 99, 255, 0.1); color: var(--accent); }

.links-edit-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 8px;
}
.links-edit-row input { flex: 1; background: transparent; border: none; color: var(--text); font-family: var(--font); font-size: 13px; }
.links-edit-row input:focus { outline: none; }

.danger-zone {
  background: rgba(248, 113, 113, 0.04);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: 12px; padding: 18px; margin-top: 16px;
}
.dz-title { font-family: var(--head); font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 10px; }

.online-user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 7px;
  transition: all .2s;
}
.online-user-row:hover { border-color: var(--border2); }

.access-denied { text-align: center; padding: 80px 20px; }
.access-denied .mi { font-size: 64px; color: var(--text3); display: block; margin-bottom: 16px; }
.access-denied h2  { font-family: var(--head); font-size: 22px; font-weight: 700; margin-bottom: 8px; }

/* ============================================================
   REPORT POPUP
   ============================================================ */
.report-popup {
  position: fixed; bottom: 24px; right: 24px; z-index: 600;
  max-width: 380px;
  background: var(--surface); border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
  animation: popIn .3s cubic-bezier(.4, 0, .2, 1);
  display: none;
}
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.report-popup::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.report-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.report-body   { padding: 14px 16px 16px; }
.report-msg    { background: var(--bg3); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--text2); line-height: 1.6; border-left: 3px solid var(--red); }

/* ============================================================
   MESSAGING / ROLES TABLE / COLOR PICKER
   ============================================================ */
.msg-list   { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; padding: 4px 0; }
.msg-item   { display: flex; gap: 10px; }
.msg-item.mine            { flex-direction: row-reverse; }
.msg-bubble {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  max-width: 72%; font-size: 13px; line-height: 1.5; color: var(--text);
}
.msg-item.mine .msg-bubble { background: rgba(108, 99, 255, 0.12); border-color: rgba(108, 99, 255, 0.25); color: var(--text); }
.msg-meta   { font-size: 11px; color: var(--text3); margin-top: 4px; }
.msg-input-wrap { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.msg-input  {
  flex: 1;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 14px;
  color: var(--text); font-family: var(--font); font-size: 13px;
}
.msg-input:focus { outline: none; border-color: var(--accent); }

.role-row   { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.role-color { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.perm-grid  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.perm-item  { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); }
.perm-item input[type=checkbox] { accent-color: var(--accent); }

.color-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.color-dot   {
  width: 24px; height: 24px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s;
}
.color-dot:hover, .color-dot.active { border-color: #fff; transform: scale(1.15); }

.admin-tabs-wrap { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 20px; }

.conv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer; transition: all .2s;
  margin-bottom: 7px;
}
.conv-item:hover, .conv-item.active { border-color: var(--accent); background: rgba(108, 99, 255, 0.06); }
.conv-unread {
  background: var(--accent); color: #fff; border-radius: 50%;
  min-width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; margin-left: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .sidebar      { transform: translateX(-100%); }
  .content-area { padding-left: 0; }
}
