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

:root {
  --bg:         #080811;
  --surface:    #0d0d1a;
  --card:       #111120;
  --card-hover: #161628;
  --border:     #1c1c32;
  --border-mid: #252540;
  --accent:     #00e5a8;
  --accent-dim: rgba(0,229,168,.08);
  --accent-glow:rgba(0,229,168,.25);
  --purple:     #a78bfa;
  --purple-dim: rgba(167,139,250,.08);
  --red:        #f87171;
  --red-dim:    rgba(248,113,113,.08);
  --yellow:     #fbbf24;
  --text:       #e4e4f4;
  --muted:      #7878a0;
  --dim:        #3a3a58;
  --ff-display: 'Syne', sans-serif;
  --ff-body:    'Nunito Sans', sans-serif;
  --ff-mono:    'JetBrains Mono', monospace;
  --r:          10px;
  --r-sm:       6px;
  --r-lg:       16px;
  --trans:      .18s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

/* ════════════════════════════════════════
   AUTH PAGES (login / setup)
   ════════════════════════════════════════ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,229,168,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(167,139,250,.08) 0%, transparent 60%),
    var(--bg);
  padding: 24px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.brand-icon {
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-name {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card h1 {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.03em;
}

.auth-subtitle {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 14px;
}

/* ── FORMS ── */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #050e0c;
}
.btn-primary:hover {
  background: #00ffbd;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--border-mid);
  color: var(--text);
}
.btn-secondary:hover { background: var(--dim); }

.btn-danger-outline {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(248,113,113,.3);
}
.btn-danger-outline:hover {
  background: var(--red-dim);
  border-color: var(--red);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; padding: 13px; }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  padding: 4px 6px;
  border-radius: var(--r-sm);
  transition: all var(--trans);
  line-height: 1;
}
.btn-icon:hover { color: var(--text); background: var(--border); }
.btn-icon.danger:hover { color: var(--red); background: var(--red-dim); }

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert-error   { background: var(--red-dim);  border-color: rgba(248,113,113,.3); color: var(--red); }
.alert-success { background: var(--accent-dim); border-color: rgba(0,229,168,.3); color: var(--accent); }
.alert-info    { background: var(--purple-dim); border-color: rgba(167,139,250,.3); color: var(--purple); }

/* ════════════════════════════════════════
   APP LAYOUT (sidebar + content)
   ════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--trans);
}
.nav-item:hover { background: var(--border); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); }

.nav-icon { font-size: 16px; line-height: 1; }

.sidebar-footer {
  padding: 16px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.user-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #050e0c;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.btn-logout {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: all var(--trans);
  line-height: 1;
}
.btn-logout:hover { color: var(--red); }

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  padding: 36px 40px;
  max-width: 1200px;
  overflow-x: hidden;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.page-header h1 {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.header-actions { display: flex; gap: 10px; align-items: center; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--muted);
}
.empty-icon { font-size: 56px; margin-bottom: 20px; line-height: 1; }
.empty-state h2 { font-family: var(--ff-display); font-size: 22px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  cursor: pointer;
  transition: all var(--trans);
}
.project-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.project-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.project-meta h3 {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.project-date { font-size: 12px; color: var(--muted); }

.project-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-value { font-family: var(--ff-display); font-size: 22px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--border);
  color: var(--muted);
  font-size: 11px;
  font-family: var(--ff-mono);
  padding: 3px 8px;
  border-radius: 99px;
}
.tag-more { background: var(--accent-dim); color: var(--accent); }

/* ── SECTION ── */
.section {
  margin-bottom: 40px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ── STATIONS ── */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.station-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  transition: border-color var(--trans);
}
.station-card:hover { border-color: var(--border-mid); }

.station-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.station-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.station-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}

.station-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.station-path {
  margin-bottom: 12px;
}
.station-path code {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── SHARES IN STATION ── */
.station-shares {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 12px;
}

.share-url {
  font-family: var(--ff-mono);
  color: var(--purple);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-pin {
  color: var(--yellow);
  font-size: 11px;
  background: rgba(251,191,36,.1);
  padding: 1px 6px;
  border-radius: 99px;
}

/* ── FILE MANAGER ── */
.file-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
}

.file-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}

