/* ══════════════════════════════════════════════════════════════════════════════
   NexusPortals — Global Stylesheet
   Theme: Deep space dark (#0f1624) + electric deep-orange (#e8641c)
   ══════════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg-deep:      #0a0f1a;
  --bg-base:      #0f1624;
  --bg-card:      #1e2a3a;
  --bg-card-2:    #253040;
  --bg-input:     #141e2e;
  --border:       #2e3d52;
  --border-light: #3a4d62;
  --accent:       #e8641c;
  --accent-hover: #ff7a30;
  --accent-dim:   #e8641c44;
  --accent-glow:  rgba(232, 100, 28, 0.25);
  --text-primary: #e0e6f0;
  --text-muted:   #8899aa;
  --text-dim:     #4a5a6a;
  --green:        #56af2e;
  --red:          #e84040;
  --yellow:       #e8c030;
  --blue:         #4090e0;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --transition:   all 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

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

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Utility ──────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 480px; margin: 0 auto; padding: 0 24px; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }

/* ─── Alerts / Flash ───────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 14px;
  border-left: 3px solid;
  animation: slideDown 0.25s ease;
}
.alert-error   { background: #200a0a; border-color: var(--red);    color: #ff9090; }
.alert-success { background: #0a1e12; border-color: var(--green);  color: #70e090; }
.alert-warning { background: #1e1a00; border-color: var(--yellow); color: #e8d060; }
.alert-info    { background: #0a1628; border-color: var(--blue);   color: #80b8f0; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-danger {
  background: #3a1010;
  color: var(--red);
  border: 1px solid #5a2020;
}
.btn-danger:hover { background: #5a1010; border-color: var(--red); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-icon { padding: 8px; }

/* ─── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238899aa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ─── Checkboxes / Toggles ─────────────────────────────────────────────────── */
.toggle-group { display: flex; align-items: center; gap: 10px; }
.toggle-group label { margin: 0; text-transform: none; font-size: 14px; color: var(--text-primary); letter-spacing: 0; font-weight: 400; cursor: pointer; }
.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: .25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px; width: 14px;
  left: 3px; top: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: .25s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: #fff; }

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

/* ─── Tables ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-input);
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.025); }
td { padding: 11px 14px; color: var(--text-primary); vertical-align: middle; }

/* ─── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-online  { background: #0a2a14; color: var(--green); border: 1px solid #20602a; }
.badge-offline { background: #2a0a0a; color: var(--red);   border: 1px solid #602020; }
.badge-warn    { background: #2a1e00; color: var(--yellow); border: 1px solid #604000; }
.badge-info    { background: #0a1628; color: var(--blue);   border: 1px solid #204060; }
.badge-admin   { background: #2a1400; color: var(--accent); border: 1px solid var(--accent-dim); }

/* ─── Top Nav ──────────────────────────────────────────────────────────────── */
.topnav {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand:hover { color: var(--accent-hover); }
.nav-brand .brand-dot { color: var(--text-muted); font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-card); }
.nav-link.active { color: var(--accent); }
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

/* ─── Page Hero ────────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 36px;
}
.page-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.page-hero p { color: var(--text-muted); max-width: 640px; line-height: 1.7; }

/* ─── Portal Cards (Dashboard) ─────────────────────────────────────────────── */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px 0;
}
.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
}
.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent));
  opacity: 0;
  transition: opacity 0.25s;
}
.portal-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.portal-card:hover::before { opacity: 1; }
.portal-card:hover { border-color: var(--card-accent, var(--accent)); }

.portal-banner {
  height: 140px;
  background: var(--card-bg, var(--bg-card-2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portal-banner img { width: 100%; height: 100%; object-fit: cover; }
.portal-banner-icon {
  font-size: 52px;
  opacity: 0.6;
  filter: drop-shadow(0 0 20px var(--card-accent, var(--accent)));
}

.portal-status-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  box-shadow: 0 0 6px currentColor;
}
.portal-status-dot.online  { background: var(--green); animation: pulse-green 2s infinite; }
.portal-status-dot.offline { background: var(--red); }

.portal-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.portal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.portal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.portal-meta-item { display: flex; align-items: center; gap: 4px; }
.portal-arrow {
  color: var(--card-accent, var(--accent));
  font-size: 16px;
  transition: transform 0.2s;
}
.portal-card:hover .portal-arrow { transform: translateX(4px); }

/* ─── Status indicators ────────────────────────────────────────────────────── */
.status-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.status-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 100px;
}
.status-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.status-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.status-value.green { color: var(--green); }
.status-value.red   { color: var(--red); }

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50%       { box-shadow: 0 0 12px var(--green), 0 0 20px var(--green); }
}
@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 6px var(--accent); }
  50%       { box-shadow: 0 0 18px var(--accent), 0 0 30px var(--accent-dim); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.animate-fade-in { animation: fadeIn 0.4s ease both; }
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* ─── Login Page ───────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,100,28,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(64,144,224,0.04) 0%, transparent 50%),
    var(--bg-deep);
  padding: 24px;
}
.login-box {
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.5s ease;
}
.login-brand {
  text-align: center;
  margin-bottom: 36px;
}
.login-brand .logo-text {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 30px var(--accent-glow);
  animation: pulse-orange 4s infinite;
  display: inline-block;
}
.login-brand .tagline {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.login-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.login-card .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.login-submit {
  margin-top: 8px;
}
.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── Admin Layout ─────────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-deep);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar-brand .brand-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.admin-sidebar-brand .brand-sub {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-nav { padding: 16px 10px; flex: 1; }
.admin-nav-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  padding: 12px 10px 6px;
  font-weight: 700;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 2px;
}
.admin-nav-link:hover { background: var(--bg-card); color: var(--text-primary); }
.admin-nav-link.active { background: var(--bg-card); color: var(--accent); }
.admin-nav-link .nav-icon { font-size: 15px; width: 18px; text-align: center; }
.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.admin-main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-topbar .page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.admin-content { padding: 28px; }

/* ─── Stats row (admin) ────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--accent); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.stat-sub { font-size: 12px; color: var(--text-muted); }

/* ─── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: fadeIn 0.2s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
  line-height: 1;
}
.modal-close:hover { background: var(--bg-card-2); color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ─── Mods list ────────────────────────────────────────────────────────────── */
.mods-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mod-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.mod-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Whitelist section ────────────────────────────────────────────────────── */
.whitelist-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.whitelist-box h3 { font-size: 14px; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }

/* ─── Color inputs ─────────────────────────────────────────────────────────── */
.color-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}
input[type="color"] {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  padding: 2px;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 20px; }
}
@media (max-width: 640px) {
  .portals-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 24px; }
  .login-card { padding: 24px; }
  .topnav-inner { padding: 0 16px; }
}

/* ─── Misc page utils ──────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-dim);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

.loading-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
