@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ────────────────────────────────────────────────────────── */
/* Design Tokens – YouTube Dark Mode Style                  */
/* ────────────────────────────────────────────────────────── */
:root {
  --bg-app:        #0f0f0f;
  --bg-sidebar:    #111111;
  --bg-card:       #1a1a1a;
  --bg-card-hover: #212121;
  --bg-input:      #121212;
  --bg-elevated:   #272727;

  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --accent:        #3ea6ff;
  --accent-glow:   rgba(62, 166, 255, 0.25);
  --accent-sub:    rgba(62, 166, 255, 0.12);

  --green:         #2ed573;
  --green-dim:     rgba(46, 213, 115, 0.12);
  --amber:         #ffa502;
  --amber-dim:     rgba(255, 165, 2, 0.12);
  --red:           #ff4c4c;
  --red-dim:       rgba(255, 76, 76, 0.12);
  --cyan:          #4fc3f7;
  --cyan-dim:      rgba(79, 195, 247, 0.1);

  --text:          #e8eaed;
  --text-muted:    #aaaaaa;
  --text-dim:      #717171;

  --font:          'Inter', system-ui, sans-serif;
  --mono:          'JetBrains Mono', monospace;

  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     14px;
  --sidebar-width: 240px;
  --topbar-height: 52px;

  --shadow:        0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.4);
}

/* ────────────────────────────────────────────────────────── */
/* Reset & Base                                             */
/* ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-app);
  color: var(--text);
  font-family: var(--font);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ────────────────────────────────────────────────────────── */
/* Layout Shell                                             */
/* ────────────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* ────────────────────────────────────────────────────────── */
/* Sidebar                                                  */
/* ────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-glow);
}

.brand-logo svg { width: 16px; height: 16px; }

.brand-text { display: flex; flex-direction: column; }

.app-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.app-version {
  font-size: 0.6rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-sub);
  color: var(--accent);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-item.child-item { padding-left: 1.8rem; }

.nav-icon { font-size: 0.95rem; }

/* Nav Categories */
.nav-category {
  display: flex;
  flex-direction: column;
  margin-top: 0.3rem;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}

.category-header:hover { color: var(--text-muted); }

.category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

.nav-category.open .category-arrow { transform: rotate(90deg); }

.category-children {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.1rem;
}

.nav-category.open .category-children { display: flex; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.user-card-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.user-card-inner:hover { background: rgba(255,255,255,0.04); }

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--text);
}

.status-indicator {
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.status-indicator.live {
  color: var(--green);
}

.status-indicator.offline {
  color: var(--text-dim);
}


.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.15s;
}

.btn-icon:hover { border-color: var(--red); color: var(--red); }

/* ────────────────────────────────────────────────────────── */
/* Top Bar                                                  */
/* ────────────────────────────────────────────────────────── */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  height: var(--topbar-height);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

.page-breadcrumb {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.status-badge-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--green-dim);
  border: 1px solid rgba(46, 213, 115, 0.25);
  color: var(--green);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,213,115,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(46,213,115,0); }
}

/* ────────────────────────────────────────────────────────── */
/* Content Area                                             */
/* ────────────────────────────────────────────────────────── */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ────────────────────────────────────────────────────────── */
/* Cards                                                    */
/* ────────────────────────────────────────────────────────── */
.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

/* ────────────────────────────────────────────────────────── */
/* HOME DASHBOARD                                           */
/* ────────────────────────────────────────────────────────── */
.home-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeSlideUp 0.35s ease both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero Banner */
.home-hero-banner {
  background: linear-gradient(135deg, rgba(62,166,255,0.06) 0%, rgba(79,195,247,0.04) 100%);
  border-color: rgba(62,166,255,0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
}

.hero-left { display: flex; align-items: center; gap: 1.25rem; }

.hero-logo-box {
  width: 54px;
  height: 54px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 24px var(--accent-glow);
  flex-shrink: 0;
  color: #000;
}

.hero-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Quick Action Grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.home-action-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

.home-action-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-icon.blue   { background: rgba(62,166,255,0.12);  color: var(--accent); }
.card-icon.cyan   { background: var(--cyan-dim);         color: var(--cyan); }
.card-icon.green  { background: var(--green-dim);        color: var(--green); }
.card-icon.amber  { background: var(--amber-dim);        color: var(--amber); }
.card-icon.purple { background: rgba(124,77,255,0.12);   color: #a78bfa; }

.card-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.card-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ────────────────────────────────────────────────────────── */
/* Filter Toolbar                                           */
/* ────────────────────────────────────────────────────────── */
.filter-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}

.toolbar-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-field {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem 0.3rem 0.85rem;
  gap: 0.5rem;
  transition: border-color 0.15s;
}

.search-field:focus-within { border-color: var(--accent); }

.search-field input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  font-size: 0.87rem;
}

