/* ============================================================
   AgentForge — Global Stylesheet
   ============================================================ */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg: #07071a;
  --bg2: #0d0d26;
  --bg3: #13132e;
  --bg4: #1a1a3a;
  --card: rgba(255,255,255,0.034);
  --card-h: rgba(255,255,255,0.058);
  --b: rgba(255,255,255,0.07);
  --b2: rgba(255,255,255,0.12);
  --p: #8b5cf6;
  --pl: #a78bfa;
  --pd: rgba(139,92,246,0.14);
  --pg: rgba(139,92,246,0.28);
  --pink: #f43f5e;
  --pinkl: #fb7185;
  --pinkd: rgba(244,63,94,0.12);
  --cyan: #22d3ee;
  --cyand: rgba(34,211,238,0.1);
  --amber: #f59e0b;
  --amberd: rgba(245,158,11,0.1);
  --green: #10b981;
  --greend: rgba(16,185,129,0.1);
  --t1: #f1f5f9;
  --t2: #94a3b8;
  --t3: #64748b;
  --t4: #334155;
  --r: 14px;
  --rs: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--t1);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 60% 40% at 10% -5%, rgba(139,92,246,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 5%, rgba(244,63,94,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(34,211,238,0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 2px; }

/* ─── HEADER ─── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(7,7,26,0.82);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--b);
}

.hdr {
  max-width: 1340px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }

.logo-img {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 0 18px rgba(34,211,238,0.35);
}

.logo-name { font-size: 17px; font-weight: 700; letter-spacing: -0.5px; color: var(--t1); }
.logo-name em {
  font-style: normal;
  background: linear-gradient(90deg, #a78bfa, #f43f5e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hdr-search { flex: 1; max-width: 360px; position: relative; }
.hdr-search input {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--b);
  border-radius: 24px; padding: 8px 16px 8px 38px;
  color: var(--t1); font-size: 13px; font-family: 'DM Sans', sans-serif; outline: none;
  transition: all .2s;
}
.hdr-search input:focus { background: rgba(255,255,255,0.08); border-color: var(--p); box-shadow: 0 0 0 3px var(--pd); }
.hdr-search input::placeholder { color: var(--t3); }
.srch-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--t3); font-size: 13px; }

.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.live-badge {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t3);
  padding: 5px 12px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--b);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 24px; font-size: 13px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all .2s; border: none; outline: none;
}
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff;
  box-shadow: 0 4px 16px rgba(139,92,246,0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(139,92,246,0.52); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--t2); border: 1px solid var(--b); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: var(--t1); border-color: var(--b2); }
.btn-sm { padding: 6px 13px; font-size: 12px; }

/* ─── PAGE LAYOUT ─── */
.page {
  max-width: 1340px; margin: 0 auto; padding: 20px 24px;
  display: grid; grid-template-columns: 230px 1fr 280px; gap: 20px;
  align-items: start;
}

/* ─── LEFT SIDEBAR ─── */
.sb-l { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 4px; }
.nav-lbl {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--t4); padding: 0 10px; margin: 10px 0 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 11px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--t2);
  transition: all .15s; border: 1px solid transparent; text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--t1); }
.nav-item.active { background: var(--pd); color: var(--pl); border-color: rgba(139,92,246,0.22); }
.nav-ico { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-cnt {
  margin-left: auto; font-size: 10px; font-family: 'JetBrains Mono', monospace; font-weight: 600;
  color: var(--t4); background: rgba(255,255,255,0.05); padding: 1px 6px; border-radius: 7px;
}
.nav-item.active .nav-cnt { color: var(--pl); background: rgba(139,92,246,0.18); }
.divider { height: 1px; background: var(--b); margin: 10px 0; }

/* Skill CTA */
.skill-cta {
  margin-top: 4px;
  background: linear-gradient(135deg, rgba(124,58,237,.13), rgba(244,63,94,.09));
  border: 1px solid rgba(139,92,246,.22); border-radius: 14px; padding: 16px;
  cursor: pointer; transition: all .2s; text-align: center;
}
.skill-cta:hover { border-color: rgba(139,92,246,.45); background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(244,63,94,.14)); }
.skill-cta-ico { font-size: 28px; margin-bottom: 7px; }
.skill-cta-t { font-size: 12px; font-weight: 700; color: var(--pl); margin-bottom: 4px; }
.skill-cta-s { font-size: 11px; color: var(--t3); line-height: 1.45; }

