@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Cinzel+Decorative:wght@700;900&display=swap');

/* ═══════════════════════════════════════════════════════════════
   PRIME LEGENDS — Design System v2 (SaaS Dark)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Backgrounds (each layer one step lighter — depth is visible) */
  --bg-base:    #09090b;   /* page canvas */
  --bg-panel:   #111115;   /* sidebar, modal shells */
  --bg-panel-2: #17171c;   /* cards, panels */
  --bg-panel-3: #1d1d24;   /* inputs, inner areas */
  --bg-hover:   rgba(255,255,255,0.04);

  /* ── Borders */
  --border-subtle: rgba(255,255,255,0.08);
  --border-muted:  rgba(255,255,255,0.14);
  --border-strong: rgba(255,255,255,0.22);
  --border-glow:   rgba(20,184,166,0.35);

  /* ── Orange accent — primary actions, active states, key highlights only */
  --orange:      #14b8a6;
  --orange-deep: #0d9488;
  --orange-bg:   rgba(20,184,166,0.10);
  --orange-ring: rgba(20,184,166,0.20);
  /* Legacy compat */
  --gold:        #14b8a6;
  --gold-deep:   #0d9488;

  /* ── Status palette — ONLY other colors allowed */
  --success: #22c55e;
  --error:   #ef4444;
  --warning: #eab308;
  --info:    #14b8a6;
  /* Legacy compat */
  --crimson: #ef4444;
  --teal:    #22c55e;
  --red:     #ef4444;
  --green:   #22c55e;

  /* ── Platform colors */
  --steam:       #1b2838;
  --steam-light: #66c0f4;
  --discord:     #5865f2;

  /* ── Text hierarchy */
  --text-primary:   #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted:     #6b6b72;

  /* ── Typography — ONE sans-serif family for everything */
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* ── Radius scale */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:     12px;
  --radius-md:  10px;   /* date picker compat */
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* ── Shadow scale */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.45);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.55);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.6);
  --shadow-deep: 0 24px 64px rgba(0,0,0,0.75);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);

  /* ── Focus ring — ONE ring used everywhere */
  --focus-ring: 0 0 0 3px rgba(20,184,166,0.25);

  /* ── Layout */
  --sidebar-w: 240px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--orange); color: #fff; }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ─── Utility ────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Background (subtle, not distracting) ───────────────────── */
.bg-blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.06; animation: float-blob 26s ease-in-out infinite; }
.blob-1 { width: 600px; height: 600px; background: var(--orange); top: -200px; left: -150px; animation-delay: 0s; }
.blob-2 { width: 500px; height: 500px; background: #14b8a6; bottom: -200px; right: -100px; animation-delay: -10s; }
.blob-3 { width: 400px; height: 400px; background: var(--orange); top: 50%; left: 50%; animation-delay: -18s; }
@keyframes float-blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  40%       { transform: translate(50px,-30px) scale(1.08); }
  70%       { transform: translate(-30px,40px) scale(0.94); }
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border-right: 1px solid var(--border-subtle);
  box-shadow: 1px 0 0 0 var(--border-subtle);
  overflow: visible; /* visible so bell/user dropdowns can escape the sidebar */
  transition: width 0.2s ease;
}

/* ─── PUBLIC PAGES — horizontal top navbar ───────────────────── */
.page-public .navbar {
  top: 0; left: 0; right: 0; bottom: auto;
  width: 100%; height: 64px;
  flex-direction: row; align-items: center;
  border-right: none; border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px; gap: 0; overflow: visible;
}
.page-public .nav-brand { border-bottom: none; padding: 0 16px 0 0; flex-shrink: 0; }
.page-public .nav-links {
  flex: 1; flex-direction: row; overflow: visible;
  padding: 0; gap: 0; align-items: center; justify-content: center;
}
.page-public .nav-link { padding: 8px 12px; border-radius: var(--radius-sm); }
.page-public .nav-right {
  flex-direction: row; border-top: none; padding: 0;
  gap: 10px; align-items: center; flex-shrink: 0; position: relative;
}
.page-public .nav-submenu {
  left: 0; top: calc(100% + 6px); bottom: auto;
  transform: translateY(4px);
}
.page-public .nav-dropdown-wrap.open .nav-submenu { transform: translateY(0); }
.page-public .nav-dropdown-wrap.open .nav-caret { transform: rotate(180deg); }
.page-public .nav-bell { position: relative; }
.page-public .nav-bell-dropdown {
  left: auto; right: 0; bottom: auto; top: calc(100% + 8px);
  transform: translateY(-8px);
}
.page-public .nav-bell-dropdown.open { transform: translateY(0); }
.page-public .nav-bell-dropdown.expanded { left: auto; right: 0; }
.page-public .nav-user { position: relative; }
.page-public .nav-dropdown { bottom: auto; top: calc(100% + 6px); left: auto; right: 0; width: 220px; }
.page-public .dashboard-main {
  margin-left: 0; max-width: none;
  padding: 28px 40px; padding-top: calc(64px + 28px);
}
.page-public .pub-nav-auth { flex-direction: row; padding: 0; border-top: none; gap: 8px; }
.page-public .pub-nav-signin { white-space: nowrap; }
.page-public .pub-nav-register { white-space: nowrap; }
@media (max-width: 900px) {
  .page-public .dashboard-main { padding: 20px 16px; padding-top: calc(64px + 20px); }
}
@media (max-width: 768px) {
  .page-public .navbar { padding: 0 12px; }
  .page-public .nav-links { gap: 0; }
  .page-public .nav-link span { display: none; }
  .page-public .nav-link { padding: 8px; }
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.nav-brand:hover { opacity: 0.8; }
.nav-brand em {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 3px;
  display: block;
  color: var(--text-muted);
  margin-top: 1px;
  text-transform: uppercase;
}
.nav-logo { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }

/* Nav links (vertical list) */
.nav-links {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}
.nav-link i { width: 16px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-link.active {
  background: rgba(20,184,166,0.13);
  color: var(--orange);
  font-weight: 600;
}
.nav-link.active i { color: var(--orange); }

/* Submenu — sidebar accordion (default) */
.nav-dropdown-wrap { position: relative; }
.nav-caret { font-size: 9px; margin-left: auto; opacity: 0.5; transition: transform 0.2s ease; }
.nav-dropdown-wrap.open .nav-caret { transform: rotate(180deg); opacity: 1; }

.nav-submenu {
  /* Inline accordion — not affected by parent overflow clipping */
  position: static;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: auto;
}
.nav-submenu-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 2px 0 4px 8px;
}
.nav-dropdown-wrap.open .nav-submenu { grid-template-rows: 1fr; }

.nav-submenu a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  color: var(--text-secondary); text-decoration: none; font-size: 12.5px;
  border-radius: 6px; transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-submenu a:hover { background: rgba(20,184,166,0.1); color: var(--orange); }
.nav-submenu a i { width: 14px; color: var(--text-muted); }
.nav-submenu-divider { height: 1px; background: var(--border-subtle); margin: 4px 8px; }
.nav-submenu-label { display: flex; align-items: center; gap: 7px; padding: 6px 10px 3px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); pointer-events: none; }
.nav-submenu-label i { width: 13px; font-size: 10px; }

/* Public horizontal nav — override back to floating dropdown */
.page-public .nav-submenu {
  position: absolute;
  display: block;
  left: 0; top: calc(100% + 6px); bottom: auto;
  min-width: 200px; width: auto;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-deep);
  padding: 6px;
  overflow: visible;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 300;
}
.page-public .nav-dropdown-wrap.open .nav-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.page-public .nav-submenu-inner { display: contents; padding: 0; }
.page-public .nav-submenu a { padding: 9px 12px; font-size: 13px; }
.page-public .nav-submenu-divider { margin: 4px 0; }

/* User section at bottom of sidebar */
.nav-right {
  flex-shrink: 0;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.nav-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
  padding: 6px 12px;
}
.nav-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.nav-user:hover { background: rgba(255,255,255,0.06); border-color: rgba(20,184,166,0.3); }
.nav-user.active { background: rgba(20,184,166,0.07); border-color: rgba(20,184,166,0.45); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(20,184,166,0.4); flex-shrink: 0; }
#nav-username { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user > .fa-chevron-down { font-size: 10px; color: rgba(255,255,255,0.35); transition: transform 0.2s ease, color 0.15s; }
.nav-user.active > .fa-chevron-down { transform: rotate(180deg); color: var(--orange); }

/* Notification bell */
.nav-bell {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; color: rgba(255,255,255,0.45); font-size: 14px;
  transition: background 0.15s ease, color .15s; flex-shrink: 0;
}
.nav-bell:hover { background: rgba(255,255,255,0.09); color: #fff; }
.nav-bell:hover { background: rgba(255,255,255,0.07); color: var(--text-primary); }
.nav-bell-badge {
  position: absolute; top: -4px; right: -4px; background: var(--error); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.nav-bell-dropdown {
  position: absolute;
  left: calc(100% + 12px); bottom: 0; top: auto; right: auto;
  width: 320px; max-height: 420px;
  display: flex; flex-direction: column;
  background: #000; border: 1px solid rgba(20,184,166,0.2);
  border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0,0,0,0.95), 0 6px 20px rgba(0,0,0,0.8);
  opacity: 0; visibility: hidden; transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 500;
}
.nav-bell-dropdown.open { opacity: 1; visibility: visible; transform: translateX(0); }
.nav-bell-dropdown.expanded { width: 480px; max-height: 640px; }
.nav-bell-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid rgba(20,184,166,0.12);
  font-weight: 600; font-size: 13px; flex-shrink: 0;
  background: rgba(0,0,0,1);
}

.nav-bell-head-left { display: flex; align-items: center; gap: 8px; }
.nav-bell-head-left i { color: var(--orange); font-size: 13px; }
.nav-bell-head-right { display: flex; align-items: center; gap: 6px; }
.nav-bell-markall {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(20,184,166,0.1); border: 1px solid rgba(20,184,166,0.25);
  color: var(--orange); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
  transition: background 0.15s ease;
}
.nav-bell-markall:hover { background: rgba(20,184,166,0.2); }
.nav-bell-expand {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--bg-panel-3); border: 1px solid var(--border-subtle);
  color: var(--text-muted); font-size: 10px; cursor: pointer;
  transition: all 0.15s ease;
}
.nav-bell-expand:hover { color: var(--text-primary); border-color: var(--border-muted); }
.nav-bell-list-wrap { overflow-y: auto; flex: 1; }

