/* ============================================================
   VISION — Design System
   Complementary Color Projection · Compact Professional UI
   ============================================================
   Themes: dark, light-mint, dark-aurora, dark-sunset, obsidian, pearl
   Legacy aliases kept: light, dark-emerald, dark-crimson, light-ocean
   ============================================================ */

/* ── DARK · VISION SIGNATURE (default) ─────────────────────────
   Logo-derived: mint-cyan #3eedc4 + magenta #ff3d8b (true complement)
*/
[data-theme="dark"], :root {
  --bg-base:       #07090f;
  --bg-surface:    #0c1019;
  --bg-elevated:   #121826;
  --bg-card:       #141c2d;
  --bg-hover:      #1a2438;
  --bg-input:      #0e1422;

  --border:        #1d2942;
  --border-light:  #283856;

  --text-primary:  #e9eef7;
  --text-secondary:#94a6c2;
  --text-muted:    #5a6e8c;

  --accent:        #3eedc4;
  --accent-dim:    rgba(62, 237, 196, 0.12);
  --accent-hover:  #5cf2cd;
  --accent-glow:   0 0 24px rgba(62, 237, 196, 0.28);
  --accent-on:     #052018;

  --complement:    #ff3d8b;
  --complement-dim:rgba(255, 61, 139, 0.12);

  --green:         #2dd283;
  --green-dim:     rgba(45, 210, 131, 0.12);
  --red:           #ff4570;
  --red-dim:       rgba(255, 69, 112, 0.12);
  --yellow:        #f5c542;
  --yellow-dim:    rgba(245, 197, 66, 0.12);
  --purple:        #a855f7;
  --purple-dim:    rgba(168, 85, 247, 0.12);

  --sidebar-w:     220px;
  --topbar-h:      52px;
  --radius:        9px;
  --radius-lg:     14px;
  --shadow:        0 2px 14px rgba(0,0,0,0.35);
  --shadow-lg:     0 8px 36px rgba(0,0,0,0.55);
  --transition:    0.18s ease;
  --font-display:  'Syne', sans-serif;
  --font-mono:     'Space Mono', monospace;
}

/* ── LIGHT · MINT ────────────────────────────────────────────── */
[data-theme="light-mint"] {
  --bg-base:       #e8fff1;
  --bg-surface:    #f3fff7;
  --bg-elevated:   #eafde9;
  --bg-card:       #f7fff9;
  --bg-hover:      #d5f6e0;
  --bg-input:      #ecfdf2;

  --border:        #a3e0bb;
  --border-light:  #bdebcd;

  --text-primary:  #0a2618;
  --text-secondary:#2b5a40;
  --text-muted:    #5d8870;

  --accent:        #0d9b5a;
  --accent-dim:    rgba(13, 155, 90, 0.12);
  --accent-hover:  #12b569;
  --accent-glow:   0 0 22px rgba(13, 155, 90, 0.20);
  --accent-on:     #ffffff;

  --complement:    #d8407e;
  --complement-dim:rgba(216, 64, 126, 0.12);

  --green:         #0d9b5a;
  --green-dim:     rgba(13, 155, 90, 0.10);
  --red:           #c33a55;
  --red-dim:       rgba(195, 58, 85, 0.10);
  --yellow:        #c98a13;
  --yellow-dim:    rgba(201, 138, 19, 0.10);
  --purple:        #7c3aed;
  --purple-dim:    rgba(124, 58, 237, 0.10);

  --shadow:        0 2px 14px rgba(10,40,20,0.07);
  --shadow-lg:     0 4px 28px rgba(10,40,20,0.13);
}

