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

:root {
  --bg: #0f0f14;
  --bg2: #16161f;
  --bg3: #1e1e2a;
  --bg4: #25253a;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0f0f5;
  --text2: #9090a8;
  --text3: #606078;
  --accent: #534AB7;
  --accent2: #378ADD;
  --teal: #1D9E75;
  --coral: #D85A30;
  --pink: #D4537E;
  --amber: #BA7517;

  --li: #378ADD;
  --fb: #3C3489;
  --yt: #1D9E75;
  --tt: #534AB7;
  --ig: #D4537E;

  --sidebar-w: 220px;
  --topbar-h: 64px;
  --radius: 10px;
  --radius-sm: 6px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

.app {
  display: flex;
  height: 100vh;
}

/* ── Sidebar ───────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  height: 100vh;
}

.sidebar-top { flex: 1; padding: 0 14px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}
.brand-name { font-weight: 600; font-size: 13px; color: var(--text); }
.brand-sub { font-size: 10px; color: var(--text3); }

.nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.15s;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--bg4); color: var(--text); font-weight: 500; }
.nav-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }

.sidebar-section-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.account-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.account-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.account-btn.active { background: var(--bg4); color: var(--text); }

.sidebar-bottom {
  padding: 16px 14px 0;
  border-top: 1px solid var(--border);
}
.sync-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.sync-label { font-size: 10px; color: var(--text3); }
.sync-time { font-size: 11px; color: var(--text2); font-family: 'DM Mono', monospace; }
.sync-btn {
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.sync-btn:hover { background: var(--bg3); color: var(--text); }

/* ── Main ───────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
}

.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg2);
}
.topbar-left { display: flex; align-items: baseline; gap: 12px; }
.page-title { font-size: 18px; font-weight: 600; color: var(--text); }
.page-period { font-size: 12px; color: var(--text3); font-family: 'DM Mono', monospace; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.period-selector, .platform-filters {
  display: flex;
  gap: 3px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.period-btn, .pf-btn {
  padding: 5px 12px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.period-btn.active, .pf-btn.active { background: var(--bg4); color: var(--text); }
.pf-btn.yt.active { color: var(--yt); }
.pf-btn.fb.active { color: #7B78FF; }
.pf-btn.ig.active { color: var(--ig); }
.pf-btn.li.active { color: var(--li); }
.pf-btn.tt.active { color: var(--tt); }

/* ── Views ───────────────────────── */
.view { display: none; flex: 1; overflow-y: auto; padding: 20px 24px; flex-direction: column; gap: 16px; }
.view.active { display: flex; }

/* ── KPI row ───────────────────────── */
.kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kpi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.kpi-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.kpi-value { font-size: 22px; font-weight: 600; color: var(--text); font-family: 'DM Mono', monospace; line-height: 1; margin-bottom: 4px; }
.kpi-sub { font-size: 10px; color: var(--text3); margin-bottom: 8px; }
.kpi-delta { display: inline-block; font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 4px; }
.kpi-delta.up { background: rgba(29,158,117,0.15); color: var(--teal); }
.kpi-delta.down { background: rgba(216,90,48,0.15); color: var(--coral); }
.kpi-delta.neutral { background: var(--bg3); color: var(--text3); }

/* ── Charts ───────────────────────── */
.charts-row { display: flex; gap: 12px; }
.chart-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  flex: 1;
}
.chart-card.wide { flex: 2; }
.chart-card.full { flex: 1; width: 100%; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chart-title { font-size: 12px; font-weight: 500; color: var(--text2); }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.chart-legend span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text3); }
.chart-legend .dot { width: 8px; height: 8px; border-radius: 2px; }
.chart-wrap { position: relative; width: 100%; }

/* ── Table ───────────────────────── */
.table-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-header { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 10px 18px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text2);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.num { font-family: 'DM Mono', monospace; color: var(--text); }
.delta { font-size: 11px; font-weight: 500; padding: 2px 6px; border-radius: 3px; }
.delta.up { background: rgba(29,158,117,0.15); color: var(--teal); }
.delta.down { background: rgba(216,90,48,0.15); color: var(--coral); }