/* User dropdown */
.nav-dropdown {
  position: absolute; bottom: calc(100% + 6px); left: 0; right: 0;
  background: #000; border: 1px solid rgba(20,184,166,0.2);
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.2s ease; z-index: 500;
  overflow: hidden;
}
.nav-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; transition: all 0.15s ease;
}
.nav-dropdown a:hover { background: rgba(20,184,166,0.08); color: var(--orange); }
.nav-dropdown a i { width: 14px; }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.05); }
.dropdown-userhead {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 4px;
  background: rgba(20,184,166,0.04);
}
.dropdown-userhead img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(20,184,166,0.4); }
.dropdown-userhead strong { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.dropdown-userhead span { font-size: 11px; color: var(--orange); }

/* Notifications */
.nav-bell-list-wrap { background: #000; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none; color: inherit;
  transition: background 0.15s ease;
  background: #000 !important;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.05) !important; }
.notif-item.unread { background: rgba(20,184,166,0.07) !important; border-left: 2px solid rgba(20,184,166,0.6); }
.notif-item.unread:hover { background: rgba(20,184,166,0.12) !important; }
.notif-unread-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; margin-top: 5px;
}
.notif-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 1.5px solid rgba(255,255,255,0.1);
  background: #0f0d0a;
}
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.45; }
.notif-text strong { color: rgba(255,255,255,0.88); font-weight: 600; }
.notif-meta { font-size: 11.5px; color: rgba(255,255,255,0.28); margin-top: 4px; }
.notif-empty { padding: 36px 16px; text-align: center; color: rgba(255,255,255,0.25); font-size: 13px; background: #000; }
.notif-empty i { display: block; font-size: 28px; margin-bottom: 10px; opacity: 0.3; }

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.page-dashboard { padding-bottom: 60px; }

.dashboard-main {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 28px;
  margin-left: var(--sidebar-w);
}

.dashboard-main.page-wide {
  max-width: none;
  margin-left: var(--sidebar-w);
  padding-left: 28px;
  padding-right: 28px;
}
.dashboard-main.page-wide .page-header { text-align: left; }
.dashboard-main.page-wide .page-header .hero-tagline { margin-left: 0; }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */
.page-login {
  display: flex; align-items: center; justify-content: center;
  padding: 30px 20px; min-height: 100vh;
}
.auth-container {
  position: relative; z-index: 2; width: 100%; max-width: 440px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.link-container { max-width: 520px; }

.brand { display: flex; align-items: center; gap: 14px; animation: fade-down 0.6s ease both; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, var(--orange), #2dd4bf);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-sub { font-size: 10px; font-weight: 600; letter-spacing: 5px; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }

@keyframes fade-down { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fade-in   { from { opacity:0; } to { opacity:1; } }
@keyframes slide-in  { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@keyframes card-in   { from { opacity:0; transform:translateY(20px) scale(0.98); } to { opacity:1; transform:translateY(0) scale(1); } }

/* Auth card */
.auth-card {
  width: 100%; background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px 26px;
  box-shadow: var(--shadow-card), var(--shadow-deep); animation: card-in 0.5s ease both; animation-delay: 0.05s;
}
.auth-card-header { text-align: center; margin-bottom: 22px; }
.auth-card-header h2 { font-size: 20px; font-weight: 700; }
.auth-sub { color: var(--text-secondary); font-size: 13px; margin-top: 5px; line-height: 1.5; }

/* Alerts */
.alert {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 9px; animation: slide-in 0.3s ease both;
}
.alert.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.alert.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }
.alert::before { font-family: "Font Awesome 6 Free"; font-weight: 900; }
.alert.error::before { content: "\f06a"; }
.alert.success::before { content: "\f058"; }

/* Tabs */
.auth-tabs { display: flex; background: rgba(0,0,0,0.3); border-radius: 10px; padding: 3px; margin-bottom: 20px; gap: 3px; }
.tab-btn { flex: 1; background: transparent; border: none; color: var(--text-secondary); font-family: var(--font-heading); font-weight: 600; font-size: 13px; padding: 9px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease; }
.tab-btn.active { background: var(--bg-panel-3); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.tab-btn:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.tab-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.tab-content { display: none; animation: fade-in 0.3s ease; }
.tab-content.active { display: block; }
.tab-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; text-align: center; line-height: 1.5; }

/* Social buttons */
.social-logins { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px;
  border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: all 0.2s ease; border: 1px solid transparent;
}
.btn-social i { font-size: 17px; }
.btn-steam { background: rgba(27,40,56,0.8); color: var(--steam-light); border-color: rgba(102,192,244,0.15); }
.btn-steam:hover { background: rgba(27,40,56,1); border-color: rgba(102,192,244,0.3); }
.btn-discord { background: rgba(88,101,242,0.15); color: #5eead4; border-color: rgba(88,101,242,0.3); }
.btn-discord:hover { background: rgba(88,101,242,0.25); border-color: rgba(88,101,242,0.5); }

/* Divider */
.divider { display: flex; align-items: center; text-align: center; margin: 16px 0; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }
.divider span { padding: 0 12px; }

/* Form fields */
.field-group { margin-bottom: 14px; }
.field-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.field-hint { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.input-wrap {
  display: flex; align-items: center; background: var(--bg-base); border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm); padding: 0 12px; transition: all 0.2s ease;
}
.input-wrap:focus-within { border-color: rgba(20,184,166,0.45); box-shadow: 0 0 0 2px rgba(20,184,166,0.10); }
.input-wrap i { color: var(--text-muted); font-size: 14px; width: 18px; text-align: center; }
.input-wrap input, .input-wrap textarea { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-family: var(--font-body); font-size: 14px; padding: 12px 10px; }
.input-wrap input[readonly] { color: var(--text-secondary); font-family: monospace; font-size: 12px; }
.input-wrap-textarea { align-items: flex-start; }
.input-wrap-textarea i { margin-top: 14px; }
.input-wrap textarea { resize: vertical; min-height: 70px; }

/* ═══════════════════════════════════════════════════════════
   GLOBAL FORM CONTROL RESET — one visible border, one focus ring.
   Applies site-wide (public pages, admin panels, player dashboard,
   modals). Low-specificity tag selectors only, so any component with
   its own intentionally-bordered input class (.uim-input, .rv-input,
   etc.) still wins the cascade and is unaffected.

   Root problem this fixes: rounded "wrapper" components (.input-wrap
   and its .page-admin/.page-player variants) draw the border + focus
   ring, but nothing previously guaranteed the <input>/<select> inside
   them was ALWAYS borderless/outline-less — a page-local <style> block
   or a raw <select> (which browsers give a strong native focus ring)
   could end up rendering a second border/ring on top of the wrapper's.
   ═══════════════════════════════════════════════════════════ */
input, select, textarea {
  box-sizing: border-box;
  max-width: 100%;
  outline: none;
}
/* Only reset border/background for controls living inside a bordered
   wrapper — standalone-styled inputs (their own class sets a border
   directly, no wrapper) are untouched since class selectors outrank
   this descendant selector. */
.input-wrap input, .input-wrap select, .input-wrap textarea,
.page-admin .input-wrap input, .page-admin .input-wrap select, .page-admin .input-wrap textarea,
.page-player .input-wrap input, .page-player .input-wrap select, .page-player .input-wrap textarea {
  border: none;
  outline: none;
  box-shadow: none; /* the wrapper draws the focus ring, never the field itself */
  background: none;
}
/* Rounded wrappers own the single border + focus ring, and clip any
   inner content (autofill highlight, native select arrow halo, etc.)
   to their own rounded corners so nothing can visually poke past them. */
.input-wrap {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.toggle-pw { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; transition: color 0.15s; }
.toggle-pw:hover { color: var(--orange); }

.remember-me { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; cursor: pointer; user-select: none; }
.remember-me input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--orange); cursor: pointer; }

/* Primary button */
.btn-primary {
  width: 100%; padding: 13px; border: none; border-radius: var(--radius-sm);
  background: var(--orange); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.3px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s ease; text-decoration: none;
}
.btn-primary:hover:not(:disabled) { background: var(--orange-deep); box-shadow: 0 4px 16px rgba(20,184,166,0.35); }
.btn-primary:active:not(:disabled) { transform: scale(0.99); }
.btn-primary:disabled { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.28); cursor: not-allowed; opacity: 1; }
.btn-primary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-outline-only { background: transparent; border: 1.5px solid var(--orange); color: var(--orange); }
.btn-outline-only:hover { background: rgba(20,184,166,0.08); box-shadow: none; }
.auth-footer-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.auth-footer-link a { color: var(--orange); text-decoration: none; font-weight: 600; }
.auth-footer-link a:hover { text-decoration: underline; }

/* Form messages */
.form-error, .form-success { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.form-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #fca5a5; }
.form-error::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f071"; }
.form-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: #86efac; }
.form-success::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f00c"; }

/* Notice box */
.notice-box {
  background: rgba(20,184,166,0.06); border: 1px solid rgba(20,184,166,0.18);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px;
  color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 10px;
}
.notice-box i { color: var(--orange); margin-top: 1px; }
.notice-box strong { color: var(--text-primary); }
.notice-warning { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.18); }
.notice-warning i { color: var(--error); }
.notice-info { background: rgba(99,179,237,0.06); border-color: rgba(99,179,237,0.2); }
.notice-info i { color: #63b3ed; }

/* Server status */
.server-status { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(0,0,0,0.3); border: 1px solid var(--border-subtle); border-radius: 30px; font-size: 12px; color: var(--text-secondary); animation: fade-in 1s ease 0.4s both; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.status-dot.online { background: var(--success); animation: pulse-dot 2.5s infinite; }
.status-dot.offline { background: var(--error); }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Register method badges */
.method-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 30px; font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.badge-steam { background: rgba(102,192,244,0.08); color: var(--steam-light); border: 1px solid rgba(102,192,244,0.2); }
.badge-discord { background: rgba(88,101,242,0.08); color: #5eead4; border: 1px solid rgba(88,101,242,0.2); }

/* Link accounts */
.link-progress { margin-bottom: 22px; }
.progress-track { height: 5px; background: rgba(0,0,0,0.4); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; width: 0%; background: var(--orange); border-radius: 10px; transition: width 0.5s ease; }
#progress-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; }
.link-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); margin-bottom: 10px; transition: all 0.2s ease; }
.link-item.linked { border-color: rgba(34,197,94,0.25); background: rgba(34,197,94,0.04); }
.link-item-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.steam-icon { background: rgba(27,40,56,0.8); color: var(--steam-light); }
.discord-icon { background: rgba(88,101,242,0.2); color: #5eead4; }
.link-item-info { flex: 1; min-width: 0; }
.link-item-info h3 { font-size: 14px; font-weight: 600; }
.link-item-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.5; }
.link-item-info p i { color: var(--success); margin-right: 4px; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--orange); color: #fff; text-decoration: none; border-radius: var(--radius-sm); font-family: var(--font-heading); font-size: 13px; font-weight: 600; white-space: nowrap; transition: all 0.2s ease; border: none; cursor: pointer; }
.btn-link:hover { background: var(--orange-deep); }
.btn-link:active { transform: scale(0.98); }
.btn-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.linked-badge { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.25); cursor: default; pointer-events: none; }
.linked-badge:hover { background: rgba(34,197,94,0.1); }
.btn-ready { background: var(--success); }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADERS + HERO
   ═══════════════════════════════════════════════════════════════ */
.page-header { text-align: center; padding: 18px 0 32px; animation: card-in 0.5s ease both; }
.page-header h1 { font-size: 30px; font-weight: 800; margin: 6px 0 10px; letter-spacing: -0.5px; }
.hero-eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.page-header .hero-tagline { max-width: 600px; margin: 0 auto; color: var(--text-secondary); }

.hero-card {
  position: relative; background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 40px; margin-bottom: 24px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  animation: card-in 0.5s ease both; box-shadow: var(--shadow-card);
}
.hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--orange), #2dd4bf); }
.hero-content { position: relative; z-index: 2; max-width: 520px; }
.hero-content h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.hero-tagline { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: 26px; }
.btn-join {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  background: var(--orange); color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(20,184,166,0.25); text-decoration: none;
}
.btn-join:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(20,184,166,0.35); }
.btn-join:active { transform: scale(0.98); box-shadow: none; }
.btn-join:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-shine { display: none; }
.hero-art { width: 160px; height: 160px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hero-glow { display: none; }
.hero-icon { font-size: 90px; color: var(--orange); filter: drop-shadow(0 0 24px rgba(20,184,166,0.35)); animation: float-icon 5s ease-in-out infinite; }
@keyframes float-icon { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ═══════════════════════════════════════════════════════════════
   PANELS + CARDS
   ═══════════════════════════════════════════════════════════════ */
.panel {
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 24px; animation: card-in 0.5s ease both; animation-delay: 0.1s;
  box-shadow: var(--shadow-card);
}
.panel h2 { font-size: 16px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; letter-spacing: -0.2px; }
.panel h2 i { color: var(--orange); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: card-in 0.5s ease both; box-shadow: var(--shadow-sm);
}
.stat-card:nth-child(1){animation-delay:.05s}.stat-card:nth-child(2){animation-delay:.1s}.stat-card:nth-child(3){animation-delay:.15s}.stat-card:nth-child(4){animation-delay:.2s}
.stat-card:hover { border-color: var(--border-muted); }
.stat-card i { font-size: 20px; color: var(--orange); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(20,184,166,0.1); border-radius: 10px; flex-shrink: 0; }
.stat-card div { display: flex; flex-direction: column; min-width: 0; }
.stat-value { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 2px; }

.content-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }

/* Linked accounts */
.linked-account-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(0,0,0,0.2); border-radius: var(--radius-sm); margin-bottom: 8px; border: 1px solid var(--border-subtle); }
.linked-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.linked-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.linked-info strong { font-size: 13px; font-weight: 600; }
.linked-info span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linked-check { color: var(--success); font-size: 16px; }

.security-info { margin-bottom: 18px; }
.security-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); padding: 7px 0; border-bottom: 1px solid var(--border-subtle); }
.security-row:last-child { border-bottom: none; }
.security-row i { color: var(--orange); width: 16px; }