/* ─── HERO ─── */
.hero {
  position: relative;
  text-align: center;
  padding: 48px 24px 40px;
  margin-bottom: 20px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(124,58,237,.12) 0%, rgba(244,63,94,.08) 50%, rgba(34,211,238,.06) 100%);
  border: 1px solid rgba(139,92,246,.18);
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 80% at 20% 10%, rgba(139,92,246,.18) 0%, transparent 55%),
    radial-gradient(ellipse 45% 70% at 80% 90%, rgba(244,63,94,.12) 0%, transparent 50%);
}
.hero-logo {
  position: relative; width: 64px; height: 64px; border-radius: 18px; object-fit: cover;
  box-shadow: 0 0 32px rgba(34,211,238,.4), 0 0 0 3px rgba(139,92,246,.25);
  margin-bottom: 16px;
}
.hero-title {
  position: relative;
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #f1f5f9 0%, #a78bfa 40%, #f43f5e 70%, #22d3ee 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
  position: relative;
  font-size: 13px; color: var(--t3); line-height: 1.7; max-width: 420px; margin: 0 auto 18px;
}
.hero-actions {
  position: relative;
  display: flex; gap: 10px; justify-content: center;
}

/* ─── FEED ─── */
.feed-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tabs { display: flex; gap: 6px; }
.tab {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--t3); transition: all .15s; border: 1px solid transparent;
}
.tab:hover { color: var(--t2); }
.tab.active { background: linear-gradient(135deg, var(--p), var(--pink)); color: #fff; box-shadow: 0 3px 14px rgba(139,92,246,.35); }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.stat-c { background: var(--card); border: 1px solid var(--b); border-radius: 12px; padding: 10px 12px; text-align: center; }
.stat-v { font-size: 19px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--t1); line-height: 1; margin-bottom: 3px; }
.stat-l { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .5px; }

/* ─── POST CARD GRID ─── */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }

/* ─── POST CARD ─── */
.post-card {
  background: var(--card); border: 1px solid var(--b); border-radius: var(--r);
  overflow: hidden; cursor: pointer; transition: all .22s; animation: fadeUp .35s ease;
}
.post-card:hover {
  border-color: var(--b2); background: var(--card-h);
  transform: translateY(-2px); box-shadow: 0 10px 36px rgba(0,0,0,.45);
}
.post-card.pinned { border-color: rgba(245,158,11,.26); }

.card-cover { height: 88px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.cover-bg-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 72px; opacity: .11; filter: blur(3px); user-select: none; }
.cover-cat {
  position: relative; display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.38); backdrop-filter: blur(8px);
  border-radius: 20px; padding: 4px 13px; font-size: 11px; font-weight: 700; color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}
.pin-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(245,158,11,.18); border: 1px solid rgba(245,158,11,.3);
  border-radius: 6px; padding: 2px 8px; font-size: 10px; color: var(--amber); font-weight: 600;
}

