/* ───────────────────────────────────────────────
   Sentry Dashboard — Dark / Electric Blue Theme
   #0a0a0f  background
   #00d4ff  neon primary
   #0066ff  secondary accent
─────────────────────────────────────────────── */

:root {
  --bg:           #0a0a0f;
  --bg-2:         #0f0f17;
  --bg-3:         #14141f;
  --bg-card:      #111118;
  --bg-card-hover:#16161f;
  --border:       rgba(0, 212, 255, 0.12);
  --border-hover: rgba(0, 212, 255, 0.35);
  --primary:      #00d4ff;
  --primary-dim:  rgba(0, 212, 255, 0.15);
  --secondary:    #0066ff;
  --glow:         0 0 20px rgba(0, 212, 255, 0.25);
  --glow-strong:  0 0 40px rgba(0, 212, 255, 0.45);
  --text:         #e8e8f0;
  --text-muted:   #8888aa;
  --text-dim:     #5555770;
  --success:      #00e676;
  --warning:      #ffd740;
  --error:        #ff4444;
  --radius:       10px;
  --radius-sm:    6px;
  --sidebar-w:    240px;
  --nav-h:        60px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Action colours */
  --action-ban:        #ff4444;
  --action-kick:       #ff8800;
  --action-timeout:    #ffd740;
  --action-warn:       #ffbb33;
  --action-quarantine: #cc44ff;
  --action-antinuke:   #ff3366;
  --action-antiraid:   #ff6600;
  --action-automod:    #00aaff;
  --action-lockdown:   #8866ff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────── SCROLLBAR ─────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* ─────────────────── LANDING BODY ─────────────────── */
body.landing { overflow-x: hidden; }

/* ─────────────────── LANDING NAVBAR ─────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: var(--nav-h);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar-brand { display: flex; align-items: center; }
.logo-text {
  font-size: 1.25rem; font-weight: 900; letter-spacing: 4px;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0,212,255,.5);
}
.navbar-links {
  display: flex; align-items: center; gap: 2rem;
}
.navbar-links > a:not(.btn-primary):not(.btn-ghost) {
  color: var(--text-muted); text-decoration: none; font-size: .9rem;
  transition: color .2s;
}
.navbar-links > a:not(.btn-primary):not(.btn-ghost):hover { color: var(--primary); }

/* ─────────────────── BUTTONS ─────────────────── */
.btn, .btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer;
  text-decoration: none; border: none; transition: all .2s;
  font-family: var(--font);
}
.btn, .btn-primary, .btn-ghost {
  padding: .55rem 1.3rem; font-size: .9rem;
}
.btn-large { padding: .85rem 2rem !important; font-size: 1rem !important; }
.btn-sm    { padding: .4rem 1rem !important; font-size: .82rem !important; }

.btn-primary {
  background: var(--primary); color: #000;
  box-shadow: 0 0 20px rgba(0, 212, 255, .35);
}
.btn-primary:hover {
  background: #33ddff;
  box-shadow: 0 0 30px rgba(0, 212, 255, .55);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-dim); box-shadow: var(--glow); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

/* ─────────────────── HERO ─────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: space-between; gap: 4rem;
  padding: calc(var(--nav-h) + 3rem) 8vw 5rem;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-dim); border: 1px solid rgba(0,212,255,.3);
  border-radius: 100px; padding: .3rem 1rem; margin-bottom: 1.75rem;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1.05; letter-spacing: 1px; margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(0,212,255,.15);
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.65;
  margin-bottom: 2.5rem; max-width: 460px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─────────────────── ANIMATED SHIELD ─────────────────── */
.hero-visual {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.shield-container {
  position: relative; width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.shield-core {
  font-size: 5rem; z-index: 3; position: relative;
  filter: drop-shadow(0 0 24px var(--primary));
  animation: shield-pulse 3s ease-in-out infinite;
}
.shield-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,212,255,.3);
  animation: ring-spin linear infinite;
}
.ring-1 { width: 110px; height: 110px; animation-duration: 6s; border-color: rgba(0,212,255,.55); }
.ring-2 { width: 160px; height: 160px; animation-duration: 11s; animation-direction: reverse; }
.ring-3 { width: 215px; height: 215px; animation-duration: 18s; border-color: rgba(0,102,255,.4); }

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shield-pulse {
  0%, 100% { filter: drop-shadow(0 0 16px var(--primary)); }
  50%       { filter: drop-shadow(0 0 36px var(--primary)); }
}