.server-rules { background: rgba(0,0,0,0.15); border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--border-subtle); }
.server-rules h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.server-rules h3 i { color: var(--orange); }
.server-rules ul { list-style: none; }
.server-rules li { font-size: 13px; color: var(--text-secondary); padding: 5px 0 5px 16px; position: relative; line-height: 1.4; }
.server-rules li::before { content: '›'; position: absolute; left: 0; color: var(--orange); }

/* Footer */
.dashboard-footer { position: relative; z-index: 2; text-align: center; padding: 28px 24px; color: var(--text-muted); font-size: 12px; border-top: 1px solid var(--border-subtle); margin-top: 40px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 12px; display: flex; align-items: center; gap: 5px; transition: color 0.15s; }
.footer-links a:hover { color: var(--orange); }

/* ═══════════════════════════════════════════════════════════════
   STAFF / ABOUT / CONTACT
   ═══════════════════════════════════════════════════════════════ */
.staff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 24px; }
.staff-card {
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: card-in 0.5s ease both; box-shadow: var(--shadow-sm);
}
.staff-card:hover { border-color: var(--border-muted); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.staff-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.staff-role { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.role-owner   { background: rgba(20,184,166,0.12); color: var(--orange); }
.role-admin   { background: rgba(239,68,68,0.12); color: #fca5a5; }
.role-dev     { background: rgba(34,197,94,0.12); color: #86efac; }
.role-mod     { background: rgba(88,101,242,0.12); color: #5eead4; }
.role-support { background: rgba(102,192,244,0.12); color: var(--steam-light); }
.role-event   { background: rgba(20,184,166,0.12); color: var(--orange); }
.staff-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.staff-group { margin-bottom: 40px; }
.staff-group-header { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); }
.staff-group-header h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.staff-group-header h2 i { color: var(--orange); font-size: 18px; }
.staff-avatar-img { width: 100px; height: 100px; margin: 0 auto 14px; border-radius: 50%; padding: 3px; background: var(--orange); }
.staff-avatar-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-base); display: block; }
.staff-realname { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.staff-links { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.staff-links a { color: var(--text-muted); font-size: 15px; transition: color 0.15s, transform 0.15s; }
.staff-links a:hover { color: var(--orange); transform: translateY(-2px); }

.cta-panel { display: flex; align-items: center; gap: 22px; background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; animation: card-in 0.5s ease both; }
.cta-panel > i { font-size: 32px; color: var(--orange); flex-shrink: 0; }
.cta-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cta-panel p { font-size: 13px; color: var(--text-secondary); }
.cta-panel > div { flex: 1; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.about-panel p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.about-panel p:last-child { margin-bottom: 0; }
.about-list { list-style: none; margin-top: 8px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); padding: 7px 0; border-bottom: 1px solid var(--border-subtle); }
.about-list li:last-child { border-bottom: none; }
.about-list li i { color: var(--success); }

/* ═══════════════════════════════════════════════════════════════
   CASE STATUS BADGES + CATEGORY BADGES
   ═══════════════════════════════════════════════════════════════ */
.case-status {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; padding: 3px 10px; border-radius: 20px;
}
.case-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-new         { background: rgba(20,184,166,0.12);  color: #5eead4; }
.status-in_progress { background: rgba(20,184,166,0.12);  color: #2dd4bf; }
.status-done        { background: rgba(34,197,94,0.12);   color: #86efac; }
.status-internal    { background: rgba(102,192,244,0.10); color: var(--steam-light); border: 1px solid rgba(102,192,244,0.2); }
/* VIP payment validated — shown instead of the normal status text once a
   VIP case's payment has been confirmed. No dot bullet (the emoji is the marker). */
.status-payment-done { background: rgba(212,175,55,0.16); color: #d4af37; border: 1px solid rgba(212,175,55,0.4); }
.status-payment-done::before { display: none; }

.case-cat-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px; padding: 2px 9px; border-radius: 20px;
  margin-left: 7px; vertical-align: middle; white-space: nowrap; flex-shrink: 0;
}
.cat-reports            { background: rgba(113,113,122,0.12); color: #a1a1aa;  border: 1px solid rgba(113,113,122,0.2); }
.cat-removed_whitelist  { background: rgba(88,101,242,0.15);  color: #5eead4;  border: 1px solid rgba(88,101,242,0.3); }
.cat-pending_judgement  { background: rgba(20,184,166,0.14);  color: #2dd4bf;  border: 1px solid rgba(20,184,166,0.35); }
.cat-invalid_reports    { background: rgba(113,113,122,0.12); color: #a1a1aa;  border: 1px solid rgba(113,113,122,0.2); }
.cat-player_banned      { background: rgba(239,68,68,0.12);   color: #fca5a5;  border: 1px solid rgba(239,68,68,0.3); }
.cat-player_warned      { background: rgba(234,179,8,0.12);   color: #fde047;  border: 1px solid rgba(234,179,8,0.3); }
.cat-added_whitelist    { background: rgba(34,197,94,0.12);   color: #86efac;  border: 1px solid rgba(34,197,94,0.3); }

/* ═══════════════════════════════════════════════════════════════
   STAFF CASE LAYOUT (sidebar + grid)
   ═══════════════════════════════════════════════════════════════ */
.staff-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }

/* Case detail — three stacked boxes */
.cd-box {
  background: var(--bg-panel); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); margin-bottom: 8px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cd-box-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted);
}
.cd-box-header i { color: var(--gold); font-size: 10px; }

/* Info box */
.cd-info-box { padding: 0; }
.cd-info-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 12px; padding: 18px 20px 14px;
}
.cd-info-left { min-width: 0; flex: 1; }
.cd-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cd-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0 0 6px; }
.cd-meta { font-size: 13px; color: var(--text-muted); }
.cd-info-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.cd-seen { padding: 0 20px 4px; }
#s-close-banner:not(:empty), #s-post-update-banner:not(:empty) { padding: 0 20px 10px; }

/* Actions box — thin standalone strip */
.cd-actions-box { margin-bottom: 0; }
.cd-actions-box .case-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 16px; }

/* Navbar refund sub-links */
.nav-submenu-sub { padding-left: 28px !important; font-size: 12px !important; opacity: .9; }

/* Refund category badges */
.cat-refund_active    { background: rgba(234,179,8,0.12);  color: #eab308; }
.cat-refund_invalid   { background: rgba(239,68,68,0.12);  color: var(--red); }
.cat-refund_validated { background: rgba(34,197,94,0.12);  color: var(--green); }
/* Judgment outcome badges */
.cat-player_warned       { background: rgba(234,179,8,0.12);  color: #eab308; }
.cat-player_banned       { background: rgba(239,68,68,0.12);  color: var(--red); }
.cat-player_banned_perma { background: rgba(120,0,0,0.18);    color: #f87171; }
.cat-added_whitelist     { background: rgba(34,197,94,0.12);  color: var(--green); }

/* ═══════════════════════════════════════════════════════════════
   REFUND MODALS
   ═══════════════════════════════════════════════════════════════ */
.rv-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 3000; padding: 20px;
}
.rv-overlay.hidden { display: none; }
.rv-modal {
  background: var(--bg-panel); border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg); width: 100%; max-width: 480px;
  display: flex; flex-direction: column; max-height: 90vh; overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-deep);
}
.rv-modal-wide { max-width: 620px; }
.rv-modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-heading); font-size: 14px; font-weight: 700;
  color: var(--text-primary); display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.rv-modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.rv-modal-foot {
  padding: 12px 20px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0;
}
.rv-label { font-family: var(--font-heading); font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; display: block; }
.rv-label-sm { margin-top: 4px; }
.rv-req { color: var(--red); }
.rv-textarea, .rv-input {
  width: 100%; background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 13px; padding: 8px 11px;
  resize: vertical; outline: none; box-sizing: border-box;
  transition: border-color .14s;
}
.rv-textarea:focus, .rv-input:focus { border-color: var(--orange); }
.rv-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Spawn item search */
.rv-search-wrap { position: relative; }
.rv-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 12px; pointer-events: none; }
.rv-search-input {
  width: 100%; background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body);
  font-size: 13px; padding: 8px 11px 8px 30px; outline: none; box-sizing: border-box; transition: border-color .14s;
}
.rv-search-input:focus { border-color: var(--orange); }
.rv-item-results {
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); margin-top: 4px; max-height: 240px; overflow-y: auto;
  display: flex; flex-direction: column;
}
.rv-item-results.hidden { display: none; }
.rv-item-opt {
  background: none; border: none; color: var(--text-primary); font-family: var(--font-body);
  font-size: 13px; text-align: left; padding: 8px 12px; cursor: pointer; transition: background .1s;
}
.rv-item-opt:hover { background: var(--bg-panel-3); color: var(--orange); }
.rv-item-empty { padding: 10px 12px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* Selected items list */
.rv-selected-wrap.hidden { display: none; }
.rv-selected-list { display: flex; flex-direction: column; gap: 6px; }
.rv-sel-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 6px 10px;
}
.rv-sel-name { flex: 1; font-size: 13px; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.rv-sel-name i { color: var(--gold); }
.rv-sel-qty-wrap { display: flex; align-items: center; gap: 4px; }
.rv-qty-btn {
  width: 24px; height: 24px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle);
  background: var(--bg-panel-3); color: var(--text-primary); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background .1s;
}
.rv-qty-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.rv-qty-input {
  width: 54px; text-align: center; background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 13px; padding: 3px 6px;
  outline: none;
}
.rv-sel-remove {
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px;
  padding: 4px 6px; border-radius: var(--radius-sm); transition: color .1s, background .1s;
}
.rv-sel-remove:hover { color: var(--red); background: rgba(239,68,68,.1); }

/* Chat box */
.cd-chat-box .dc-thread { padding: 0 18px; max-height: 60vh; overflow-y: auto; }
.cd-chat-box .composer { padding: 14px 18px 16px; border-top: 1px solid var(--border-subtle); margin-top: 0; }
.category-sidebar { background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 14px; height: fit-content; position: sticky; top: 24px; box-shadow: var(--shadow-sm); }
.category-sidebar h3 { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 10px; padding: 0 6px; font-weight: 600; }
.category-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none; font-size: 13px; cursor: pointer;
  transition: all 0.15s ease; border: none; background: none; width: 100%; text-align: left; font-family: var(--font-body);
}
.category-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.category-item.active { background: rgba(20,184,166,0.1); color: var(--orange); font-weight: 600; }
.category-item i { width: 14px; font-size: 13px; }
.category-item.category-archive { margin-top: 8px; border-top: 1px solid var(--border-subtle); padding-top: 12px; }
.category-item.category-archive i { color: var(--text-muted); }
.category-item.category-archive.active i { color: var(--orange); }

/* Sidebar: 3-group accordion */
.cat-section-group { margin-bottom: 4px; }
.cat-group-header {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: var(--radius-sm); border: none;
  background: none; color: var(--text-muted); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  font-family: var(--font-body); cursor: pointer; text-align: left;
  transition: color 0.15s ease;
}
.cat-group-header:hover { color: var(--text-secondary); }
.cat-group-header.open { color: var(--text-primary); }
.cat-group-header i:first-child { font-size: 11px; width: 13px; }
.cat-group-header span { flex: 1; }
.cat-group-arrow { font-size: 9px !important; width: auto !important; transition: transform 0.2s ease; }
.cat-group-header.open .cat-group-arrow { transform: rotate(180deg); }
.cat-group-body {
  overflow: hidden; max-height: 0; padding-left: 8px; margin-bottom: 0;
  transition: max-height 0.25s ease, margin-bottom 0.25s ease;
}
.cat-group-body.open { max-height: 600px; margin-bottom: 4px; }
.cat-item-disabled { opacity: 0.4; cursor: not-allowed !important; pointer-events: none; }
/* Per-category archive accordion (judgment outcome panels) */
.jcat-arc-section { margin-top: 12px; border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; }
.jcat-arc-header { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; background: var(--bg-card); font-size: 13px; font-weight: 600; color: var(--text-muted); user-select: none; }
.jcat-arc-header:hover { background: var(--bg-hover); color: var(--text-primary); }
.jcat-arc-arrow { margin-left: 0; transition: transform .2s; }
.jcat-arc-section:not(.collapsed) .jcat-arc-arrow { transform: rotate(180deg); }
.jcat-arc-body { display: block; }
.jcat-arc-section.collapsed .jcat-arc-body { display: none; }
.cat-sub-divider { display: flex; align-items: center; gap: 6px; padding: 8px 6px 4px; }
.cat-sub-divider span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); white-space: nowrap; }
.cat-sub-divider::before, .cat-sub-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }
.cat-sub-divider::before { display: none; }
.cat-soon-badge {
  margin-left: auto; font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; background: rgba(20,184,166,0.12); color: var(--orange);
  border: 1px solid rgba(20,184,166,0.2); border-radius: 4px; padding: 1px 5px;
}