.search-field.full-width { width: 100%; }

.filters-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.filter-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 100px;
}

.filter-box label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.select-sm, .input-sm {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.6rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.83rem;
  outline: none;
  transition: border-color 0.15s;
}

.select-sm:focus, .input-sm:focus { border-color: var(--accent); }

/* ────────────────────────────────────────────────────────── */
/* Toggle Switch                                            */
/* ────────────────────────────────────────────────────────── */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input { display: none; }

.switch-slider {
  width: 34px;
  height: 19px;
  background: var(--bg-elevated);
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
  border: 1px solid var(--border-strong);
}

.switch-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.toggle-switch input:checked + .switch-slider { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .switch-slider::before { transform: translateX(15px); background: #fff; }

.switch-label { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }

/* ────────────────────────────────────────────────────────── */
/* Table                                                    */
/* ────────────────────────────────────────────────────────── */
.logs-card { padding: 0; overflow: hidden; }

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.table-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.records-counter {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.table-wrapper { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 0.65rem 1.25rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.12s;
  animation: rowFlyIn 0.3s ease both;
}

.data-table tbody tr:hover { background: var(--bg-card-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Staggered row fly-in */
@keyframes rowFlyIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.data-table tbody tr:nth-child(1)  { animation-delay: 0.03s; }
.data-table tbody tr:nth-child(2)  { animation-delay: 0.06s; }
.data-table tbody tr:nth-child(3)  { animation-delay: 0.09s; }
.data-table tbody tr:nth-child(4)  { animation-delay: 0.12s; }
.data-table tbody tr:nth-child(5)  { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(6)  { animation-delay: 0.18s; }
.data-table tbody tr:nth-child(7)  { animation-delay: 0.21s; }
.data-table tbody tr:nth-child(8)  { animation-delay: 0.24s; }
.data-table tbody tr:nth-child(9)  { animation-delay: 0.27s; }
.data-table tbody tr:nth-child(10) { animation-delay: 0.30s; }

.time-col {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.badge-action {
  padding: 0.18rem 0.52rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-ban     { background: var(--red-dim);    color: var(--red);   border: 1px solid rgba(255,76,76,.3); }
.badge-unban   { background: var(--green-dim);  color: var(--green); border: 1px solid rgba(46,213,115,.3); }
.badge-timeout { background: var(--amber-dim);  color: var(--amber); border: 1px solid rgba(255,165,2,.3); }
.badge-delete  { background: rgba(255,165,2,0.15); color: #ffb703; border: 1px solid rgba(255,183,3,.3); }
.badge-mode    { background: rgba(147,51,234,0.15); color: #c084fc; border: 1px solid rgba(192,132,252,.3); }
.badge-cheer   { background: var(--cyan-dim);   color: var(--cyan);  border: 1px solid rgba(79,195,247,.3); }
.badge-sub     { background: rgba(62,166,255,.1); color: var(--accent); border: 1px solid rgba(62,166,255,.3); }



.user-badge {
  font-weight: 600;
  cursor: pointer;
  transition: color 0.12s;
}

.user-badge:hover { color: var(--accent) !important; text-decoration: underline; }

/* Pagination */
.pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
}

.page-info {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.pagination-buttons { display: flex; gap: 0.5rem; }

/* ────────────────────────────────────────────────────────── */
/* Buttons                                                  */
/* ────────────────────────────────────────────────────────── */
.btn {
  padding: 0.52rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-blue   { background: var(--accent); color: #000; }
.btn-blue:hover { filter: brightness(1.1); }
.btn-purple { background: #6d28d9; color: #fff; }
.btn-purple:hover { background: #5b21b6; }
.btn-accent { background: var(--accent); color: #000; font-weight: 700; }
.btn-dark   { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-dark:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }

/* Custom Dark Dropdown Option Styling */
select option {
  background-color: var(--bg-card) !important;
  color: var(--text) !important;
  padding: 0.5rem;
}


.login-screen-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-app);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-screen-overlay.hidden {
  display: none !important;
}

/* Modal Overlay & Card Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content {
  animation: fadeSlideUp 0.25s ease both;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}


.login-box-card {
  width: 100%;
  max-width: 440px;
  margin: 0 1.5rem;
  animation: fadeSlideUp 0.4s ease both;
}


.card-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-icon { font-size: 2rem; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }

.form-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus { border-color: var(--accent); }

.error-banner {
  background: var(--red-dim);
  border: 1px solid rgba(255,76,76,0.3);
  color: var(--red);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

/* ────────────────────────────────────────────────────────── */
/* USER DOSSIER                                             */
/* ────────────────────────────────────────────────────────── */
.dossier-card {
  padding: 0;
  overflow: hidden;
  animation: fadeSlideUp 0.3s ease both;
}

/* Search bar */
.dossier-search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s;
}

.dossier-search-bar:focus-within { border-color: var(--accent); }

.dossier-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  font-size: 0.87rem;
  padding: 0.65rem 1rem;
}

.dossier-search-bar button {
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  border: none;
  color: #000;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
  white-space: nowrap;
}

.dossier-search-bar button:hover { filter: brightness(1.12); }

/* Dossier Profile Header */
.dossier-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(62,166,255,0.04), transparent);
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-box {
  width: 52px;
  height: 52px;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


.user-identity h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.2rem;
}

/* Stats Row */
.stats-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  transition: border-color 0.15s;
}

.stat-pill:hover { border-color: var(--accent); }
.stat-pill.danger { border-color: rgba(255,76,76,0.3); }
.stat-pill.danger:hover { border-color: var(--red); }

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
}

.stat-title {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 0.1rem;
}

/* Dossier Tabs */
.dossier-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.dossier-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: -1px;
}

.dossier-tab-btn:hover { color: var(--text-muted); }
.dossier-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Dossier Body */
.dossier-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

/* ────────────────────────────────────────────────────────── */
/* TWITCH CHAT STYLE (Dossier)                              */
/* ────────────────────────────────────────────────────────── */
.twitch-chat-window {
  background: #0e0e10;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.twitch-chat-header {
  background: #18181b;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #efeff1;
}

.chat-header-sub {
  font-size: 0.68rem;
  color: #adadb8;
}

.twitch-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.4rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.twitch-chat-line {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.28rem 1rem;
  font-size: 0.83rem;
  line-height: 1.55;
  transition: background 0.1s;
  animation: chatLineFlyIn 0.25s ease both;
}

@keyframes chatLineFlyIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.twitch-chat-line:hover { background: rgba(255,255,255,0.04); }
.twitch-chat-line:nth-child(even) { background: rgba(255,255,255,0.015); }
.twitch-chat-line:nth-child(even):hover { background: rgba(255,255,255,0.045); }

.twitch-chat-timestamp {
  font-size: 0.72rem;
  color: #545454;
  font-family: var(--mono);
  flex-shrink: 0;
  min-width: 42px;
}

.twitch-chat-username {
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
}

.twitch-chat-username:hover { text-decoration: underline; }

.twitch-chat-text {
  color: #efeff1;
  word-break: break-word;
}

/* Staggered chat fly-in */
.twitch-chat-line:nth-child(1)  { animation-delay: 0.02s; }
.twitch-chat-line:nth-child(2)  { animation-delay: 0.04s; }
.twitch-chat-line:nth-child(3)  { animation-delay: 0.06s; }
.twitch-chat-line:nth-child(4)  { animation-delay: 0.08s; }
.twitch-chat-line:nth-child(5)  { animation-delay: 0.10s; }
.twitch-chat-line:nth-child(6)  { animation-delay: 0.12s; }
.twitch-chat-line:nth-child(7)  { animation-delay: 0.14s; }
.twitch-chat-line:nth-child(8)  { animation-delay: 0.16s; }
.twitch-chat-line:nth-child(9)  { animation-delay: 0.18s; }
.twitch-chat-line:nth-child(10) { animation-delay: 0.20s; }

/* ────────────────────────────────────────────────────────── */
/* Mod Actions Timeline                                     */
/* ────────────────────────────────────────────────────────── */
.dossier-section h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.timeline-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  transition: border-color 0.12s;
  animation: fadeSlideUp 0.25s ease both;
}

.timeline-item:hover { border-color: var(--border-strong); }

/* ────────────────────────────────────────────────────────── */
/* Misc                                                     */
/* ────────────────────────────────────────────────────────── */
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none !important; }

.subtitle { font-size: 0.8rem; color: var(--text-muted); }
.meta-label { font-size: 0.75rem; color: var(--text-dim); }

.tab-toggle { margin-left: 0.75rem; }

/* Smooth tab transition */
#mainDashboard > section,
#mainDashboard > .home-container {
  animation: fadeSlideUp 0.28s ease both;
}

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