/* ─────────────────── STATS BANNER ─────────────────── */
.stats-banner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.stat-card {
  flex: 1; min-width: 160px; text-align: center; padding: 0 2rem;
}
.stat-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }
.stat-value {
  font-size: 2.8rem; font-weight: 800; color: var(--primary);
  text-shadow: 0 0 20px rgba(0,212,255,.5); letter-spacing: -1px;
  line-height: 1;
}
.stat-label {
  font-size: .78rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: .4rem;
}

/* ─────────────────── FEATURES ─────────────────── */
.features {
  padding: 6rem 8vw; max-width: 1200px; margin: 0 auto;
}
.section-title {
  text-align: center; font-size: 2.2rem; font-weight: 800;
  margin-bottom: 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--border-hover); transform: translateY(-3px);
  box-shadow: var(--glow);
}
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: .98rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p  { font-size: .87rem; color: var(--text-muted); line-height: 1.6; }

/* ─────────────────── CTA SECTION ─────────────────── */
.cta {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(0,212,255,.03) 50%, transparent);
}
.cta h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.cta p  { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }

/* ─────────────────── FOOTER ─────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem; text-align: center;
  color: var(--text-muted); font-size: .85rem;
}
.footer .logo-text { display: block; margin-bottom: .5rem; }
.footer p { margin-top: .3rem; }
.footer-note { opacity: .5; font-size: .78rem; margin-top: .5rem; }

/* ─────────────────── DASHBOARD NAV ─────────────────── */
.dash-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: var(--nav-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.nav-user { display: flex; align-items: center; gap: .6rem; }
.nav-avatar, .nav-avatar-placeholder {
  width: 30px; height: 30px; border-radius: 50%;
}
.nav-avatar-placeholder {
  background: var(--primary-dim);
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--primary);
}
.nav-username { font-size: .9rem; font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* ─────────────────── DASH LAYOUT ─────────────────── */
.dash-body { background: var(--bg); }
.dash-main {
  max-width: 900px; margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}
.dash-layout {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ─────────────────── SIDEBAR ─────────────────── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-guild {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-guild-icon { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sidebar-guild-icon-placeholder {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-dim); border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: var(--primary);
  flex-shrink: 0;
}
.sidebar-guild-info { overflow: hidden; }
.sidebar-guild-name {
  display: block; font-weight: 700; font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-guild-change { font-size: .75rem; color: var(--text-muted); text-decoration: none; }
.sidebar-guild-change:hover { color: var(--primary); }
.sidebar-nav { padding: .75rem 0; flex: 1; }
.sidebar-section {
  font-size: .72rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  padding: .75rem 1.25rem .35rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1.25rem; color: var(--text-muted);
  text-decoration: none; font-size: .9rem;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.sidebar-link:hover { background: rgba(0,212,255,.05); color: var(--text); }
.sidebar-link.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-dim);
}
.sidebar-icon { font-size: 1rem; width: 20px; text-align: center; }

/* ─────────────────── DASH CONTENT ─────────────────── */
.dash-content { flex: 1; padding: 2rem 2.5rem; max-width: calc(100% - var(--sidebar-w)); overflow-x: hidden; }
.page-header { margin-bottom: 2rem; }
.page-header h1, .page-header h2 {
  font-size: 1.8rem; font-weight: 800; margin-bottom: .35rem;
}
.page-header p { color: var(--text-muted); font-size: .95rem; }

/* ─────────────────── GUILD GRID ─────────────────── */
.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.guild-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  text-decoration: none; color: var(--text);
  transition: all .2s; cursor: pointer;
}
.guild-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.guild-card-invite {
  opacity: .75; cursor: default;
}
.guild-card-invite:hover {
  transform: none; box-shadow: none; border-color: var(--border);
  background: var(--bg-card);
}
.guild-no-bot {
  display: block; font-size: .75rem; color: var(--text-muted);
  margin-top: .15rem;
}
.guild-id-label {
  display: block; font-size: .7rem; color: var(--text-muted);
  font-family: monospace; opacity: .6; margin-top: .1rem;
}
.guild-icon img, .guild-icon-placeholder {
  width: 48px; height: 48px; border-radius: 50%;
  flex-shrink: 0;
}
.guild-icon-placeholder {
  background: var(--primary-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--primary);
  border: 1px solid var(--border-hover);
}
.guild-info { flex: 1; min-width: 0; }
.guild-name { display: block; font-weight: 700; font-size: .95rem; }
.guild-badge {
  display: inline-block; font-size: .65rem; font-weight: 700;
  padding: .1rem .5rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .5px; margin-top: .2rem;
  vertical-align: middle;
}
.guild-badge.owner { background: rgba(0,212,255,.2); color: var(--primary); }
.guild-arrow { color: var(--text-muted); font-size: 1.5rem; }

/* ─────────────────── STATUS CARDS ─────────────────── */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.status-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .2s;
}
.status-card.active { border-color: rgba(0,230,118,.3); }
.status-card.inactive { border-color: rgba(255,68,68,.15); }
.status-card-header { display: flex; align-items: center; gap: .5rem; }
.status-icon { font-size: 1.2rem; }
.status-label { font-weight: 700; font-size: .9rem; }
.status-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: 1px;
  padding: .2rem .6rem; border-radius: 100px; width: fit-content;
}
.status-card.active .status-badge { background: rgba(0,230,118,.15); color: var(--success); }
.status-card.inactive .status-badge { background: rgba(255,68,68,.12); color: var(--error); }
.status-card.stat .status-badge { display: none; }
.status-detail { font-size: .8rem; color: var(--text-muted); }
.status-manage { font-size: .8rem; color: var(--primary); text-decoration: none; margin-top: auto; }
.status-manage:hover { text-decoration: underline; }
.stat-numbers { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.stat-row { display: flex; align-items: baseline; gap: .5rem; }
.stat-num { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.stat-label-sm { font-size: .78rem; color: var(--text-muted); }

/* ─────────────────── SECTION CARDS ─────────────────── */
.section-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.section-card.no-pad { padding: 0; overflow: hidden; }
.section-card.no-pad .empty-state.pad { padding: 2rem; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.section-header h3 { font-size: 1rem; font-weight: 700; }
.section-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.section-badge {
  background: var(--primary-dim); color: var(--primary);
  font-size: .75rem; font-weight: 700; padding: .15rem .6rem;
  border-radius: 100px;
}

/* ─────────────────── SETTINGS / FORMS ─────────────────── */
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.setting-row:last-child { border-bottom: none; }
.setting-info { flex: 1; }
.setting-name { font-size: .9rem; font-weight: 600; margin-bottom: .1rem; }
.setting-desc { font-size: .8rem; color: var(--text-muted); }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.toggle-grid { display: flex; flex-direction: column; }

.setting-field { display: flex; flex-direction: column; gap: .4rem; padding: .5rem 0; }
.setting-field label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.field-input, .field-select {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .6rem .9rem;
  color: var(--text); font-size: .9rem; font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.field-input:focus, .field-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,212,255,.1);
}
.field-hint { font-size: .75rem; color: var(--text-muted); }
.field-sm { padding: .35rem .7rem; font-size: .82rem; height: auto; }
.field-select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238888aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.1em; padding-right: 2.2rem;
}

/* ─────────────────── TOGGLE SWITCH ─────────────────── */
.toggle {
  position: relative; display: inline-flex;
  width: 46px; height: 26px; flex-shrink: 0; cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute; top: 3px; left: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-muted);
  transition: all .2s;
}
.toggle input:checked + .toggle-slider {
  background: rgba(0,212,255,.2);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0,212,255,.25);
}
.toggle input:checked + .toggle-slider::before {
  background: var(--primary);
  transform: translateX(20px);
  box-shadow: 0 0 8px rgba(0,212,255,.5);
}