/* Case status timeline (player view — my-reports) */
.case-timeline { display: flex; flex-direction: column; gap: 0; margin: 4px 0 12px; }
.timeline-step { display: flex; gap: 10px; }
.timeline-icon-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-icon {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px; flex-shrink: 0;
  background: var(--bg-panel-3); border: 2px solid var(--border-subtle);
  color: var(--text-muted); transition: all 0.2s ease;
}
.timeline-connector { flex: 1; width: 2px; background: var(--border-subtle); margin: 3px auto; min-height: 16px; }
.timeline-content { padding: 5px 0 16px; min-width: 0; }
.timeline-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; }
.timeline-desc { font-size: 11px; color: var(--text-muted); line-height: 1.45; }
.timeline-step.done .timeline-icon { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); color: var(--success); }
.timeline-step.done .timeline-connector { background: rgba(16,185,129,0.3); }
.timeline-step.done .timeline-label { color: var(--success); }
.timeline-step.done .timeline-desc { color: var(--text-secondary); }
.timeline-step.active .timeline-icon { background: rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.4); color: var(--orange); box-shadow: 0 0 0 4px rgba(20,184,166,0.07); }
.timeline-step.active .timeline-label { color: var(--orange); }
.timeline-step.active .timeline-desc { color: var(--text-secondary); }
@media (min-width: 600px) {
  .case-timeline { flex-direction: row; align-items: flex-start; }
  .timeline-step { flex-direction: column; align-items: center; text-align: center; flex: 1; }
  /* Icon centered in its column (not left-aligned) so it lines up with its
     label below, and the connector is an absolutely-positioned bridge from
     this icon's center to the next one's — instead of being crammed into
     the same row as the icon, which pushed the icon left and left a gap
     of unused space after the last icon instead of reaching the box edge. */
  .timeline-icon-wrap { flex-direction: row; justify-content: center; width: 100%; position: relative; }
  .timeline-icon { position: relative; z-index: 1; }
  .timeline-connector {
    position: absolute; top: 50%; left: 50%; width: 100%; height: 2px;
    margin: 0; min-height: 0; min-width: 0; transform: translateY(-50%); z-index: 0;
  }
  .timeline-content { padding: 8px 4px 0; }
}

/* Filter toolbar — horizontal single-line bar */
.ftb-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.ftb-group {
  display: flex; align-items: center; gap: 1px;
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 3px 5px;
}

.ftb-chip {
  padding: 4px 9px; border-radius: var(--radius-sm); border: none;
  background: transparent; color: var(--text-muted);
  font-family: var(--font-heading); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.14s; white-space: nowrap;
}
.ftb-chip:hover { background: var(--bg-panel-3); color: var(--text-primary); }
.ftb-chip.active { background: rgba(20,184,166,0.12); color: var(--orange); }

/* Sort — single toggle */
.ftb-sort-toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
  border: none; background: transparent; border-radius: var(--radius-sm);
  color: var(--text-muted); font-family: var(--font-heading);
  font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.14s;
  white-space: nowrap; line-height: 1.4;
}
.ftb-sort-toggle:hover { background: var(--bg-panel-3); color: var(--orange); }

/* Date group */
.ftb-date-group { display: flex; align-items: center; gap: 2px; }
.ftb-date-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border: none; background: transparent; border-radius: var(--radius-sm);
  color: var(--text-muted); font-family: var(--font-heading); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.14s; white-space: nowrap; line-height: 1.4;
}
.ftb-date-btn:hover { background: var(--bg-panel-3); color: var(--text-primary); }
.ftb-date-btn.ftb-has-val { color: var(--orange); }
.ftb-date-btn i { font-size: 10px; }
.ftb-date-dash { color: var(--border-muted); font-size: 10px; user-select: none; }
.ftb-date-clear {
  width: 18px; height: 18px; border: none; background: transparent;
  color: var(--text-muted); font-size: 9px; cursor: pointer;
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  transition: all 0.14s;
}
.ftb-date-clear:hover { background: rgba(239,68,68,0.12); color: var(--error); }