.plat-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.plat-badge.li { background: rgba(55,138,221,0.15); color: var(--li); }
.plat-badge.fb { background: rgba(60,52,137,0.3); color: #7B78FF; }
.plat-badge.yt { background: rgba(29,158,117,0.15); color: var(--yt); }
.plat-badge.tt { background: rgba(83,74,183,0.2); color: #8B82EE; }
.plat-badge.ig { background: rgba(212,83,126,0.15); color: var(--ig); }

.status-badge { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.status-badge.connected { background: rgba(29,158,117,0.15); color: var(--teal); }
.status-badge.pending { background: rgba(186,117,23,0.15); color: var(--amber); }

/* ── Platform cards ───────────────────────── */
.platform-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.platform-detail-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pd-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.pd-name { font-size: 15px; font-weight: 600; color: white; }
.pd-handle { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.li-bg { background: linear-gradient(135deg, rgba(55,138,221,0.3), rgba(55,138,221,0.1)); }
.fb-bg { background: linear-gradient(135deg, rgba(60,52,137,0.4), rgba(60,52,137,0.1)); }
.yt-bg { background: linear-gradient(135deg, rgba(29,158,117,0.3), rgba(29,158,117,0.1)); }
.tt-bg { background: linear-gradient(135deg, rgba(83,74,183,0.3), rgba(83,74,183,0.1)); }
.ig-bg { background: linear-gradient(135deg, rgba(212,83,126,0.3), rgba(212,83,126,0.1)); }
.pd-metrics { display: flex; padding: 14px 18px; gap: 0; border-bottom: 1px solid var(--border); }
.pd-metric { flex: 1; }
.pd-metric + .pd-metric { border-left: 1px solid var(--border); padding-left: 14px; }
.pd-val { font-size: 18px; font-weight: 600; color: var(--text); font-family: 'DM Mono', monospace; }
.pd-lbl { font-size: 10px; color: var(--text3); margin-top: 2px; }
.pd-footer { padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.demo-tag {
  font-size: 10px;
  background: var(--bg3);
  color: var(--text3);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Posts ───────────────────────── */
.posts-filter-bar { display: flex; gap: 10px; margin-bottom: 4px; }
.search-input {
  flex: 1;
  padding: 9px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}
.search-input:focus { border-color: var(--border2); }
.search-input::placeholder { color: var(--text3); }
.filter-select {
  padding: 9px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  cursor: pointer;
}

.posts-list { display: flex; flex-direction: column; gap: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.post-row:last-of-type { border-bottom: none; }
.post-row:hover { background: rgba(255,255,255,0.02); }
.post-platform {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.post-platform.yt { background: rgba(29,158,117,0.2); color: var(--yt); }
.post-platform.tt { background: rgba(83,74,183,0.2); color: #8B82EE; }
.post-platform.li { background: rgba(55,138,221,0.2); color: var(--li); }
.post-platform.ig { background: rgba(212,83,126,0.2); color: var(--ig); }
.post-platform.fb { background: rgba(60,52,137,0.25); color: #7B78FF; }
.post-content { flex: 1; min-width: 0; }
.post-title { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-meta { font-size: 11px; color: var(--text3); margin-top: 2px; }
.post-stats { display: flex; gap: 16px; flex-shrink: 0; }
.ps { display: flex; flex-direction: column; align-items: flex-end; }
.ps span { font-size: 13px; font-weight: 600; color: var(--text); font-family: 'DM Mono', monospace; }
.ps small { font-size: 10px; color: var(--text3); }
.post-bar-wrap { width: 80px; flex-shrink: 0; }
.post-bar { height: 4px; border-radius: 2px; background: var(--bg3); overflow: hidden; }
.post-bar-fill { height: 100%; border-radius: 2px; }
.post-note { padding: 12px 18px; font-size: 11px; color: var(--text3); font-style: italic; border-top: 1px solid var(--border); }

/* ── Audience ───────────────────────── */
.audience-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.fact-label { font-size: 11px; font-weight: 500; color: var(--text2); margin-bottom: 14px; }
.fact-rows { display: flex; flex-direction: column; gap: 10px; }
.fact-row { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text3); }
.fact-row span:first-child { width: 90px; flex-shrink: 0; }
.fact-bar-wrap { flex: 1; height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.fact-bar { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.fact-pct { width: 36px; text-align: right; font-family: 'DM Mono', monospace; font-size: 11px; flex-shrink: 0; }

/* ── Comments ───────────────────────── */
.comments-header-note { font-size: 11px; color: var(--text3); padding: 10px 16px; background: var(--bg3); border-radius: var(--radius-sm); border: 1px solid var(--border); font-style: italic; }
.comments-list { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.comment-row { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.comment-row:last-child { border-bottom: none; }
.comment-platform {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.comment-platform.li { background: rgba(55,138,221,0.2); color: var(--li); }
.comment-platform.yt { background: rgba(29,158,117,0.2); color: var(--yt); }
.comment-platform.ig { background: rgba(212,83,126,0.2); color: var(--ig); }
.comment-body { flex: 1; }
.comment-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.commenter { font-size: 12px; font-weight: 600; color: var(--text); }
.comment-platform-name { font-size: 10px; color: var(--text3); background: var(--bg3); padding: 2px 7px; border-radius: 3px; }
.comment-date { font-size: 11px; color: var(--text3); margin-left: auto; font-family: 'DM Mono', monospace; }
.comment-text { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 6px; }
.comment-post-ref { font-size: 10px; color: var(--text3); }
.comment-actions { flex-shrink: 0; padding-top: 4px; }
.likes-count { font-size: 11px; color: var(--text3); }

/* ── Scrollbar ───────────────────────── */
.view::-webkit-scrollbar { width: 4px; }
.view::-webkit-scrollbar-track { background: transparent; }
.view::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 2px; }

/* ── History view ───────────────────────── */
.history-controls { display: flex; align-items: center; justify-content: space-between; }
.history-label { font-size: 13px; font-weight: 500; color: var(--text2); }
.add-month-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: rgba(83,74,183,0.12);
  color: #8B82EE;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.add-month-btn:hover { background: rgba(83,74,183,0.22); }
.export-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.export-btn:hover { background: var(--bg3); color: var(--text); }

/* ── Settings ───────────────────────── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-section { display: flex; flex-direction: column; gap: 12px; }
.settings-section-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 0; }
.settings-section-sub { font-size: 11px; color: var(--text3); margin-top: -8px; line-height: 1.5; }

.api-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.api-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.api-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.api-dot.yt { background: var(--teal); }
.api-dot.fb { background: #7B78FF; }
.api-dot.li { background: var(--li); }
.api-dot.tt { background: #8B82EE; }
.api-name { font-size: 12px; font-weight: 500; color: var(--text); flex: 1; }
.api-fields { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.field-row { display: flex; flex-direction: column; gap: 5px; }
.field-row label { font-size: 10px; color: var(--text3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.cred-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  outline: none;
  transition: border-color 0.15s;
}
.cred-input:focus { border-color: var(--accent); }
.cred-input::placeholder { color: var(--text3); font-family: 'DM Sans', sans-serif; }
select.cred-input { font-family: 'DM Sans', sans-serif; cursor: pointer; }
.api-actions { display: flex; gap: 8px; margin-top: 4px; }
.test-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.test-btn:hover { background: var(--bg4); color: var(--text); }
.save-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.save-btn:hover { opacity: 0.85; }
.api-help { font-size: 10px; color: var(--text3); line-height: 1.5; padding-top: 4px; border-top: 1px solid var(--border); }
.data-mgmt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mgmt-label { font-size: 12px; color: var(--text2); font-weight: 500; }
.mgmt-val { font-size: 20px; font-weight: 600; color: var(--text); font-family: 'DM Mono', monospace; margin-top: 2px; }
.mgmt-sub { font-size: 10px; color: var(--text3); margin-top: 2px; }
.danger-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(216,90,48,0.3);
  background: rgba(216,90,48,0.1);
  color: var(--coral);
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.danger-btn:hover { background: rgba(216,90,48,0.2); }

/* ── Modal ───────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  width: 600px;
  max-width: 95vw;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg2);
  z-index: 1;
}
.modal-title { font-size: 14px; font-weight: 600; color: var(--text); }
.modal-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.1s;
}
.modal-close:hover { background: var(--bg3); color: var(--text); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-field-row { display: flex; flex-direction: column; gap: 6px; }
.modal-field-row label, .modal-field label { font-size: 10px; color: var(--text3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.modal-section-label { font-size: 11px; font-weight: 600; color: var(--text2); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.modal-field { display: flex; flex-direction: column; gap: 5px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; }
.modal-cancel { padding: 9px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border2); background: transparent; color: var(--text2); font-size: 12px; font-family: 'DM Sans', sans-serif; cursor: pointer; }
.modal-save { padding: 9px 20px; border-radius: var(--radius-sm); border: none; background: var(--accent); color: white; font-size: 12px; font-family: 'DM Sans', sans-serif; font-weight: 500; cursor: pointer; }
.modal-save:hover { opacity: 0.88; }

/* ── Toast ───────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text);
  z-index: 2000;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(29,158,117,0.4); }
.toast.error { border-color: rgba(216,90,48,0.4); }
