:root {
  --bg:        #0d0b14;
  --bg2:       #13111e;
  --bg3:       #1a1726;
  --pink:      #ffb6c1;
  --pink-dark: #e8829a;
  --purple:    #a78bfa;
  --green:     #44ff88;
  --red:       #ff4444;
  --text:      #f0f0f0;
  --text-muted:#999;
  --border:    rgba(255,255,255,0.08);
  --radius:    12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Site announcement banner ────────────────────────────────── */
.site-announcement {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,158,11,0.12);
  border-bottom: 1px solid rgba(245,158,11,0.25);
  padding: 10px 2rem;
  font-size: 14px;
  color: #fde68a;
}

/* ── Login ───────────────────────────────────────────────────── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 60%, rgba(167,139,250,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(255,182,193,0.06) 0%, transparent 60%),
              var(--bg);
}

.login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-logo { font-size: 3rem; margin-bottom: 1rem; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.login-card p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865f2;
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.btn-discord:hover { background: #4752c4; }
.login-/* ── Site footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  margin-top: auto;
  padding: 2rem 1.5rem;
  font-size: 13px;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer-logo { font-weight: 700; color: var(--text); font-size: 15px; }
.site-footer-tagline { color: var(--text-muted); font-size: 12px; }
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}
.site-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer-links a:hover { color: var(--pink); }
.site-footer-copy { color: var(--text-faint, var(--text-muted)); font-size: 12px; }
.site-footer-copy a { color: var(--text-muted); text-decoration: none; }
.site-footer-copy a:hover { color: var(--pink); }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand { font-size: 18px; font-weight: 700; color: var(--pink); }
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; }

.btn-logout {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s;
}
.btn-logout:hover { color: var(--text); background: rgba(255,255,255,0.1); }

/* ── Global announcement banner ──────────────────────────────── */
.global-announcement {
  background: rgba(88,101,242,0.15);
  border-bottom: 1px solid rgba(88,101,242,0.3);
  color: #c9cdfb;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 1.5rem;
  text-align: center;
}