/* ── AURORA · DEEP VIOLET + LIME (complementary) ────────────── */
[data-theme="dark-aurora"] {
  --bg-base:       #0c0816;
  --bg-surface:    #110d22;
  --bg-elevated:   #18112e;
  --bg-card:       #1a1530;
  --bg-hover:      #221a3d;
  --bg-input:      #110b22;

  --border:        #2c2150;
  --border-light:  #3a2c66;

  --text-primary:  #ece6ff;
  --text-secondary:#a294c6;
  --text-muted:    #6f6090;

  --accent:        #b8f135;
  --accent-dim:    rgba(184, 241, 53, 0.12);
  --accent-hover:  #c5f95a;
  --accent-glow:   0 0 24px rgba(184, 241, 53, 0.30);
  --accent-on:     #11140a;

  --complement:    #9333ea;
  --complement-dim:rgba(147, 51, 234, 0.14);

  --green:         #4ade80;
  --green-dim:     rgba(74, 222, 128, 0.12);
  --red:           #f43f5e;
  --red-dim:       rgba(244, 63, 94, 0.12);
  --yellow:        #fbbf24;
  --yellow-dim:    rgba(251, 191, 36, 0.12);
  --purple:        #c084fc;
  --purple-dim:    rgba(192, 132, 252, 0.12);

  --shadow:        0 2px 16px rgba(0,0,0,0.45);
  --shadow-lg:     0 8px 38px rgba(40,10,80,0.55);
}

/* ── SUNSET · MIDNIGHT NAVY + AMBER (complementary) ─────────── */
[data-theme="dark-sunset"] {
  --bg-base:       #08111c;
  --bg-surface:    #0c1828;
  --bg-elevated:   #112137;
  --bg-card:       #142540;
  --bg-hover:      #1c324f;
  --bg-input:      #0c1828;

  --border:        #213a5e;
  --border-light:  #2d4d76;

  --text-primary:  #f5ecdb;
  --text-secondary:#b3a386;
  --text-muted:    #6e6149;

  --accent:        #ff9b1a;
  --accent-dim:    rgba(255, 155, 26, 0.13);
  --accent-hover:  #ffb04a;
  --accent-glow:   0 0 24px rgba(255, 155, 26, 0.28);
  --accent-on:     #1a0e00;

  --complement:    #1ab4ff;
  --complement-dim:rgba(26, 180, 255, 0.13);

  --green:         #44d39c;
  --green-dim:     rgba(68, 211, 156, 0.12);
  --red:           #ff5b6e;
  --red-dim:       rgba(255, 91, 110, 0.12);
  --yellow:        #f5c542;
  --yellow-dim:    rgba(245, 197, 66, 0.12);
  --purple:        #b794f4;
  --purple-dim:    rgba(183, 148, 244, 0.12);

  --shadow:        0 2px 16px rgba(0,0,0,0.45);
  --shadow-lg:     0 8px 38px rgba(0,10,30,0.6);
}

/* ── OBSIDIAN · PURE BLACK + NEON CYAN/MAGENTA ─────────────── */
[data-theme="obsidian"] {
  --bg-base:       #000000;
  --bg-surface:    #060606;
  --bg-elevated:   #0c0c0c;
  --bg-card:       #0f0f10;
  --bg-hover:      #181819;
  --bg-input:      #060606;

  --border:        #1f1f23;
  --border-light:  #2c2c33;

  --text-primary:  #f2f3f5;
  --text-secondary:#9aa0ad;
  --text-muted:    #54596a;

  --accent:        #00ffe1;
  --accent-dim:    rgba(0, 255, 225, 0.10);
  --accent-hover:  #4cffe7;
  --accent-glow:   0 0 26px rgba(0, 255, 225, 0.32);
  --accent-on:     #00100e;

  --complement:    #ff00aa;
  --complement-dim:rgba(255, 0, 170, 0.12);

  --green:         #00e676;
  --green-dim:     rgba(0, 230, 118, 0.11);
  --red:           #ff3158;
  --red-dim:       rgba(255, 49, 88, 0.11);
  --yellow:        #ffd440;
  --yellow-dim:    rgba(255, 212, 64, 0.11);
  --purple:        #c062ff;
  --purple-dim:    rgba(192, 98, 255, 0.11);

  --shadow:        0 2px 18px rgba(0,0,0,0.7);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.85);
}