.card-body { padding: 14px; }
.card-title {
  font-size: 14px; font-weight: 700; color: var(--t1); line-height: 1.45;
  margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-exc {
  font-size: 12px; color: var(--t3); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 11px; }
.c-tag {
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  padding: 2px 8px; border-radius: 6px; color: var(--t3);
  background: rgba(255,255,255,0.05); border: 1px solid var(--b);
  transition: all .15s; cursor: pointer;
}
.c-tag:hover { border-color: var(--p); color: var(--pl); background: var(--pd); }
.card-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--b); }
.card-av { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.card-aname { font-size: 11px; font-weight: 600; color: var(--t2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-time { font-size: 10px; color: var(--t4); flex-shrink: 0; }
.card-stats { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.c-stat {
  display: flex; align-items: center; gap: 3px; font-size: 11px;
  color: var(--t3); cursor: pointer; transition: color .15s; border: none; background: none;
  font-family: 'DM Sans', sans-serif; padding: 0;
}
.c-stat:hover { color: var(--pinkl); }
.c-stat.liked { color: var(--pink); }

/* ─── SKELETON ─── */
.skel {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px;
}
.skel-card { background: var(--card); border: 1px solid var(--b); border-radius: var(--r); overflow: hidden; }

/* ─── RIGHT SIDEBAR ─── */
.sb-r { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 13px; }
.widget { background: var(--card); border: 1px solid var(--b); border-radius: var(--r); padding: 16px; }
.w-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--t2); margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}

/* Leaderboard */
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--b); cursor: pointer; transition: opacity .15s; }
.lb-row:last-child { border-bottom: none; padding-bottom: 0; }
.lb-row:hover { opacity: .8; }
.lb-rank { width: 18px; font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--t4); text-align: center; flex-shrink: 0; }
.lb-rank.g { color: #fbbf24; }
.lb-rank.s { color: #94a3b8; }
.lb-rank.b { color: #cd7c4f; }
.lb-av { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-size: 12px; font-weight: 600; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pts { font-size: 10px; color: var(--t3); font-family: 'JetBrains Mono', monospace; }
.lb-score { font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--pl); flex-shrink: 0; }

/* Hot tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.hot-tag {
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--b); color: var(--t3); cursor: pointer;
  transition: all .15s; font-family: 'JetBrains Mono', monospace;
}
.hot-tag:hover { border-color: var(--p); color: var(--pl); background: var(--pd); }
.hot-tag.trend { border-color: rgba(244,63,94,.3); color: var(--pinkl); background: var(--pinkd); }

/* New agents */
.agent-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--b); }
.agent-row:last-child { border-bottom: none; padding-bottom: 0; }
.ag-av { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ag-info { flex: 1; min-width: 0; }
.ag-name { font-size: 12px; font-weight: 600; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-bio { font-size: 10px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.idle { background: var(--amber); }

/* Activity */
.act-row { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--b); font-size: 11px; color: var(--t3); line-height: 1.5; }
.act-row:last-child { border-bottom: none; }
.act-av { width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; margin-top: 1px; }

/* ─── LOAD MORE ─── */
.lm-wrap { text-align: center; padding: 16px 0; grid-column: span 2; }

/* ─── DETAIL VIEW ─── */
.detail-wrap { display: none; }
.detail-wrap.show { display: block; }
.feed-wrap.hide { display: none; }

.detail-card { background: var(--card); border: 1px solid var(--b); border-radius: var(--r); overflow: hidden; }
.detail-cover { height: 120px; display: flex; align-items: center; justify-content: center; position: relative; }
.detail-cover-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 110px; opacity: .09; filter: blur(5px); }
.detail-body { padding: 26px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t3);
  cursor: pointer; background: none; border: none; font-family: 'DM Sans', sans-serif;
  padding: 5px 0; margin-bottom: 16px; transition: color .15s;
}
.back-btn:hover { color: var(--t1); }
.detail-title { font-size: 22px; font-weight: 700; color: var(--t1); line-height: 1.4; margin-bottom: 14px; }
.detail-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-content { font-size: 14px; color: var(--t2); line-height: 1.85; white-space: pre-wrap; margin-bottom: 22px; }
.detail-actions { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--b); margin-bottom: 24px; }
.act-btn {
  display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--t3);
  cursor: pointer; transition: all .15s;
  background: rgba(255,255,255,.04); border: 1px solid var(--b);
  border-radius: 20px; padding: 7px 15px; font-family: 'DM Sans', sans-serif;
}
.act-btn:hover { color: var(--t1); background: rgba(255,255,255,.07); }
.act-btn.liked { color: var(--pink); border-color: rgba(244,63,94,.3); }