/* ── Global stats bar ────────────────────────────────────────── */
/* ── Bot status bar ──────────────────────────────────────────────────────────── */
.global-stats-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 6px 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.nav-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
  flex-shrink: 0; white-space: nowrap; transition: all 0.3s;
}
.nav-status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.nav-status-checking { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #666; }
.nav-status-checking .nav-status-dot { background: #555; }
.nav-status-online   { background: rgba(68,255,136,0.08);  border: 1px solid rgba(68,255,136,0.25); color: #44ff88; }
.nav-status-online   .nav-status-dot { background: #44ff88; box-shadow: 0 0 5px #44ff88; animation: pulse-dot 2s infinite; }
.nav-status-offline  { background: rgba(255,68,68,0.08);   border: 1px solid rgba(255,68,68,0.25);  color: #ff6b6b; }
.nav-status-offline  .nav-status-dot { background: #ff6b6b; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }
.gstat { color: var(--text-muted); white-space: nowrap; font-size: 12px; }
.gstat-sep { color: var(--border); }
.event-badge {
  background: rgba(255,182,193,0.12);
  border: 1px solid rgba(255,182,193,0.25);
  color: var(--pink);
  border-radius: 20px;
  padding: 1px 10px;
  font-weight: 600;
}

/* ── Dashboard layout ────────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* Inner wrapper that holds both sidebars — sits at start */
.dash-layout-inner {
  display: contents; /* children participate directly in the flex layout */
}

/* ── Text nav sidebar — middle-left ──────────────────────────── */
.dash-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 185px;
  flex-shrink: 0;
  order: 1;
}

.dash-link {
  display: block;
  padding: 10px 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  white-space: nowrap;
}
.dash-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.dash-link.active { color: var(--pink); border-left-color: var(--pink); background: rgba(255,182,193,0.06); }
.dash-sidebar-divider { height: 1px; background: var(--border); margin: 8px 12px; }
.dash-link-admin { color: #f59e0b !important; }
.dash-link-admin:hover { color: #fbbf24 !important; background: rgba(245,158,11,0.06) !important; }
.dash-link-admin.active { color: #f59e0b !important; border-left-color: #f59e0b !important; background: rgba(245,158,11,0.08) !important; }

/* ── Main content — right ────────────────────────────────────── */
.dash-main {
  flex: 1;
  padding: 2rem;
  min-width: 0;
  order: 2;
}

/* ── Server icon rail — far left ─────────────────────────────── */
.sbar-rail {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  width: 64px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  order: 0;
}
.sbar-rail::-webkit-scrollbar { display: none; }

.sbar-rail-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.sbar-server {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  transition: border-radius 0.2s, border-color 0.2s;
  flex-shrink: 0;
  background: var(--bg3);
  border: 2px solid transparent;
}
.sbar-server:hover {
  border-radius: 14px;
  border-color: rgba(255,182,193,0.35);
}
.sbar-server.active {
  border-radius: 14px;
  border-color: var(--pink);
}
/* Active pill on right edge (pointing toward the text nav) */
.sbar-server.active::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: var(--pink);
  border-radius: 4px 0 0 4px;
  pointer-events: none;
}

.sbar-server-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sbar-server-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  color: var(--pink);
  background: var(--bg3);
}
.sbar-server-all {
  font-size: 18px;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.12);
  color: var(--text-muted);
  overflow: visible;
  margin-top: 2px;
}
.sbar-server-all:hover { border-color: rgba(255,182,193,0.35); color: var(--pink); }
.sbar-server-all.active { border-color: var(--pink); color: var(--pink); }

/* Tooltip — appears to the RIGHT since rail is on the far left */
.sbar-server[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  background: #18161f;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 300;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.sbar-server:hover[data-tip]::after { opacity: 1; }

/* ── Dashboard header ────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dash-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--pink); }
.dash-header h1 { font-size: 1.8rem; }
.dash-id { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.dash-title { color: var(--pink); font-size: 13px; margin-top: 2px; }
.prestige-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

/* ── Stat grid ───────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--pink); }

/* ── Dash sections ───────────────────────────────────────────── */
.dash-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.dash-section h2 { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.dash-bio { color: var(--text); line-height: 1.65; }

/* ── Fight record ────────────────────────────────────────────── */
.fight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fight-stat { text-align: center; }
.fight-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.fight-val { font-size: 1.4rem; font-weight: 700; }
.fight-val.win { color: var(--green); }
.fight-val.loss { color: var(--red); }

/* ── Marriage ────────────────────────────────────────────────── */
.marriage-row { display: flex; align-items: center; gap: 1rem; }
.partner-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--pink); }
.partner-name { font-weight: 600; font-size: 16px; }
.partner-id { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.badge-item img { width: 40px; height: 40px; object-fit: contain; }
.badge-item span { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

/* ── Guild levels ────────────────────────────────────────────── */
.guild-levels { display: flex; flex-direction: column; gap: 8px; }
.guild-level-row { display: flex; align-items: center; gap: 1rem; padding: 8px; background: rgba(255,255,255,0.02); border-radius: 8px; }
.guild-id { font-size: 12px; color: var(--text-muted); font-family: monospace; flex: 1; }
.guild-name { font-size: 14px; color: var(--text); flex: 1; font-weight: 500; }
.guild-level { font-size: 14px; }
.guild-exp { font-size: 12px; color: var(--text-muted); }
.lb-username { font-size: 14px; color: var(--text); }
.val-warn { color: #f59e0b; }
.empty-note { color: var(--text-muted); font-size: 14px; }
.section-divider { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 2rem 0 1rem; }

/* ── Server list ─────────────────────────────────────────────── */
.server-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.server-card:hover { border-color: rgba(255,182,193,0.3); background: var(--bg3); }
.server-icon { width: 44px; height: 44px; border-radius: 50%; }
.server-icon-placeholder {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: var(--pink);
  flex-shrink: 0;
}
.server-info { flex: 1; }
.server-name { font-weight: 600; font-size: 15px; }
.server-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.server-arrow { color: var(--text-muted); font-size: 20px; }

/* ── Server detail ───────────────────────────────────────────── */
.server-detail-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 0.5rem; }
.back-link { color: var(--text-muted); text-decoration: none; font-size: 14px; margin-right: 0.5rem; }
.back-link:hover { color: var(--pink); }
.server-icon-lg { width: 56px; height: 56px; border-radius: 50%; }
.server-icon-placeholder-lg {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; color: var(--pink);
}
.server-role-badge {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-top: 4px;
}

/* ── Settings grid ───────────────────────────────────────────── */
.settings-grid { display: flex; flex-direction: column; gap: 0; }
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
}
.setting-row:last-child { border-bottom: none; }
.setting-label { color: var(--text-muted); }
.setting-value { font-weight: 500; color: var(--text); }
.val-on { color: var(--green); }
.val-off { color: var(--red); }

/* ── Stream alert status ─────────────────────────────────────── */
.status-live { color: #f87171; font-weight: 600; }
.status-offline { color: var(--text-muted); }

/* ── Reaction role panels ────────────────────────────────────── */
.rr-panels { display: flex; flex-direction: column; gap: 8px; }
.rr-panel { background: rgba(255,255,255,0.02); border-radius: 8px; padding: 10px 14px; }
.rr-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.rr-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }
.rr-type { text-transform: capitalize; }

/* ── Collection ──────────────────────────────────────────────── */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.collection-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: border-color 0.2s; }
.collection-card:hover { border-color: rgba(255,182,193,0.3); }
.collection-name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.collection-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.collection-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }

/* ── Leaderboard ─────────────────────────────────────────────── */
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 0.75rem; }
.lb-table th { text-align: left; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.lb-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.lb-table tr:last-child td { border-bottom: none; }
.lb-rank { font-size: 16px; width: 36px; }
.lb-userid { color: var(--text-muted); font-size: 12px; font-family: monospace; }
.lb-muted { color: var(--text-muted); }
.lb-you td { background: rgba(255,182,193,0.06); }
.lb-you .lb-userid { color: var(--pink); font-family: inherit; font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dashboard-layout { flex-wrap: wrap; }
  .dash-sidebar {
    order: 0;
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    overflow-x: auto;
    height: auto;
  }
  .dash-link { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .dash-link.active { border-left-color: transparent; border-bottom-color: var(--pink); }
  .dash-main { order: 1; width: 100%; }
  .sbar-rail {
    order: 2;
    width: 100%;
    flex-direction: row;
    padding: 8px;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .sbar-rail-inner { flex-direction: row; gap: 6px; }
  .sbar-server.active::before { display: none; }
  .sbar-server[data-tip]::after { display: none; }
  .lb-grid { grid-template-columns: 1fr; }
  .fight-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Leaderboard tabs ────────────────────────────────────────── */
.lb-tabs { display: flex; gap: 8px; margin-bottom: 1rem; }
.lb-tab {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-muted); padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.lb-tab:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.lb-tab.active { background: rgba(255,182,193,0.12); border-color: rgba(255,182,193,0.35); color: var(--pink); }

/* ── Stream alert management ─────────────────────────────────── */
.alerts-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1rem; }

.alert-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.alert-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.alert-message-details summary::-webkit-details-marker { display: none; }
.add-alert-details summary::-webkit-details-marker { display: none; }

.alert-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* ── Discord markdown preview ────────────────────────────────── */
.discord-preview {
  background: #36393f;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
  border-left: 3px solid #5865f2;
}

.discord-preview-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #72767d;
  margin-bottom: 6px;
}

.discord-preview-content {
  font-size: 14px;
  color: #dcddde;
  line-height: 1.6;
  word-break: break-word;
}

/* ── Reaction role builder ───────────────────────────────────── */
.rr-builder-panel { transition: border-color 0.2s; }
.rr-builder-panel:hover { border-color: rgba(255,182,193,0.2); }
.rr-add-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.rr-role-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,182,193,0.1); border: 1px solid rgba(255,182,193,0.25); color: var(--pink); padding: 4px 8px 4px 12px; border-radius: 20px; font-size: 13px; }
.rr-remove-btn { background: none; border: none; color: rgba(255,182,193,0.5); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; transition: color 0.15s; }
.rr-remove-btn:hover { color: #ff6b6b; }

@media (max-width: 768px) { .rr-add-grid { grid-template-columns: 1fr; } }

.vt-search-row { display: flex; gap: 10px; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: flex-end; }
.vt-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.vt-dash-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; transition: border-color 0.2s; }
.vt-dash-card:hover { border-color: rgba(255,182,193,0.3); }
.vt-dash-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.vt-verified-badge { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #86efac; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.vt-dash-agency { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.vt-dash-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.vt-tag { font-size: 11px; background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2); color: #c4b5fd; padding: 2px 8px; border-radius: 4px; }
.vt-dash-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }
.vt-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem 0; }


/* ── Flash messages ───────────────────────────────────────────── */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 14px;
  font-weight: 500;
}
.flash-success { background: rgba(68,255,136,0.1); border: 1px solid rgba(68,255,136,0.3); color: #44ff88; }
.flash-error   { background: rgba(255,68,68,0.1);  border: 1px solid rgba(255,68,68,0.3);  color: #ff6b6b; }

/* ── Forms ───────────────────────────────────────────────────── */
.edit-form { display: flex; flex-direction: column; gap: 1rem; }
.edit-form-row { flex-direction: row; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-hint { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.form-input, .form-textarea, .form-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  width: 100%;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: rgba(255,182,193,0.5);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select option { background: var(--bg2); }

.form-actions-inline { display: flex; align-items: flex-end; padding-bottom: 0; }

.btn-save {
  background: var(--pink-dark);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-save:hover { background: #d4607a; }

.btn-danger-sm {
  background: rgba(255,68,68,0.1);
  border: 1px solid rgba(255,68,68,0.3);
  color: #ff6b6b;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger-sm:hover { background: rgba(255,68,68,0.2); }

/* ── Toggle button ───────────────────────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.toggle-label { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

.btn-toggle {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-toggle-on  { background: rgba(68,255,136,0.12); border: 1px solid rgba(68,255,136,0.3); color: #44ff88; }
.btn-toggle-on:hover  { background: rgba(68,255,136,0.2); }
.btn-toggle-off { background: rgba(255,68,68,0.1); border: 1px solid rgba(255,68,68,0.3); color: #ff6b6b; }
.btn-toggle-off:hover { background: rgba(255,68,68,0.2); }

.dash-title-display { color: var(--pink); font-size: 13px; margin-top: 2px; }