/* ── PEARL · SOFT CREAM + DEEP TEAL (light, complementary) ─── */
[data-theme="pearl"] {
  --bg-base:       #f5efe4;
  --bg-surface:    #fbf6ec;
  --bg-elevated:   #f1ebde;
  --bg-card:       #ffffff;
  --bg-hover:      #ebe3d2;
  --bg-input:      #f6f0e3;

  --border:        #d8cdb6;
  --border-light:  #e5dcc7;

  --text-primary:  #1a1d1e;
  --text-secondary:#4d5658;
  --text-muted:    #8a8473;

  --accent:        #006d77;
  --accent-dim:    rgba(0, 109, 119, 0.10);
  --accent-hover:  #008691;
  --accent-glow:   0 0 22px rgba(0, 109, 119, 0.20);
  --accent-on:     #ffffff;

  --complement:    #e76f51;
  --complement-dim:rgba(231, 111, 81, 0.12);

  --green:         #2e8b57;
  --green-dim:     rgba(46, 139, 87, 0.10);
  --red:           #c0392b;
  --red-dim:       rgba(192, 57, 43, 0.10);
  --yellow:        #c98a13;
  --yellow-dim:    rgba(201, 138, 19, 0.10);
  --purple:        #6b5b95;
  --purple-dim:    rgba(107, 91, 149, 0.10);

  --shadow:        0 2px 14px rgba(60,40,10,0.07);
  --shadow-lg:     0 4px 28px rgba(60,40,10,0.13);
}

/* ── LEGACY THEME ALIASES (preserve old user cookies) ──────── */
[data-theme="light"] {
  --bg-base:#f5efe4;--bg-surface:#fbf6ec;--bg-elevated:#f1ebde;--bg-card:#fff;
  --bg-hover:#ebe3d2;--bg-input:#f6f0e3;--border:#d8cdb6;--border-light:#e5dcc7;
  --text-primary:#1a1d1e;--text-secondary:#4d5658;--text-muted:#8a8473;
  --accent:#006d77;--accent-dim:rgba(0,109,119,.10);--accent-hover:#008691;
  --accent-glow:0 0 22px rgba(0,109,119,.20);--accent-on:#fff;
  --complement:#e76f51;--complement-dim:rgba(231,111,81,.12);
  --green:#2e8b57;--green-dim:rgba(46,139,87,.10);
  --red:#c0392b;--red-dim:rgba(192,57,43,.10);
  --yellow:#c98a13;--yellow-dim:rgba(201,138,19,.10);
  --purple:#6b5b95;--purple-dim:rgba(107,91,149,.10);
  --shadow:0 2px 14px rgba(60,40,10,.07);--shadow-lg:0 4px 28px rgba(60,40,10,.13);
}
[data-theme="dark-emerald"] { /* alias → dark (default) */ }
[data-theme="dark-crimson"] {
  --bg-base:#0c0816;--bg-surface:#110d22;--bg-elevated:#18112e;--bg-card:#1a1530;
  --bg-hover:#221a3d;--bg-input:#110b22;--border:#2c2150;--border-light:#3a2c66;
  --text-primary:#ece6ff;--text-secondary:#a294c6;--text-muted:#6f6090;
  --accent:#b8f135;--accent-dim:rgba(184,241,53,.12);--accent-hover:#c5f95a;
  --accent-glow:0 0 24px rgba(184,241,53,.30);--accent-on:#11140a;
  --complement:#9333ea;--complement-dim:rgba(147,51,234,.14);
  --green:#4ade80;--green-dim:rgba(74,222,128,.12);
  --red:#f43f5e;--red-dim:rgba(244,63,94,.12);
  --yellow:#fbbf24;--yellow-dim:rgba(251,191,36,.12);
  --purple:#c084fc;--purple-dim:rgba(192,132,252,.12);
  --shadow:0 2px 16px rgba(0,0,0,.45);--shadow-lg:0 8px 38px rgba(40,10,80,.55);
}
[data-theme="light-ocean"] {
  --bg-base:#f5efe4;--bg-surface:#fbf6ec;--bg-elevated:#f1ebde;--bg-card:#fff;
  --bg-hover:#ebe3d2;--bg-input:#f6f0e3;--border:#d8cdb6;--border-light:#e5dcc7;
  --text-primary:#1a1d1e;--text-secondary:#4d5658;--text-muted:#8a8473;
  --accent:#006d77;--accent-dim:rgba(0,109,119,.10);--accent-hover:#008691;
  --accent-glow:0 0 22px rgba(0,109,119,.20);--accent-on:#fff;
  --complement:#e76f51;--complement-dim:rgba(231,111,81,.12);
  --green:#2e8b57;--green-dim:rgba(46,139,87,.10);
  --red:#c0392b;--red-dim:rgba(192,57,43,.10);
  --yellow:#c98a13;--yellow-dim:rgba(201,138,19,.10);
  --purple:#6b5b95;--purple-dim:rgba(107,91,149,.10);
  --shadow:0 2px 14px rgba(60,40,10,.07);--shadow-lg:0 4px 28px rgba(60,40,10,.13);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-display);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  font-size: 13px;
  line-height: 1.55;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   LAYOUT
   ============================================================ */