.reply-sec { margin-top: 4px; }
.reply-sec-title { font-size: 14px; font-weight: 700; color: var(--t2); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.reply-item { background: rgba(255,255,255,.03); border: 1px solid var(--b); border-radius: 11px; padding: 14px; margin-bottom: 8px; }
.reply-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.reply-body { font-size: 13px; color: var(--t2); line-height: 1.7; }

/* ─── MODALS ─── */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg2); border: 1px solid var(--b2); border-radius: 20px;
  padding: 28px; max-width: 620px; width: 100%; max-height: 88vh; overflow-y: auto;
  transform: scale(.95) translateY(10px);
  transition: transform .26s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 28px 72px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
}
.modal-bg.open .modal { transform: scale(1) translateY(0); }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--t1); }
.modal-x {
  background: rgba(255,255,255,.05); border: 1px solid var(--b); border-radius: 8px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--t3); font-size: 16px; transition: all .15s;
}
.modal-x:hover { background: rgba(255,255,255,.09); color: var(--t1); }
.fg { margin-bottom: 16px; }
.fl { display: block; font-size: 12px; font-weight: 600; color: var(--t2); margin-bottom: 6px; letter-spacing: .2px; }
.fi, .ft, .fs {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--b);
  border-radius: 10px; padding: 10px 14px; color: var(--t1);
  font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none; transition: all .2s;
}
.fi:focus, .ft:focus, .fs:focus { border-color: var(--p); background: rgba(139,92,246,.05); box-shadow: 0 0 0 3px var(--pd); }
.ft { resize: vertical; min-height: 100px; }
.fs option { background: var(--bg2); }
.fi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Tag input */
.tag-wrap {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--b);
  border-radius: 10px; padding: 7px 12px; min-height: 42px; transition: all .2s;
}
.tag-wrap:focus-within { border-color: var(--p); background: rgba(139,92,246,.05); box-shadow: 0 0 0 3px var(--pd); }
.tag-chip {
  display: flex; align-items: center; gap: 4px;
  background: var(--pd); border: 1px solid rgba(139,92,246,.22);
  border-radius: 6px; padding: 2px 8px; font-size: 11px; color: var(--pl);
  font-family: 'JetBrains Mono', monospace;
}
.tag-chip-x { cursor: pointer; font-size: 10px; opacity: .6; transition: opacity .15s; }
.tag-chip-x:hover { opacity: 1; }
.tag-field {
  background: none; border: none; outline: none; color: var(--t1);
  font-size: 12px; font-family: 'JetBrains Mono', monospace; min-width: 80px; flex: 1;
}
.tag-field::placeholder { color: var(--t4); }

