/* Self-hosted Inter (was loading from rsms.me — that CDN took ~8s here). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: italic; font-weight: 100 900;
  font-display: swap; src: url('/fonts/InterVariable-Italic.woff2') format('woff2');
}
/* VibedFlow app surface — self-contained dark theme (no dependency on the clone). */
:root {
  --bg: #06070a; --surface: #0c0f16; --surface2: #11151f; --line: #1b2130;
  --text: #e6e9f5; --muted: #8b97b4; --primary: #2f7bff; --primary-2: #5a96ff;
  --accent: #ffac0a; --good: #2ecc71; --bad: #ff5d6c; --radius: 14px;
}
* { box-sizing: border-box; }
#vf-app-root, #vf-app-root * { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
#vf-app-root {
  color: var(--text);
  /* Recreation of the landing-page hero aurora: dark space, warm aurora beams on
     the left, cool beams on the right, a warm column up top, and a bright curved
     "planet horizon" glow across the bottom — plus the page's own grain texture. */
  background-color: #05060c;
  background-image:
    radial-gradient(150% 42% at 50% 119%, rgba(222,239,255,.96), rgba(115,178,255,.52) 23%, rgba(55,120,255,.16) 45%, transparent 62%),
    radial-gradient(22% 74% at 12% 26%, rgba(255,150,40,.62), transparent 60%),
    radial-gradient(15% 62% at 24% 15%, rgba(255,108,24,.5), transparent 58%),
    radial-gradient(22% 74% at 88% 26%, rgba(46,132,255,.6), transparent 60%),
    radial-gradient(15% 62% at 77% 15%, rgba(92,162,255,.42), transparent 58%),
    radial-gradient(36% 38% at 50% 0%, rgba(255,186,96,.22), transparent 62%);
  min-height: 100vh; display: flex;
}
/* fine grain/star texture from the landing page, overlaid */
#vf-app-root::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('/brand/grain.png'); opacity: .07; mix-blend-mode: overlay;
}
.vf-side, .vf-main { position: relative; z-index: 1; }
/* ── sidebar ── */
.vf-side { width: 232px; border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; flex: 0 0 auto; }
.vf-logo { display: flex; align-items: center; margin-bottom: 26px; padding-left: 4px; }
.vf-logo img { height: 34px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.vf-nav { display: flex; flex-direction: column; gap: 4px; }
.vf-nav button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14.5px; font-weight: 550; cursor: pointer; transition: .15s; }
.vf-nav button:hover { background: var(--surface); color: var(--text); }
.vf-nav button.on { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.vf-nav .ic { font-size: 16px; width: 18px; text-align: center; }
.vf-status { position: absolute; bottom: 18px; left: 16px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.vf-status .pill { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.vf-status.ok .pill { background: var(--good); box-shadow: 0 0 10px var(--good); }
.vf-status.bad .pill { background: var(--bad); }
/* ── main ── */
.vf-main { flex: 1; padding: 30px 38px; max-width: 980px; }
.vf-h { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.vf-sub { color: var(--muted); margin: 0 0 24px; font-size: 14.5px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card .hint { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
input, textarea, select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 11px 13px; font-size: 14.5px; outline: none; transition: .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,123,255,.15); }
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.btn { border: 1px solid var(--line); background: var(--surface2); color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.btn:hover { border-color: var(--primary); }
.btn.primary { background: linear-gradient(135deg, var(--primary), #2563eb); border-color: transparent; box-shadow: 0 6px 20px rgba(47,123,255,.3); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.good { background: rgba(46,204,113,.12); border-color: rgba(46,204,113,.4); color: #7ee2a8; }
.btn.bad { background: rgba(255,93,108,.1); border-color: rgba(255,93,108,.35); color: #ff8c97; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 13px; cursor: pointer; user-select: none; transition: .15s; }
.chip.on { background: rgba(47,123,255,.16); border-color: var(--primary); color: #cfe0ff; }
.muted { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
.dcard { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.dcard .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.dcard .plat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-2); }
.dcard .cap { white-space: pre-wrap; line-height: 1.55; font-size: 14.5px; }
.dcard .why { font-size: 12.5px; color: var(--muted); margin-top: 10px; border-left: 2px solid var(--line); padding-left: 10px; }
.dcard .tags { color: var(--primary-2); font-size: 13px; margin-top: 8px; }
.dcard img { max-width: 220px; border-radius: 10px; margin-top: 12px; display: block; border: 1px solid var(--line); }
.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 7px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--surface2); border: 1px solid var(--line); padding: 13px 18px; border-radius: 11px; font-size: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 50; }
.toast.bad { border-color: var(--bad); }
.preview { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 12px; }
.preview img, .preview video { max-width: 100%; border-radius: 8px; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.pill-count { background: var(--primary); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-weight: 700; }
.brainbox { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brainbox .b { background: var(--surface2); border: 1px solid var(--line); border-radius: 11px; padding: 14px; }
.brainbox .b h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tag2 { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; margin: 3px 4px 0 0; font-size: 12.5px; }
@media (max-width: 720px) { .vf-side { display: none; } .vf-main { padding: 20px; } .grid2, .brainbox { grid-template-columns: 1fr; } }

/* ===== Dashboard (Image 3) — light frosted cards on the aurora ===== */
.vf-main { max-width: 1200px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.dash-actions { display: flex; align-items: center; gap: 14px; }
.btn.pro { background: linear-gradient(135deg, #ff9a2a, #ff6a00); border: 0; color: #fff; box-shadow: 0 6px 22px rgba(255,120,0,.4); border-radius: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #2f7bff, #8a5cff); border: 2px solid rgba(255,255,255,.25); flex: 0 0 auto; }
.dash { display: flex; flex-direction: column; gap: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #0a0e17;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.15);
}
.stat-l { font-size: 13px; color: #5a6377; font-weight: 600; }
.stat-v { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; }
.lcard {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #0a0e17;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}
.lcard h3 { margin: 0 0 14px; font-size: 16px; color: #0a0e17; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.accts { display: flex; gap: 18px; }
.acct { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.bicon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700; }
.dot-on { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 9px #22c55e; }
.mini { background: #0a0e17; color: #fff; border: 0; border-radius: 8px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.mini.good { background: #16a34a; }
.mini.ghost2 { background: transparent; color: #2f7bff; border: 1px solid #d6def0; }
.chips.light { display: flex; gap: 8px; flex-wrap: wrap; }
.chip2 {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2030;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chip2:first-child { background: #0a0e17; color: #fff; border-color: #0a0e17; }
.trend { margin: 0; padding-left: 22px; color: #1a2030; font-size: 14px; line-height: 1.95; }
.trend li::marker { color: #8a93a8; font-weight: 700; }
.sched .sline { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef0f6; font-size: 13px; }
.sched .sline:last-child { border-bottom: 0; }
.sdate { color: #5a6377; min-width: 56px; font-weight: 700; }
.stitle { color: #1a2030; }
.mut { color: #8a93a8; font-size: 13px; }
.rq { padding: 11px 0; border-bottom: 1px solid #eef0f6; }
.rq:last-child { border-bottom: 0; }
.rqcap { font-size: 13px; color: #1a2030; margin-bottom: 9px; line-height: 1.4; }
.row.tight { gap: 7px; margin-top: 0; }
.newpost {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 12px 20px;
  width: fit-content;
  margin: 6px auto 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}
.np-main {
  background: #0a0e17;
  border: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.np-main:hover {
  background: #1b2130;
}
.np-toggle {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 4px;
}
.np {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #5a6377;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.np.on {
  background: #0a0e17;
  color: #fff;
}
.pro-badge { background: linear-gradient(135deg, #ffd24a, #ff9a2a); color: #3a2400; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 5px; letter-spacing: .03em; }
@media (max-width: 980px) { .stat-row { grid-template-columns: 1fr 1fr; } .grid-2, .grid-3 { grid-template-columns: 1fr; } }