.admin-layout, .client-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--complement) 100%);
  opacity: 0.55;
  pointer-events: none;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  min-height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg-surface);
  z-index: 2;
  justify-content: flex-start;
}
.sidebar-logo img {
  height: 34px !important;
  width: 34px !important;
  max-width: 34px !important;
  padding: 0 !important;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 0 14px var(--accent-dim);
}

.sidebar-brand {
  display: flex; flex-direction: column;
  line-height: 1.1; min-width: 0; flex: 1;
}
.sidebar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--complement));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sidebar-brand .brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}

.logo-icon {
  width: 32px; height: 32px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: var(--accent-glow);
}

.logo-text .logo-main { font-size: 13px; font-weight: 800; color: var(--text-primary); }
.logo-text .logo-accent { font-size: 13px; font-weight: 800; color: var(--accent); }
.logo-text small { display: block; font-size: 9px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; }

.sidebar-close {
  display: none; background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 14px;
  padding: 4px; margin-left: auto;
}

/* Profile in sidebar (client) */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.profile-avatar {
  width: 34px; height: 34px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 14px;
  position: relative;
  flex-shrink: 0;
}

.profile-badge {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 16px; height: 16px;
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  border: 1px solid var(--border);
}

.profile-info { min-width: 0; flex: 1; }
.profile-name { font-size: 12px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-group { font-size: 10px; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Nav */
.sidebar-nav { padding: 8px 0; flex: 1; }

.nav-section-label {
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 14px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12.5px;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.nav-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.nav-item:hover i { color: var(--accent); }

.nav-item.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-left-color: var(--accent);
}
.nav-item.active i { color: var(--accent); }

/* Sidebar footer */
.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  position: sticky; bottom: 0;
}

.sidebar-admin-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-avatar {
  width: 32px; height: 32px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-admin-info > div:nth-child(2) { min-width: 0; flex: 1; }
.admin-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-role { font-size: 9px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }

.sidebar-actions { display: flex; gap: 6px; }

/* ── MAIN WRAPPER ── */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: fixed; top: 0; z-index: 100;
  width: calc(100% - var(--sidebar-w));
  right: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.sidebar-toggle { display: none !important; }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-muted); font-family: var(--font-mono);
  letter-spacing: 0.4px;
}
.breadcrumb i { font-size: 8px; }
.breadcrumb span:last-child { color: var(--text-primary); font-weight: 700; }