.file-group-icon { font-size: 16px; }

.file-list { padding: 4px 0; }

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  transition: background var(--trans);
  border-bottom: 1px solid var(--border);
}
.file-item:last-child { border-bottom: none; }
.file-item:hover { background: var(--surface); }

.file-icon { font-size: 15px; flex-shrink: 0; }

.file-name {
  flex: 1;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.btn-file-action {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ff-body);
  color: var(--muted);
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 3px 9px;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
}
.btn-file-action:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-file-action.danger:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }

/* ── SHARE RESULT ── */
.share-result { margin-top: 20px; }
.share-result p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  padding: 10px 14px;
}
.share-link-box code {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--purple);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

/* ════════════════════════════════════════
   MODALS
   ════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,17,.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .15s ease;
}
.modal-overlay.open { display: flex; }

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

.modal {
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  animation: slideUp .18s ease;
}
.modal-sm { max-width: 440px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: all var(--trans);
}
.modal-close:hover { color: var(--text); background: var(--border); }

.modal-body { padding: 24px 26px; }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--border-mid);
  border-radius: var(--r);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  transition: all var(--trans);
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}
.upload-icon { font-size: 48px; margin-bottom: 16px; }
.upload-zone p { margin-bottom: 16px; font-size: 14px; }

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin: 20px 0 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 99px;
  transition: width .3s ease;
  width: 0%;
}
.progress-text { font-size: 13px; color: var(--muted); text-align: center; }

/* ── FOLDER SELECTION ── */
.folder-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }

.folder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--trans);
}
.folder-item:hover { border-color: var(--border-mid); }
.folder-item.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.folder-checkbox {
  width: 18px; height: 18px;
  border: 2px solid var(--border-mid);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  transition: all var(--trans);
}
.folder-item.selected .folder-checkbox {
  background: var(--accent);
  border-color: var(--accent);
  color: #050e0c;
}

.folder-info { flex: 1; }
.folder-name { font-family: var(--ff-mono); font-size: 13px; font-weight: 500; }
.folder-files { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ════════════════════════════════════════
   EDITOR LAYOUT
   ════════════════════════════════════════ */
.editor-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 50px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-shrink: 0;
}

.editor-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.editor-back {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--trans);
}
.editor-back:hover { color: var(--accent); }

.editor-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}
.breadcrumb-sep { color: var(--dim); }
.breadcrumb-file { color: var(--text); font-family: var(--ff-mono); font-weight: 500; }

.editor-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.save-indicator {
  font-size: 12px;
  color: var(--muted);
  min-width: 80px;
  text-align: right;
}
.save-indicator.saving { color: var(--yellow); }
.save-indicator.saved  { color: var(--accent); }
.save-indicator.error  { color: var(--red); }

.editor-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

#codeEditor {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-mono);
  font-size: 14px;
  line-height: 1.7;
  padding: 20px 24px;
  border: none;
  outline: none;
  resize: none;
  tab-size: 2;
}

.editor-statusbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  height: 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--ff-mono);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   SERVE / SHARE PAGES
   ════════════════════════════════════════ */
.serve-pin-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(167,139,250,.1) 0%, transparent 70%),
    var(--bg);
  padding: 24px;
}

.serve-pin-card {
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 48px 44px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}

.serve-pin-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.serve-pin-card h1 {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.serve-pin-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.pin-input {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 24px;
  letter-spacing: .4em;
  padding: 14px !important;
}

/* ════════════════════════════════════════
   CONFIRM DIALOG
   ════════════════════════════════════════ */
.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,17,.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.confirm-dialog-overlay.open { display: flex; }

.confirm-dialog {
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  animation: slideUp .15s ease;
}

.confirm-dialog h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  margin-bottom: 8px;
}

.confirm-dialog p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: slideUp .2s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.success { border-color: rgba(0,229,168,.4); color: var(--accent); }
.toast.error   { border-color: rgba(248,113,113,.4); color: var(--red); }

/* ── MISC UTILS ── */
.text-muted { color: var(--muted); font-size: 14px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }

/* ── LOADING SPINNER ── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--border-mid);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