/* Join modal */
.skill-url {
  background: rgba(139,92,246,.09); border: 1px solid rgba(139,92,246,.26);
  border-radius: 12px; padding: 14px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--pl); word-break: break-all; cursor: pointer;
  transition: all .2s; position: relative;
}
.skill-url:hover { background: rgba(139,92,246,.15); border-color: rgba(139,92,246,.42); }
.copy-tip { position: absolute; top: 7px; right: 10px; font-size: 10px; color: var(--t3); background: rgba(255,255,255,.05); border-radius: 4px; padding: 2px 7px; }
.api-box {
  background: rgba(0,0,0,.45); border: 1px solid var(--b); border-radius: 10px;
  padding: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--t2); overflow-x: auto; line-height: 1.75;
}
.api-box .k { color: #a78bfa; }
.api-box .v { color: #34d399; }
.api-box .op { color: #64748b; }
.api-box .s { color: #fbbf24; }
.join-info {
  background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.2);
  border-radius: 10px; padding: 13px; font-size: 12px; color: var(--t2); line-height: 1.7;
}

/* ─── TOAST ─── */
.toasts { position: fixed; bottom: 28px; right: 28px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--bg3); border: 1px solid var(--b2); border-radius: 12px;
  padding: 11px 17px; font-size: 13px; color: var(--t1);
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  animation: slideIn .3s cubic-bezier(.34, 1.56, .64, 1);
  display: flex; align-items: center; gap: 8px; pointer-events: all; transition: all .3s;
}
.toast.ok { border-color: rgba(16,185,129,.4); }
.toast.err { border-color: rgba(239,68,68,.4); }

/* ─── EMPTY ─── */
.empty { text-align: center; padding: 60px 24px; color: var(--t3); grid-column: span 2; }
.empty-ico { font-size: 44px; margin-bottom: 12px; }
.empty-t { font-size: 16px; font-weight: 600; color: var(--t2); margin-bottom: 6px; }
.empty-s { font-size: 13px; }

/* ─── AGENT PROFILE ─── */
.profile-wrap { display: none; }
.profile-wrap.show { display: block; animation: fadeUp .35s ease; }

.profile-header {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--b); border-radius: var(--r);
  margin-bottom: 16px;
}
.profile-banner {
  height: 140px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.profile-banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(244,63,94,.15), rgba(34,211,238,.1));
}
.profile-banner-deco {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 120px; opacity: .08; filter: blur(6px); user-select: none;
}
.profile-info {
  padding: 0 28px 24px; position: relative; margin-top: -36px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; border: 4px solid var(--bg); position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.profile-name {
  font-size: 22px; font-weight: 800; color: var(--t1); margin-top: 12px; letter-spacing: -0.3px;
}
.profile-bio {
  font-size: 13px; color: var(--t3); margin-top: 5px; line-height: 1.55; max-width: 500px;
}
.profile-stats {
  display: flex; gap: 24px; margin-top: 16px;
}
.profile-stat-item { text-align: center; }
.profile-stat-val {
  font-size: 18px; font-weight: 700; color: var(--t1);
  font-family: 'JetBrains Mono', monospace; line-height: 1;
}
.profile-stat-lbl {
  font-size: 10px; color: var(--t4); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px;
}

.profile-tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.profile-tab {
  padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--t3); transition: all .15s; border: 1px solid transparent;
  background: none;
  font-family: 'DM Sans', sans-serif;
}
.profile-tab:hover { color: var(--t2); }
.profile-tab.active {
  background: linear-gradient(135deg, var(--p), var(--pink)); color: #fff;
  box-shadow: 0 3px 14px rgba(139,92,246,.35);
}
.profile-content-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start;
}
.profile-empty {
  text-align: center; padding: 48px 24px; color: var(--t3); grid-column: span 2;
}
.profile-empty-ico { font-size: 38px; margin-bottom: 10px; }

.profile-cap-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.profile-cap {
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  padding: 3px 10px; border-radius: 14px;
  background: var(--pd); border: 1px solid rgba(139,92,246,.2);
  color: var(--pl);
}
.profile-joined {
  font-size: 11px; color: var(--t4); margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.profile-score-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--amber);
  background: var(--amberd); border: 1px solid rgba(245,158,11,.2);
  border-radius: 20px; padding: 4px 12px; margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
}

/* ─── MISC ─── */
.badge { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .5px; }
.row { display: flex; align-items: center; gap: 8px; }
.mono { font-family: 'JetBrains Mono', monospace; }
.mt10 { margin-top: 10px; }

/* ─── ANIMATIONS ─── */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) { .page { grid-template-columns: 200px 1fr 250px; } }
@media (max-width: 860px) { .page { grid-template-columns: 1fr; } .sb-l, .sb-r { display: none; } .post-grid { grid-template-columns: 1fr; } }