/* ── Custom date-range picker ─────────────────────────────── */
.dp-range {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 3px 6px;
  transition: border-color 0.15s;
}
.dp-range:has(.dp-has-val) { border-color: rgba(20,184,166,0.35); }
.dp-trigger {
  display: flex; align-items: center; gap: 6px; padding: 4px 8px;
  background: transparent; border: none; border-radius: 4px;
  color: var(--text-muted); font-family: var(--font-heading); font-size: 12px;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.dp-trigger:hover { background: var(--bg-panel-3); color: var(--text-primary); }
.dp-trigger i { font-size: 10px; }
.dp-trigger.dp-has-val { color: var(--orange); }
.dp-range-arrow { color: var(--border-muted); font-size: 11px; padding: 0 2px; pointer-events: none; }
.dp-clear-btn {
  width: 22px; height: 22px; border: none; background: transparent;
  color: var(--text-muted); font-size: 10px; cursor: pointer; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s; margin-left: 2px;
}
.dp-clear-btn:hover { background: rgba(239,68,68,0.12); color: var(--error); }

/* Calendar popup */
.dp-popup {
  position: absolute; z-index: 9999; width: 272px;
  background: var(--bg-panel); border: 1px solid var(--border-muted);
  border-radius: var(--radius-md); box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  padding: 14px; display: none; animation: dpFadeIn 0.12s ease;
}
.dp-popup.open { display: block; }
@keyframes dpFadeIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

.dp-nav-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.dp-month-lbl {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.3px;
}
.dp-nav-btn {
  width: 28px; height: 28px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); background: var(--bg-panel-2);
  color: var(--text-secondary); font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.dp-nav-btn:hover { border-color: var(--orange); color: var(--orange); background: rgba(20,184,166,0.06); }

.dp-weekdays {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 6px;
}
.dp-weekdays span {
  text-align: center; font-size: 10px; font-weight: 700;
  text-transform: uppercase; color: var(--text-muted); padding: 2px 0;
}

.dp-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }

.dp-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-family: var(--font-heading); border: none;
  background: transparent; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-secondary); transition: background 0.1s, color 0.1s;
  position: relative;
}
.dp-day:hover { background: var(--bg-panel-3); color: var(--text-primary); }
.dp-empty { cursor: default; pointer-events: none; }

.dp-today { color: var(--orange); font-weight: 700; }
.dp-today::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--orange);
}

.dp-in-range { background: rgba(20,184,166,0.1); border-radius: 0; color: var(--text-primary); }
.dp-sel { background: var(--orange) !important; color: #fff !important; font-weight: 700; }
.dp-sel:hover { background: #ea6a0a !important; }
.dp-from:not(.dp-to) { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.dp-to:not(.dp-from)  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.dp-from.dp-to        { border-radius: var(--radius-sm); }

.dp-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-subtle);
}
.dp-footer-btn {
  padding: 4px 10px; border-radius: var(--radius-sm); font-size: 11px;
  font-family: var(--font-heading); font-weight: 600; cursor: pointer;
  border: 1px solid var(--border-subtle); background: var(--bg-panel-2);
  color: var(--text-secondary); transition: all 0.15s;
}
.dp-footer-btn:hover { border-color: var(--orange); color: var(--orange); background: rgba(20,184,166,0.06); }
.dp-footer-cancel:hover { border-color: var(--border-muted); color: var(--text-primary); background: var(--bg-panel-3); }

/* Filter chips */
.filter-chips { display: flex; gap: 6px; margin-bottom: 0; flex-wrap: wrap; }
.filter-chip {
  padding: 7px 14px; border-radius: var(--radius-sm); background: var(--bg-panel-2);
  border: 1px solid var(--border-subtle); color: var(--text-secondary);
  font-family: var(--font-heading); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--border-muted); color: var(--text-primary); background: var(--bg-panel-3); }
.filter-chip:active { transform: scale(0.97); }
.filter-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.filter-chip.active { background: rgba(20,184,166,0.1); border-color: rgba(20,184,166,0.3); color: var(--orange); }

/* ═══════════════════════════════════════════════════════════════
   CASE CARDS (grid + list)
   ═══════════════════════════════════════════════════════════════ */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 14px; }
.case-square {
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-left: 3px solid var(--border-subtle);
  border-radius: var(--radius); padding: 14px; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: flex; flex-direction: column; gap: 9px; min-height: 130px; position: relative;
  box-shadow: var(--shadow-sm);
}
.case-square:hover { border-color: var(--border-muted); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.status-border-new         { border-left-color: #5eead4; }
.status-border-in_progress { border-left-color: var(--orange); }
.status-border-done        { border-left-color: #86efac; }
.case-square-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.case-square-num { font-family: monospace; font-size: 11px; font-weight: 700; color: var(--orange); }
.case-square-type { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }
.case-square-type i { color: var(--orange); margin-right: 4px; }
.case-square-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.case-square-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border-subtle); padding-top: 9px; }
.case-square-foot i { color: var(--orange); margin-right: 3px; }
.case-square-time { font-size: 10px; }
.case-square-att { position: absolute; top: 12px; right: 12px; }

/* Thumbnail */
.case-square.has-thumb { padding-top: 0; overflow: hidden; }
.case-square-thumb { position: relative; margin: -1px -14px 4px -14px; height: 120px; background: #000; overflow: hidden; }
.case-square-thumb img, .case-square-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-square-thumb .thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); color: #fff; font-size: 24px; pointer-events: none; }

/* My Reports — category sections */
.cat-section { margin-bottom: 20px; }
.cat-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); border-left: 3px solid var(--orange);
  cursor: pointer; user-select: none;
  transition: background 0.15s;
}
.cat-section-header:hover { background: var(--bg-panel-3); }
.cat-section-header--archive { border-left-color: var(--text-muted); opacity: 0.85; }
.cat-section-header--archive .cat-section-icon { color: var(--text-muted); }
.cat-section-icon { color: var(--orange); font-size: 15px; flex-shrink: 0; }
.cat-section-title { font-weight: 700; font-size: 13.5px; flex: 1; }
.cat-section-chips { display: flex; gap: 6px; }
.cat-chip {
  font-size: 11px; padding: 2px 8px;
  background: var(--bg-panel-3); border: 1px solid var(--border-subtle);
  border-radius: 20px; color: var(--text-muted);
}
.cat-chip-open { border-color: var(--orange); color: var(--orange); }
.cat-section-new {
  font-size: 12px; padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--bg-panel-3); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); text-decoration: none; white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.cat-section-new:hover { border-color: var(--orange); color: var(--orange); }
.cat-no-reports {
  padding: 10px 14px; color: var(--text-muted); font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.cat-no-reports a { color: var(--orange); text-decoration: none; }
.cat-no-reports a:hover { text-decoration: underline; }
.cat-toggle-arrow {
  font-size: 11px; color: var(--text-muted); flex-shrink: 0;
  transition: transform 0.2s ease;
}
/* collapsed state */
.cat-section.collapsed .cat-toggle-arrow { transform: rotate(-90deg); }
.cat-section-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.22s ease, opacity 0.18s ease;
  opacity: 1;
  margin-top: 8px;
  padding-left: 4px;
}
.cat-section-body > .case-list {
  overflow: hidden;
  min-height: 0;
}
.cat-section.collapsed .cat-section-body {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
}

/* List rows */
.case-list { display: flex; flex-direction: column; gap: 6px; }
.case-list-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-left: 3px solid var(--border-subtle);
  border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.case-list-row:hover { border-color: rgba(255,255,255,0.12); background: var(--bg-panel-3); }
.case-list-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.case-list-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-list-sub { font-size: 11.5px; color: var(--text-muted); }