/* ─────────────────── FORM ACTIONS ─────────────────── */
.form-actions { padding-top: .75rem; }

/* ─────────────────── ALERTS ─────────────────── */
.alert {
  padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .9rem; margin-bottom: 1.25rem; font-weight: 500;
}
.alert-success { background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.3); color: var(--success); }
.alert-error   { background: rgba(255,68,68,.1);  border: 1px solid rgba(255,68,68,.3);  color: var(--error);   }
.alert-warn    { background: rgba(255,215,64,.1);  border: 1px solid rgba(255,215,64,.3);  color: var(--warning);  }

/* ─────────────────── LOG TABLE ─────────────────── */
.log-filters { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.log-count { margin-left: auto; font-size: .82rem; color: var(--text-muted); }

.log-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.log-table thead tr { border-bottom: 1px solid var(--border); }
.log-table th {
  padding: .85rem 1rem; text-align: left;
  font-size: .75rem; font-weight: 600; letter-spacing: .5px;
  color: var(--text-muted); text-transform: uppercase;
}
.log-table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.03); }
.log-table tr:last-child td { border-bottom: none; }
.log-table tr:hover td { background: rgba(255,255,255,.02); }

.log-action {
  display: inline-block; font-size: .72rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .5px;
}
.action-ban         { background: rgba(255,68,68,.15);   color: var(--action-ban); }
.action-kick        { background: rgba(255,136,0,.15);   color: var(--action-kick); }
.action-timeout     { background: rgba(255,215,64,.12);  color: var(--action-timeout); }
.action-warn        { background: rgba(255,187,51,.12);  color: var(--action-warn); }
.action-quarantine  { background: rgba(204,68,255,.15);  color: var(--action-quarantine); }
.action-antinuke    { background: rgba(255,51,102,.15);  color: var(--action-antinuke); }
.action-antiraid    { background: rgba(255,102,0,.15);   color: var(--action-antiraid); }
.action-automod     { background: rgba(0,170,255,.15);   color: var(--action-automod); }
.action-lockdown    { background: rgba(136,102,255,.15); color: var(--action-lockdown); }