.topbar-clock {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.ticker-mini { display: flex; align-items: center; gap: 6px; }
.ticker-pair { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.ticker-price { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--green); }

.live-ticker {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.ticker-scroll {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  animation: tickerAnim 30s linear infinite;
}
@keyframes tickerAnim {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  padding: 18px 18px;
  padding-top: calc(var(--topbar-h) + 16px);
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--accent-glow); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-dim); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover { color: var(--text-primary); border-color: var(--border-light); background: var(--bg-hover); }

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: var(--red);
}
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-success {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--green);
}
.btn-success:hover { background: var(--green); color: var(--accent-on); }

.btn-sm { padding: 5px 10px; font-size: 11px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }

.btn-icon {
  width: 32px; height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all var(--transition);
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.btn-icon-sm { width: 26px; height: 26px; font-size: 11px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-light); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 14px; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.card-title i { color: var(--accent); font-size: 13px; }

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { border-color: var(--border-light); transform: translateY(-1px); box-shadow: var(--shadow); }

.stat-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 10px;
}
.stat-icon.green { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.stat-icon.red   { background: var(--red-dim);   border-color: var(--red);   color: var(--red);   }
.stat-icon.yellow{ background: var(--yellow-dim); border-color: var(--yellow); color: var(--yellow); }
.stat-icon.purple{ background: var(--purple-dim); border-color: var(--purple); color: var(--purple); }

.stat-value { font-size: 22px; font-weight: 800; font-family: var(--font-mono); color: var(--text-primary); line-height: 1.1; }
.stat-label { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
thead tr { background: var(--bg-elevated); }
thead th {
  padding: 9px 12px;
  text-align: left;
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--bg-hover); }
.mono { font-family: var(--font-mono); font-size: 11.5px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 5px;
  font-size: 10.5px; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-secondary);
}
.form-control {
  width: 100%; padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10.5px; font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
}
.badge-active  { background: var(--green-dim);  color: var(--green);  border: 1px solid var(--green); }
.badge-expired { background: var(--red-dim);    color: var(--red);    border: 1px solid var(--red); }
.badge-pending { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow); }
.badge-vip     { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow); }
.badge-standard{ background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }
.badge-guest   { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ============================================================
   HINT / TOOLTIP SYSTEM (subtle help icons)
   Usage: <span class="tp-hint" data-hint="Краткое пояснение"></span>
   Or:    <span class="tp-hint tp-hint-bottom" data-hint="..."></span>
   ============================================================ */
.tp-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  margin-left: 5px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  cursor: help;
  vertical-align: middle;
  transition: all var(--transition);
  flex-shrink: 0;
  user-select: none;
}
.tp-hint::before {
  content: '?';
  line-height: 1;
}
.tp-hint:hover, .tp-hint:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  outline: none;
}

.tp-hint::after {
  content: attr(data-hint);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 11px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-display);
  font-style: normal;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  z-index: 9000;
  transition: opacity 0.15s, transform 0.15s;
}
.tp-hint:hover::after, .tp-hint:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tp-hint.tp-hint-right::after  { left: auto; right: -8px; transform: translateY(4px); bottom: calc(100% + 8px); }
.tp-hint.tp-hint-right:hover::after  { transform: translateY(0); }
.tp-hint.tp-hint-bottom::after { bottom: auto; top: calc(100% + 8px); transform: translateX(-50%) translateY(-4px); }
.tp-hint.tp-hint-bottom:hover::after { transform: translateX(-50%) translateY(0); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s ease;
  padding: 16px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
  box-shadow: var(--shadow-lg);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15px; font-weight: 800; }