/* Old case-row style (reports page) */
.case-row { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); margin-bottom: 8px; transition: all 0.15s ease; cursor: pointer; }
.case-row:hover { border-color: var(--border-muted); }
.case-num { font-family: monospace; font-size: 12px; color: var(--orange); font-weight: 700; min-width: 100px; }
.case-meta { flex: 1; min-width: 0; }
.case-meta h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-meta span { font-size: 11.5px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   STAFF ACTION BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.case-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.case-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  border: 1px solid var(--border-subtle); background: var(--bg-panel-3); color: var(--text-secondary);
  transition: all 0.15s ease; text-decoration: none;
}
.case-btn:hover { background: var(--bg-panel-2); color: var(--text-primary); border-color: var(--border-muted); box-shadow: var(--shadow-sm); }
.case-btn:active:not(:disabled) { transform: scale(0.97); box-shadow: none; }
.case-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.case-btn-claim   { background: rgba(34,197,94,0.12); color: #86efac; border-color: rgba(34,197,94,0.25); }
.case-btn-claim:hover { background: rgba(34,197,94,0.2); }
.case-btn-progress { background: var(--orange); color: #fff; border: none; }
.case-btn-progress:hover { background: var(--orange-deep); }
.case-btn-close { background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.25); }
.case-btn-close:hover { background: rgba(239,68,68,0.2); }
.case-btn-cancel { background: var(--bg-panel-3); color: var(--text-secondary); }
.case-btn-confirm { background: rgba(34,197,94,0.12); color: #86efac; border-color: rgba(34,197,94,0.25); }
.case-btn-confirm:hover { background: rgba(34,197,94,0.2); }
.case-btn-perma { background: rgba(239,68,68,0.08); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.case-btn-perma:hover { background: rgba(239,68,68,0.18); box-shadow: 0 0 0 1px rgba(239,68,68,0.3); }
.case-btn-ban { background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.25); }
.case-btn-ban:hover { background: rgba(239,68,68,0.2); }
.case-btn-admincall { background: rgba(88,101,242,0.12); color: #5eead4; border-color: rgba(88,101,242,0.25); }
.case-btn-admincall:hover { background: rgba(88,101,242,0.22); }
.case-btn-invalid { background: var(--bg-panel-3); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.case-btn-invalid:hover { background: rgba(239,68,68,0.1); }
.case-btn-warn { background: rgba(234,179,8,0.12); color: #fde047; border-color: rgba(234,179,8,0.25); }
.case-btn-warn:hover { background: rgba(234,179,8,0.2); }
.case-btn:disabled, .case-btn[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; pointer-events: none; }

/* Close banner */
.close-banner {
  display: flex; align-items: center; gap: 12px; background: rgba(20,184,166,0.06);
  border: 1px solid rgba(20,184,166,0.2); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; flex-wrap: wrap;
}
.close-banner-text { font-size: 13px; color: var(--text-primary); flex: 1; min-width: 0; }
.close-banner-text i { color: var(--orange); margin-right: 6px; }
.close-banner-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Quota banner */
.quota-banner { display: flex; align-items: center; gap: 10px; background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 16px; font-size: 13px; }
.quota-banner.full { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.2); }
.quota-banner i { color: var(--orange); }
.quota-banner.full i { color: var(--error); }

/* Reporter bar (kept but minimal) */
.reporter-bar { display: flex; align-items: center; gap: 10px; background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.reporter-bar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(20,184,166,0.35); }
.reporter-bar-info { flex: 1; min-width: 0; }
.reporter-bar-name { font-size: 14px; font-weight: 600; }

/* Fields */
.case-fields { background: var(--bg-panel-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; }
.cf-row { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border-subtle); }
.cf-row:last-child { border-bottom: none; }
.cf-label { min-width: 150px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.cf-val { color: var(--text-primary); font-size: 13px; }
.case-fields-plain { margin: 8px 0; }
.field-line { margin: 3px 0; font-size: 13.5px; color: var(--text-primary); }
.field-label { color: var(--text-muted); font-weight: 600; }

/* Seen bar */
.seen-bar { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; color: var(--text-muted); }
.seen-bar > i { color: rgba(20,184,166,.5); font-size: .8rem; flex-shrink: 0; }
.seen-avatars { display: flex; align-items: center; }
.seen-av {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--bg-base, #0d1117);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; font-family: var(--font-heading, 'Rajdhani', sans-serif);
  cursor: default; flex-shrink: 0; position: relative;
  transition: transform .15s;
}
.seen-av:not(:first-child) { margin-left: -8px; }
.seen-av:hover { transform: translateY(-2px) scale(1.1); z-index: 10; }
.seen-av .seen-tip {
  display: none; position: absolute; bottom: calc(100% + 7px); left: 50%;
  transform: translateX(-50%); background: var(--bg-panel-3, #1c2128);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 7px 11px; white-space: nowrap; z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); pointer-events: none; min-width: 120px;
}
.seen-av:hover .seen-tip { display: block; }
.seen-tip-name { font-weight: 700; font-size: .8rem; color: var(--text-primary, #c9d1d9); font-family: var(--font-heading, 'Rajdhani', sans-serif); }
.seen-tip-role { font-size: .68rem; color: var(--text-muted); margin-top: 2px; }
.seen-tip-time { font-size: .67rem; color: rgba(20,184,166,.7); margin-top: 3px; }
.seen-overflow {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--bg-base, #0d1117);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.35);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .58rem; font-weight: 800; margin-left: -8px; font-family: monospace;
}
.seen-label { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }

/* Composer */
.composer { margin-top: 14px; position: relative; }
.composer textarea { width: 100%; background: var(--bg-panel-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-primary); padding: 11px; font-family: var(--font-body); font-size: 14px; resize: vertical; min-height: 60px; transition: border-color 0.15s ease; }
.composer textarea:focus { outline: none; border-color: var(--orange); box-shadow: var(--focus-ring); }

/* Message text inputs (composer + inline edit box), both player and staff
   sides — pinned above the broad .page-player/.page-admin input,textarea
   { background: transparent; border: none } reset (same specificity, later
   in the cascade) which would otherwise strip these back to a see-through
   box with dim inherited text. Keeps the dark input background and gives
   the typed text a clearly bright, readable gray. */
body.page-player .composer textarea,
body.page-admin .composer textarea,
body.page-player .msg-edit-box textarea,
body.page-admin .msg-edit-box textarea {
  background: var(--bg-panel-3);
  border: 1px solid var(--border-subtle);
  color: #e8eaed;
}
body.page-player .composer textarea:focus,
body.page-admin .composer textarea:focus,
body.page-player .msg-edit-box textarea:focus,
body.page-admin .msg-edit-box textarea:focus {
  border-color: var(--orange);
}
.composer-attach-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.paste-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.paste-hint i { color: var(--orange); }

/* Markdown toolbar */
.md-toolbar { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.md-btn { background: var(--bg-panel-3); border: 1px solid var(--border-subtle); color: var(--text-secondary); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 12px; transition: all 0.15s ease; }
.md-btn:hover { border-color: var(--orange); color: var(--orange); }

/* Reply preview */
.reply-preview { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border-left: 2px solid var(--orange); padding: 7px 10px; border-radius: 5px; margin-bottom: 7px; font-size: 12.5px; color: var(--text-secondary); }
.reply-preview strong { color: #5eead4; }
.reply-preview .reply-cancel { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; }
.reply-preview .reply-cancel:hover { color: var(--error); }

/* Staged uploads */
.staged-item { display: flex; align-items: center; gap: 10px; background: var(--bg-panel-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 9px 11px; }
.staged-thumb { width: 48px; height: 48px; border-radius: 7px; flex-shrink: 0; object-fit: cover; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 18px; overflow: hidden; }
.staged-thumb img, .staged-thumb video { width: 100%; height: 100%; object-fit: cover; }
.staged-info { flex: 1; min-width: 0; }
.staged-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staged-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; margin-top: 5px; }
.staged-bar-fill { height: 100%; width: 0%; background: var(--orange); transition: width 0.2s ease; }
.staged-pct { font-size: 11px; color: var(--orange); font-weight: 700; min-width: 36px; text-align: right; }
.staged-done .staged-pct { color: var(--success); }
.staged-remove { background: none; border: none; color: var(--error); cursor: pointer; padding: 4px; }
.staged-uploading { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════
   DISCORD-STYLE CHAT THREAD
   ═══════════════════════════════════════════════════════════════ */
.dc-thread { display: flex; flex-direction: column; gap: 2px; margin: 14px 0; }
.dc-msg { display: flex; gap: 14px; padding: 5px 10px; position: relative; border-radius: 6px; transition: background 0.15s ease; }
.dc-msg:hover { background: rgba(255,255,255,0.025); }
.dc-msg.dc-msg-flash { background-color: rgba(20,184,166,0.1); }
.dc-msg.dc-grouped { padding-top: 1px; padding-bottom: 1px; }
.dc-msg.dc-grouped .dc-pfp-wrap { visibility: hidden; height: 0; }
.dc-pfp-wrap { width: 40px; flex-shrink: 0; }
.dc-pfp { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dc-body { flex: 1; min-width: 0; }
.dc-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dc-author { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.dc-author.dc-staff { color: var(--orange); }
.dc-role-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; background: var(--orange); color: #fff; padding: 1px 6px; border-radius: 4px; }
.dc-role-tag.dc-illegal { background: var(--error); }
.dc-role-tag.dc-report-tag { background: var(--text-muted); }
.dc-did { font-family: monospace; font-size: 10.5px; color: #5eead4; background: rgba(20,184,166,0.1); border: none; cursor: pointer; padding: 1px 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }
.dc-did:hover { background: rgba(20,184,166,0.2); }
.dc-time { font-size: 10.5px; color: var(--text-muted); }
.dc-text { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin-top: 2px; word-wrap: break-word; }
.dc-text a { color: #2dd4bf; }
.dc-edited { font-size: 10px; color: var(--text-muted); }
.dc-media { margin-top: 6px; }
.dc-media img, .dc-media video { max-width: 380px; max-height: 280px; border-radius: 8px; display: block; border: 1px solid var(--border-subtle); }
.dc-deleted { color: var(--text-muted); font-style: italic; font-size: 13px; margin-top: 2px; }
.dc-sys { text-align: center; font-size: 12px; color: var(--text-muted); padding: 7px 0; margin: 3px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.dc-sys i { color: var(--orange); }
.dc-controls { position: absolute; top: -10px; right: 10px; display: none; background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: 7px; overflow: hidden; box-shadow: var(--shadow-sm); }
.dc-msg:hover .dc-controls { display: flex; }
.dc-ctrl { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px 8px; font-size: 12.5px; }
.dc-ctrl:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.dc-ctrl-del:hover { color: var(--error); }
.dc-reply-ref { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); margin-bottom: 3px; padding: 2px 7px; margin-left: -7px; border-radius: 4px; }
.dc-reply-ref.dc-reply-clickable { cursor: pointer; }
.dc-reply-ref.dc-reply-clickable:hover { background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.dc-reply-ref i { font-size: 10px; }
.dc-reply-author { color: var(--text-muted); font-weight: 600; }
.dc-reply-text { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.thread-empty { color: var(--text-muted); font-size: 13px; text-align: center; padding: 20px; }

/* Markdown */
.md-pre { background: rgba(0,0,0,0.3); border-radius: 7px; padding: 9px 11px; margin: 7px 0; overflow-x: auto; font-size: 12.5px; }
.md-code { background: rgba(0,0,0,0.3); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; font-family: monospace; }
.md-quote { border-left: 2px solid var(--orange); padding-left: 10px; margin: 5px 0; color: var(--text-secondary); }
.msg-edit-box { width: 100%; }
.msg-edit-box textarea { width: 100%; background: var(--bg-panel-3); border: 1px solid var(--orange); border-radius: 7px; color: var(--text-primary); padding: 8px; font-family: var(--font-body); font-size: 13px; resize: vertical; }
.msg-edit-actions { display: flex; gap: 6px; margin-top: 6px; }

/* @mention */
.mention-dropdown { position: absolute; bottom: calc(100% + 6px); left: 0; width: 260px; max-height: 200px; overflow-y: auto; background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); box-shadow: var(--shadow-deep); z-index: 30; }
.mention-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; cursor: pointer; font-size: 12.5px; color: var(--text-secondary); }
.mention-item:hover, .mention-item.mention-highlight { background: rgba(20,184,166,0.1); color: var(--orange); }
.mention-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mention-role-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.mention-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-count { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.dc-mention { background: rgba(20,184,166,0.12); color: #5eead4; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.dc-mention-role { background: rgba(20,184,166,0.12); color: var(--orange); }

/* Copy / Discord chips */
.discord-chip, .copy-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-secondary);
  background: var(--bg-panel-3); border: 1px solid var(--border-subtle); padding: 4px 9px; border-radius: 7px;
}
.discord-chip i.fa-discord { color: #5eead4; }
.discord-chip code, .copy-chip code { color: var(--text-primary); font-size: 11.5px; }
.copy-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px 4px; border-radius: 4px; transition: color 0.12s; }
.copy-btn:hover { color: var(--orange); }
.copy-btn.copied { color: var(--success); }

/* ═══════════════════════════════════════════════════════════════
   MODALS + TOASTS
   ═══════════════════════════════════════════════════════════════ */
.uim-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.80); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s ease; padding: 20px; }
.uim-overlay.uim-show { opacity: 1; }
.uim-box { background: var(--bg-panel-2); border: 1px solid var(--border-muted); border-radius: var(--radius-lg); padding: 26px 24px 20px; max-width: 420px; width: 100%; box-shadow: var(--shadow-card), var(--shadow-deep); transform: translateY(12px) scale(0.98); transition: transform 0.2s ease; text-align: center; }
.uim-show .uim-box { transform: translateY(0) scale(1); }
.uim-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(20,184,166,0.1); color: var(--orange); font-size: 22px; }
.uim-icon-danger { background: rgba(239,68,68,0.1); color: var(--error); }
.uim-title { font-size: 18px; font-weight: 700; margin: 0 0 7px; }
.uim-msg { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 16px; white-space: pre-line; }
.uim-field { margin-bottom: 12px; text-align: left; }
.uim-input { width: 100%; background: var(--bg-panel-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-primary); padding: 11px 13px; font-family: var(--font-body); font-size: 13.5px; resize: vertical; transition: border-color 0.15s ease; }
.uim-input:focus { outline: none; border-color: var(--orange); box-shadow: var(--focus-ring); }

/* Light-gray variant — used by Change Discord (staff-whitelist.html) so the
   modal reads as a distinct gray input, not the default dark theme input. */
.uim-input-gray { background: rgb(45, 45, 48) !important; color: #ffffff !important; border-color: #6b6b70 !important; }
.uim-input-gray::placeholder { color: #9a9a9f; opacity: 1; }
.uim-err { color: var(--error); font-size: 11.5px; text-align: left; margin-bottom: 9px; }
.uim-actions { display: flex; gap: 9px; justify-content: center; }
.uim-btn { flex: 1; max-width: 170px; padding: 11px 16px; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 13.5px; border: none; transition: all 0.15s ease; }
.uim-btn-primary { background: var(--orange); color: #fff; }
.uim-btn-primary:hover { background: var(--orange-deep); }
.uim-btn-danger { background: var(--error); color: #fff; }
.uim-btn-danger:hover { background: #dc2626; }
.uim-btn-ghost { background: var(--bg-panel-3); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.uim-btn-ghost:hover { border-color: var(--border-muted); color: var(--text-primary); }
.uim-flabel { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }

#uim-toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
.uim-toast { display: flex; align-items: center; gap: 10px; background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-left: 3px solid var(--orange); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--text-primary); font-size: 13.5px; box-shadow: var(--shadow-deep); min-width: 240px; max-width: 340px; transform: translateX(120%); transition: transform 0.22s ease; }
.uim-toast-show { transform: translateX(0); }
.uim-toast-success { border-left-color: var(--success); }
.uim-toast-success i { color: var(--success); }
.uim-toast-error { border-left-color: var(--error); }
.uim-toast-error i { color: var(--error); }
.uim-toast-info i { color: var(--orange); }

/* ═══════════════════════════════════════════════════════════════
   ADMIN / TABLES / MEMBERS
   ═══════════════════════════════════════════════════════════════ */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); font-weight: 600; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.025); }

.role-pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: rgba(20,184,166,0.1); color: var(--orange); text-transform: uppercase; letter-spacing: 0.5px; }
.role-admin-pill { background: rgba(239,68,68,0.1); color: #fca5a5; }
.log-action { font-family: monospace; font-size: 11.5px; background: rgba(20,184,166,0.08); color: var(--orange); padding: 2px 7px; border-radius: 5px; }

.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.admin-tab { padding: 9px 18px; border-radius: var(--radius-sm); cursor: pointer; background: var(--bg-panel-3); border: 1px solid var(--border-subtle); color: var(--text-secondary); font-weight: 600; font-size: 13px; transition: all 0.15s ease; }
.admin-tab.active { background: rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.3); color: var(--orange); }

.members-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 14px; }
.member-card { background: var(--bg-panel-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 16px; transition: border-color 0.15s ease, box-shadow 0.15s ease; box-shadow: var(--shadow-sm); }
.member-card:hover { border-color: var(--border-muted); box-shadow: var(--shadow-md); }
.member-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.member-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(20,184,166,0.35); flex-shrink: 0; }
.member-info { min-width: 0; }
.member-name { font-size: 15px; font-weight: 700; }
.member-id { font-size: 10.5px; color: var(--text-muted); font-family: monospace; }
.member-links { display: flex; gap: 7px; margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.member-links i { color: var(--orange); }
.member-roles { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; min-height: 22px; }
.role-player-pill { background: rgba(255,255,255,0.05); color: var(--text-muted); font-size: 10px; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.member-assign { border-top: 1px solid var(--border-subtle); padding-top: 12px; }
.role-checks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.role-check { display: flex; align-items: center; gap: 9px; padding: 7px 10px; background: rgba(0,0,0,0.15); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; transition: all 0.12s ease; }
.role-check:hover { border-color: var(--orange); }
.role-check input { width: 15px; height: 15px; accent-color: var(--orange); cursor: pointer; }
.role-check input:checked + span { color: var(--orange); font-weight: 600; }
.btn-save-roles { width: 100%; padding: 9px; background: var(--orange); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: all 0.15s ease; }
.btn-save-roles:hover:not(:disabled) { background: var(--orange-deep); }
.btn-save-roles:disabled { opacity: 0.5; cursor: not-allowed; }
.save-status { display: block; text-align: center; font-size: 11.5px; margin-top: 7px; min-height: 14px; }
.admin-locked { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius-sm); color: #fca5a5; font-size: 13px; }

/* Ban list */
.ban-list { display: flex; flex-direction: column; gap: 10px; }
.ban-card { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-panel-2); border: 1px solid rgba(239,68,68,0.2); border-left: 3px solid var(--error); border-radius: var(--radius); padding: 14px; }
.ban-card.revoked { border-left-color: var(--text-muted); opacity: 0.6; }
.ban-card-icon { font-size: 20px; color: var(--error); margin-top: 2px; }
.ban-card.revoked .ban-card-icon { color: var(--text-muted); }
.ban-card-body { flex: 1; min-width: 0; }
.ban-card-name { font-size: 15px; font-weight: 700; }
.ban-card-ids { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0; }
.ban-id-chip { font-family: monospace; font-size: 10.5px; background: rgba(0,0,0,0.3); color: var(--text-secondary); padding: 2px 7px; border-radius: 5px; }
.ban-reason { font-size: 13px; color: var(--text-secondary); margin: 5px 0; }
.ban-meta { font-size: 11px; color: var(--text-muted); }
.ban-revoke-btn { background: var(--bg-panel-3); border: 1px solid var(--border-subtle); color: var(--success); padding: 7px 13px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 12.5px; white-space: nowrap; transition: border-color 0.15s ease; }
.ban-revoke-btn:hover { border-color: var(--success); }
.ban-revoked-tag { font-size: 11.5px; color: var(--text-muted); font-style: italic; }

/* Upload zone */
.upload-zone { border: 1.5px dashed var(--border-muted); border-radius: var(--radius-sm); padding: 28px 18px; text-align: center; cursor: pointer; transition: all 0.2s ease; background: rgba(0,0,0,0.1); }
.upload-zone:hover, .upload-zone.drag { border-color: var(--orange); background: rgba(20,184,166,0.04); }
.upload-zone i { font-size: 28px; color: var(--orange); margin-bottom: 10px; }
.upload-zone p { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.upload-zone span { font-size: 12px; color: var(--text-muted); }
.file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.file-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: var(--bg-panel-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-size: 13px; }
.file-item i { color: var(--orange); }
.file-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item small { color: var(--text-muted); }
.file-remove { background: none; border: none; color: var(--error); cursor: pointer; padding: 4px; }

/* ID chip */
.id-chip { display: inline-block; font-family: monospace; font-size: 10.5px; background: rgba(20,184,166,0.08); color: var(--orange); padding: 2px 7px; border-radius: 5px; margin-top: 3px; user-select: all; }

/* Illegal subnav */
.illegal-subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 3px; }
.illegal-subnav a { padding: 9px 16px; border-radius: 8px 8px 0 0; text-decoration: none; color: var(--text-secondary); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; transition: all 0.15s ease; }
.illegal-subnav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.illegal-subnav a.active { color: var(--orange); border-bottom-color: var(--orange); }
.illegal-subnav a i { margin-right: 6px; }

/* Wide layout */
.dashboard-main.page-wide { max-width: none; }

/* Required star */
.req-star { color: var(--error); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .hero-card { flex-direction: column; padding: 28px 22px; gap: 24px; }
  .hero-content { max-width: 100%; }
  .hero-art { width: 120px; height: 120px; }
  .hero-icon { font-size: 70px; }
  .staff-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; }
  .staff-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { width: 60px; }
  .navbar .nav-brand span, .navbar #nav-username, .navbar .nav-link span, .navbar .nav-caret { display: none; }
  .navbar .nav-brand { padding: 18px 14px; justify-content: center; }
  .navbar .nav-link { justify-content: center; padding: 10px; }
  .navbar .nav-link i { width: auto; }
  .navbar .nav-right { padding: 10px 6px; }
  .navbar .nav-user { justify-content: center; padding: 8px; }
  .dashboard-main { margin-left: 60px; padding: 20px 16px; }
  .dashboard-main.page-wide { margin-left: 60px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 22px 18px; }
  .panel { padding: 18px; }
  .staff-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 26px; }
}

/* ─── Public nav auth buttons (unauthenticated sidebar) ─────── */
.pub-nav-auth { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 10px 8px; border-top: 1px solid var(--border-subtle); }
.pub-nav-signin, .pub-nav-register {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: all 0.15s ease; white-space: nowrap; overflow: hidden;
}
.pub-nav-signin { background: var(--bg-panel-3); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.pub-nav-signin:hover { border-color: var(--border-muted); color: var(--text-primary); }
.pub-nav-register { background: var(--orange); color: #fff; justify-content: center; }
.pub-nav-register:hover { background: var(--orange-deep); }
@media (max-width: 768px) {
  .pub-nav-auth { padding: 8px 4px; }
  .pub-nav-signin span, .pub-nav-register span { display: none; }
  .pub-nav-signin, .pub-nav-register { justify-content: center; padding: 9px; }
}

/* ═══════════════════════════════════════════════════════════════
   PUBLIC HOMEPAGE
   ═══════════════════════════════════════════════════════════════ */
.home-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 40px 0 48px; max-width: 1000px;
}
.home-hero-text { flex: 1; min-width: 0; }
.home-hero-title { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin: 6px 0 14px; }
.home-hero-sub { color: var(--text-secondary); font-size: 16px; line-height: 1.7; max-width: 480px; margin-bottom: 28px; }
.home-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.home-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
  border: 1.5px solid var(--border-muted); border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 600;
  transition: all 0.2s ease;
}
.home-btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.home-hero-art { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 200px; }
.home-hero-icon { font-size: 110px; color: var(--orange); filter: drop-shadow(0 0 30px rgba(20,184,166,0.3)); animation: float-icon 5s ease-in-out infinite; }

.home-status-bar {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: 30px; padding: 8px 18px; font-size: 13px; color: var(--text-secondary);
  margin-bottom: 40px;
}
.home-status-sep { color: var(--border-muted); }

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
}
.home-card {
  background: var(--bg-panel-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 22px 20px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.home-card:hover { border-color: var(--orange); box-shadow: 0 0 0 1px rgba(20,184,166,0.15), var(--shadow-md); transform: translateY(-2px); }
.home-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(20,184,166,0.1); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.home-card h3 { font-size: 15px; font-weight: 700; margin: 0; }
.home-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; flex: 1; margin: 0; }
.home-card-link { font-size: 12.5px; color: var(--orange); font-weight: 600; display: flex; align-items: center; gap: 5px; }
@media (max-width: 900px) {
  .home-cards { grid-template-columns: repeat(2,1fr); }
  .home-hero-title { font-size: 34px; }
  .home-hero-art { display: none; }
}
@media (max-width: 600px) {
  .home-cards { grid-template-columns: 1fr; }
  .home-hero-title { font-size: 28px; }
  .home-hero-sub { font-size: 14px; }
}

/* ─── Miscellaneous utils ────────────────────────────────────── */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.btn-loader { display: inline-flex; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }

/* ═══════════════════════════════════════════════════════════════
   DESIGN SYSTEM EXTENSIONS v2.1
   ─ Skeleton · Empty State · Button Variants · Token Additions
   ═══════════════════════════════════════════════════════════════ */

/* ── Token additions ──────────────────────────────────────────── */
:root {
  /* Compat aliases for page-local CSS (whitelist, staff pages) */
  --border:   var(--border-subtle);
  --text:     var(--text-primary);
  --panel:    var(--bg-panel-2);
  /* jcat panel aliases */
  --bg-card:  var(--bg-panel-2);
  --bg-hover: rgba(255,255,255,0.04);

  /* Whitelist status palette */
  --status-pending:    #f59e0b;
  --status-reviewing:  #2dd4bf;
  --status-approved:   #3fb950;
  --status-rejected:   #f87171;
  --status-changes:    #2dd4bf;
  --status-revision:   #2dd4bf;
  --status-hold:       #94a3b8;
}

/* ── Skeleton loader ─────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 1200px 100%;
  animation: shimmer 1.8s infinite linear;
  border-radius: var(--radius-sm);
  display: block;
}
.skeleton-text   { height: 13px; width: 100%; }
.skeleton-title  { height: 19px; width: 55%; }
.skeleton-sub    { height: 11px; width: 35%; }
.skeleton-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.skeleton-btn    { height: 36px; width: 100px; }
.skeleton-stat   { height: 52px; }
/* Stack helper */
.skeleton-stack  { display: flex; flex-direction: column; gap: 8px; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 56px 24px; gap: 12px;
}
.empty-state-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: rgba(255,255,255,0.2);
}
.empty-state h4 {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin: 0; letter-spacing: -0.2px;
}
.empty-state p {
  font-size: 13px; color: var(--text-muted);
  max-width: 320px; line-height: 1.65; margin: 0;
}
.empty-state a, .empty-state button { margin-top: 4px; }

/* ── Button size + layout variants ──────────────────────────── */
.btn-sm   { padding: 8px 16px !important; font-size: 12.5px !important; }
.btn-xs   { padding: 5px 11px !important; font-size: 11.5px !important; border-radius: var(--radius-sm) !important; }
.btn-lg   { padding: 15px 32px !important; font-size: 15px !important; }
.btn-inline { width: auto !important; }

/* Secondary / ghost variants of btn-primary */
.btn-secondary {
  width: 100%; padding: 13px; border-radius: var(--radius-sm);
  background: var(--bg-panel-3); color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: all 0.2s ease; text-decoration: none;
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-muted); color: var(--text-primary); background: var(--bg-panel-2);
}
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Note: page-local .btn-danger overrides apply on staff pages (fine — they come later in cascade) */
.btn-danger-block {
  width: 100%; padding: 13px; border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.12); color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: all 0.2s ease;
}
.btn-danger-block:hover:not(:disabled) { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); }
.btn-danger-block:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-danger-block:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(239,68,68,0.25); }

/* ── Stat card hover lift ────────────────────────────────────── */
.stat-card:hover {
  border-color: var(--border-muted);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(20,184,166,0.06);
  transform: translateY(-1px);
}

/* ── Loading spinner util ────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--orange);
  animation: spin 0.7s linear infinite;
  display: inline-block; flex-shrink: 0;
}
.spinner-sm { width: 14px; height: 14px; border-width: 1.5px; }

/* ── Tag / chip util ─────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 2px 9px; border-radius: 20px;
  background: var(--bg-panel-3); border: 1px solid var(--border-subtle); color: var(--text-muted);
}
.tag-orange  { background: rgba(20,184,166,0.1);   color: var(--orange);  border-color: rgba(20,184,166,0.25); }
.tag-green   { background: rgba(34,197,94,0.1);    color: #86efac;        border-color: rgba(34,197,94,0.25); }
.tag-red     { background: rgba(239,68,68,0.1);    color: #fca5a5;        border-color: rgba(239,68,68,0.25); }
.tag-blue    { background: rgba(20,184,166,0.1);   color: #5eead4;        border-color: rgba(20,184,166,0.25); }
.tag-purple  { background: rgba(45,212,191,0.1);  color: #2dd4bf;        border-color: rgba(45,212,191,0.25); }
.tag-slate   { background: rgba(148,163,184,0.1);  color: #94a3b8;        border-color: rgba(148,163,184,0.2); }
.tag-amber   { background: rgba(245,158,11,0.1);   color: #f59e0b;        border-color: rgba(245,158,11,0.25); }

/* ═══════════════════════════════════════════════════════════════
   EMOJI SYSTEM
   ─ Inline emoji sizing + Picker UI (emoji.js)
   ═══════════════════════════════════════════════════════════════ */

/* ── Inline emoji in text ─────────────────────────────────────── */
.emoji {
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 1.43em;          /* ~20px at 14px base — same height as one line-cap */
  line-height: 1;
  vertical-align: -0.2em;     /* optical alignment with text baseline */
  display: inline-block;
  user-select: text;
}

/* Jumbo mode: message is nothing but emoji (≤ 5) */
.dc-text.is-jumbo, .msg-body.is-jumbo { font-size: 0; } /* collapse wrapper spacing */
.dc-text.is-jumbo .emoji,
.msg-body.is-jumbo .emoji {
  font-size: 48px;
  vertical-align: middle;
  line-height: 1.15;
}

/* ── md-toolbar emoji trigger button ─────────────────────────── */
.ep-trigger-btn {
  font-size: 16px;
  line-height: 1;
  padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel-3); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); width: 28px; height: 28px;
  border-radius: 6px; cursor: pointer; transition: all 0.15s ease;
}
.ep-trigger-btn:hover { border-color: var(--orange); filter: brightness(1.1); }

/* ── Picker shell (.ep) ───────────────────────────────────────── */
.ep {
  width: 300px;
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-deep);
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body);
  animation: ep-in 0.14s ease;
}
@keyframes ep-in { from { opacity:0; transform:scale(0.96) translateY(4px); } to { opacity:1; transform:scale(1) translateY(0); } }

/* ── Search row ───────────────────────────────────────────────── */
.ep-head { padding: 10px 10px 0; flex-shrink: 0; }
.ep-search-wrap { position: relative; }
.ep-search-ico {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 11px; pointer-events: none;
}
.ep-search {
  width: 100%; background: var(--bg-panel-3); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 13px;
  padding: 7px 10px 7px 28px; outline: none;
  transition: border-color 0.15s;
}
.ep-search:focus { border-color: var(--orange); box-shadow: var(--focus-ring); }
.ep-search::placeholder { color: var(--text-muted); }

/* ── Category tabs ────────────────────────────────────────────── */
.ep-tabs {
  display: flex; gap: 2px; padding: 8px 10px 4px;
  overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none;
}
.ep-tabs::-webkit-scrollbar { display: none; }
.ep-tab {
  background: transparent; border: none; border-radius: var(--radius-sm);
  padding: 5px 7px; cursor: pointer; color: var(--text-muted);
  font-size: 13px; flex-shrink: 0; transition: all 0.12s ease;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 28px;
}
.ep-tab:hover { background: var(--bg-panel-3); color: var(--text-primary); }
.ep-tab-active { background: rgba(20,184,166,0.12); color: var(--orange); }
.ep-tab i { font-size: 11px; }
.ep-tab-icon { font-size: 15px; line-height: 1; }

/* ── Emoji grid ───────────────────────────────────────────────── */
.ep-body { flex: 1; overflow-y: auto; padding: 4px 6px 8px; min-height: 200px; max-height: 260px; }
.ep-body::-webkit-scrollbar { width: 4px; }
.ep-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.ep-grid { display: flex; flex-wrap: wrap; gap: 2px; }
.ep-cat-lbl {
  width: 100%; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted); padding: 6px 4px 3px;
}
.ep-btn {
  width: 34px; height: 34px; background: transparent; border: none;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 20px;
  line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.1s ease; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  flex-shrink: 0;
}
.ep-btn:hover { background: var(--bg-panel-3); }
.ep-btn:active { transform: scale(0.9); }
.ep-empty { width: 100%; text-align: center; font-size: 13px; color: var(--text-muted); padding: 28px 12px; }

/* ── Shortcode tooltip at bottom ──────────────────────────────── */
.ep-tip {
  padding: 4px 10px 6px; font-size: 11px; font-weight: 600;
  color: var(--text-muted); border-top: 1px solid var(--border-subtle);
  min-height: 22px; opacity: 0; transition: opacity 0.1s; flex-shrink: 0;
  font-family: monospace;
}