.log-reason-cell { color: var(--text-muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-date { color: var(--text-muted); white-space: nowrap; font-size: .8rem; }

.log-list { display: flex; flex-direction: column; gap: .5rem; }
.log-entry {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .85rem;
}
.log-entry:last-child { border-bottom: none; }
.log-target { color: var(--text-muted); }
.log-reason { flex: 1; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-time { margin-left: auto; color: var(--text-muted); font-size: .78rem; white-space: nowrap; }

/* ─────────────────── WHITELIST ─────────────────── */
.wl-table-wrap { overflow-x: auto; }
.wl-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.wl-table th { padding: .6rem .75rem; text-align: left; font-size: .75rem; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.wl-table td { padding: .6rem .75rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.wl-chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.wl-entry-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 100px; padding: .3rem .75rem; font-size: .8rem;
}
.wl-type-badge {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  padding: .1rem .4rem; border-radius: 3px;
}
.wl-type-badge.user { background: rgba(0,212,255,.15); color: var(--primary); }
.wl-type-badge.role { background: rgba(136,102,255,.2); color: #cc88ff; }
.wl-id { font-family: monospace; color: var(--text); }
.wl-note { color: var(--text-muted); font-style: italic; }
.wl-expiry { color: var(--warning); font-size: .75rem; }
.wl-chip {
  background: var(--primary-dim); color: var(--primary);
  border: 1px solid rgba(0,212,255,.25);
  border-radius: 100px; padding: .25rem .75rem;
  font-size: .8rem; font-family: monospace;
}

/* ─────────────────── CHIPS & IDS ─────────────────── */
.id-chip {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 4px; padding: .1rem .45rem; font-size: .8rem;
  font-family: monospace; color: var(--text-muted);
}
.id-chip.muted { color: var(--text-muted); opacity: .7; }

/* ─────────────────── EMPTY STATES ─────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--text-muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .5; }
.empty-state p { font-size: .9rem; }
.empty-state strong { color: var(--text); }
.empty-inline { font-size: .85rem; color: var(--text-muted); padding: .5rem 0; }

/* ─────────────────── INFO / CMD REFERENCE ─────────────────── */
.info-card {
  background: rgba(0,212,255,.04); border: 1px solid rgba(0,212,255,.15);
  border-radius: var(--radius); padding: 1.25rem;
  font-size: .88rem; line-height: 1.7;
}
.info-card strong { color: var(--primary); display: block; margin-bottom: .5rem; }
.cmd-list { margin-top: .75rem; padding-left: .25rem; }
.cmd-list code {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 4px; padding: .1rem .4rem;
  font-size: .83rem; color: var(--primary);
}
code {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 4px; padding: .1rem .4rem;
  font-size: .85rem; color: var(--primary); font-family: monospace;
}

/* ─────────────────── PAGINATION ─────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.5rem;
}
.page-info { font-size: .85rem; color: var(--text-muted); }

/* ─────────────────── TOAST ─────────────────── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .85rem 1.5rem;
  font-size: .9rem; font-weight: 500; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(0); opacity: 1;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.toast.success { border-color: rgba(0,230,118,.4); color: var(--success); }
.toast.error   { border-color: rgba(255,68,68,.4);  color: var(--error);   }
.toast.hidden  { transform: translateY(1.5rem); opacity: 0; pointer-events: none; }

/* ─────────────────── RESPONSIVE ─────────────────── */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: calc(var(--nav-h) + 2rem) 5vw 4rem; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .dash-content { max-width: 100%; padding: 1.25rem; }
  .settings-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .stats-banner { gap: 1.5rem; padding: 2rem 1rem; }
  .stat-divider { display: none; }
  .stat-card { min-width: 120px; }
  .navbar { padding: 0 1.25rem; }
  .navbar-links a:not(.btn-primary) { display: none; }
}