.modal-body  { padding: 18px; }
.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  min-width: 240px; max-width: 340px;
  position: relative;
}
.toast span { flex: 1; }
.toast-close {
  background: none; border: none; color: inherit; opacity: 0.5;
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 0 0 6px;
  flex-shrink: 0; transition: opacity 0.15s;
}
.toast-close:hover { opacity: 1; }
.toast-close-all {
  position: absolute; top: 0;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-secondary);
  font-size: 14px; line-height: 1; cursor: pointer;
  padding: 5px 9px; box-shadow: var(--shadow);
  text-decoration: underline; transition: all 0.15s;
  z-index: 1; left: -42px; right: auto;
}
.toast-close-all:hover { color: var(--red); border-color: var(--red); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-left: 3px solid var(--green); color: var(--green); }
.toast.error   { border-left: 3px solid var(--red);   color: var(--red);   }
.toast.info    { border-left: 3px solid var(--accent); color: var(--accent); }
.toast.warning { border-left: 3px solid var(--yellow); color: var(--yellow); }

/* ============================================================
   LOADING
   ============================================================ */
.loading-overlay {
  display: none !important;
}

.main-content {
  transition: opacity 0.15s ease;
}

.loading-spinner {
  width: 56px; height: 56px;
  position: relative;
}
.spinner-ring {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.spinner-ring:nth-child(2) { inset: 8px; border-top-color: var(--complement); animation-duration: 0.8s; }
.spinner-ring:nth-child(3) { inset: 16px; border-top-color: var(--accent); animation-duration: 0.6s; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap; gap: 12px;
}
.page-header-left h1 {
  font-size: 20px; font-weight: 800;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.2px;
}
.page-header-left h1 i { color: var(--accent); font-size: 18px; }
.page-header-left p { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-family: var(--font-mono); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   SEARCH & FILTERS
   ============================================================ */
.table-toolbar {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.search-input-wrap {
  position: relative; flex: 1; min-width: 180px;
}
.search-input-wrap i {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 12px;
}
.search-input {
  width: 100%; padding: 7px 12px 7px 32px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-display); font-size: 12px;
  outline: none; transition: all var(--transition);
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 199;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 240px; --topbar-h: 50px; }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-overlay.active { display: block; }
  .sidebar-close { display: flex; align-items: center; justify-content: center; }
  .sidebar-toggle { display: flex !important; }
  .main-wrapper { margin-left: 0; }
  .main-content {
    padding: 8px 4px;
    padding-top: calc(var(--topbar-h) + 8px);
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .topbar {
    padding: 0 8px;
    padding-top: env(safe-area-inset-top, 0px);
    width: 100%;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 10px; }
  .page-header { flex-direction: column; margin-bottom: 12px; }
  .page-header-left h1 { font-size: 17px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 18px; }
  .live-ticker { max-width: none; flex: 1; min-width: 0; }
  .user-info-card { flex-direction: column; text-align: center; gap: 12px; padding: 14px 10px; }
  .user-stats-row { margin-left: 0; justify-content: center; gap: 16px; }
  .user-meta h2 { font-size: 17px; }
  .card { padding: 12px; }
  .card-header { margin-bottom: 10px; padding-bottom: 8px; }
  .table-wrap { border-radius: var(--radius); }
  thead th { padding: 7px 8px; }
  tbody td { padding: 8px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .modal { margin: 0; border-radius: var(--radius); }
  .toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { min-width: unset; }
  .toast-close-all { left: auto; right: -6px; top: -32px; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .main-content {
    padding: 6px 3px;
    padding-top: calc(var(--topbar-h) + 6px);
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .user-avatar-lg { width: 52px; height: 52px; font-size: 22px; }
}

/* ============================================================
   TELEGRAM MINI APP
   ============================================================ */
body.tg-webapp {
  min-height: var(--tg-viewport-height, 100vh);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.tg-webapp .admin-layout,
body.tg-webapp .client-layout {
  min-height: var(--tg-viewport-height, 100vh);
}
body.tg-webapp .login-page {
  min-height: var(--tg-viewport-height, 100vh);
  padding: 12px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 18% 50%, var(--accent-dim) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 18%, var(--complement-dim) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 95%, var(--accent-dim) 0%, transparent 50%);
  opacity: 0.85;
}

.login-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 420px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--complement));
}
@media (max-width: 480px) {
  .login-card { padding: 22px 16px; }
}
.login-card img { max-width: 100%; height: auto; }

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}
.login-logo .logo-icon-lg {
  width: 56px; height: 56px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--accent); font-size: 24px;
  box-shadow: var(--accent-glow);
}
.login-logo h1, .vision-wordmark {
  font-size: 30px; font-weight: 800;
  letter-spacing: 3px;
  margin: 0;
  background: linear-gradient(90deg, var(--accent), var(--complement));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
}
.login-logo h1 span { color: var(--accent); }
.login-logo p { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1.4px; margin-top: 4px; text-transform: uppercase; }

.login-tabs {
  display: flex;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 20px;
}
.login-tab {
  flex: 1; text-align: center;
  padding: 7px;
  border-radius: 7px;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  border: none; background: none;
  font-family: var(--font-display);
}
.login-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}

.pass-toggle {
  position: relative;
}
.pass-toggle .form-control { padding-right: 40px; }
.pass-eye {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 13px;
  transition: color var(--transition);
}
.pass-eye:hover { color: var(--accent); }

/* ============================================================
   SIGNALS (Client)
   ============================================================ */
.signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  transition: all var(--transition);
  cursor: pointer;
}
.signal-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }

.signal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.signal-pair { font-size: 16px; font-weight: 800; font-family: var(--font-mono); }
.signal-type { padding: 2px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.signal-type.buy  { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.signal-type.sell { background: var(--red-dim);   color: var(--red);   border: 1px solid var(--red); }

.signal-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.signal-data-item { text-align: center; }
.signal-data-item .label { font-size: 9px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.signal-data-item .value { font-size: 13px; font-weight: 700; font-family: var(--font-mono); margin-top: 2px; }

.signal-locked {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.signal-lock-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,12,18,0.7);
  border-radius: var(--radius-lg);
  flex-direction: column; gap: 6px;
  color: var(--text-muted); font-size: 12px;
}
.signal-lock-overlay i { font-size: 22px; color: var(--yellow); }

/* ============================================================
   DASHBOARD CHARTS PLACEHOLDER
   ============================================================ */
.chart-container {
  position: relative;
  height: 260px;
  display: flex; align-items: center; justify-content: center;
}

/* User profile card (client main) */
.user-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  overflow: hidden;
  word-break: break-word;
  position: relative;
}
.user-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--complement));
}
.user-avatar-lg {
  width: 60px; height: 60px;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 26px;
  flex-shrink: 0;
}
.user-meta h2 { font-size: 19px; font-weight: 800; }
.user-meta p {
  font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

.user-stats-row {
  display: flex; gap: 20px; margin-left: auto;
  flex-wrap: wrap;
}
.user-stat { text-align: center; }
.user-stat .val { font-size: 18px; font-weight: 800; font-family: var(--font-mono); }
.user-stat .lbl { font-size: 9.5px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }

/* Progress bar */
.progress-wrap { margin-top: 4px; }
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-accent  { color: var(--accent); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-yellow  { color: var(--yellow); }
.text-muted   { color: var(--text-muted); }
.text-mono    { font-family: var(--font-mono); }
.text-center  { text-align: center; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.mb-0  { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 20px; }
.mt-16 { margin-top: 16px; }
.w-100 { width: 100%; }

.empty-state {
  text-align: center; padding: 48px 18px;
  color: var(--text-muted);
}
.empty-state i { font-size: 42px; margin-bottom: 14px; opacity: 0.32; }
.empty-state p { font-size: 13px; }

hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }


#tv-attr-logo {
  display: none!important;
}
