:root {
  color-scheme: dark;
  --bg: #050509;
  --panel: rgba(12, 12, 26, 0.82);
  --panel-strong: #0c0c1a;
  --text: #eef0ff;
  --muted: #8890b8;
  --accent: #7c5cfc;
  --accent-2: #36d1f0;
  --accent-glow: rgba(124, 92, 252, 0.22);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-active: rgba(124, 92, 252, 0.5);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(124, 92, 252, 0.20) 0%, transparent 38%),
    radial-gradient(circle at 82% 6%, rgba(54, 209, 240, 0.10) 0%, transparent 32%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; }

/* ===== TOPBAR ===== */
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px);
  background: rgba(5, 5, 9, 0.72);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand, nav { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand { font-weight: 800; letter-spacing: -0.01em; }
.brand-logo {
  width: 42px; height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(124, 92, 252, 0.68));
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: color 0.15s;
}
nav a:hover { color: var(--text); }
nav a.nav-active { color: var(--text); }
nav a.nav-active::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent);
  border-radius: 1px;
}

/* ===== SHELL & HERO ===== */
.shell { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.hero { min-height: 300px; display: flex; align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.94;
  margin: 0 0 18px;
  max-width: 920px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 6px;
  max-width: 760px;
}
.panel h1 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.15;
  margin: 8px 0 16px;
}
.lede { color: var(--muted); font-size: 1.12rem; max-width: 780px; line-height: 1.65; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: .78rem; letter-spacing: .10em; font-weight: 800; }

/* ===== PANEL ===== */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ===== FORM ===== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.span { grid-column: 1 / -1; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.01em; }
input, textarea, select {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.18);
}
/* Native <option> popups ignore the <select>'s translucent background and
   render on the OS's opaque white list, which made --text's near-white
   color unreadable — give options an explicit opaque dark background. */
select option {
  background-color: #0c0c1a;
  color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
.large-textarea { min-height: 260px; }

/* ===== BUTTONS ===== */
button, .primary, .secondary {
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s, background 0.15s;
  letter-spacing: 0.01em;
}
.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4f9ef8 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.28);
}
.primary:hover {
  box-shadow: 0 0 36px rgba(124, 92, 252, 0.5);
  transform: translateY(-1px);
}
.primary:active { transform: translateY(0); }
.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}
.secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--line-strong);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.full { width: 100%; }

/* ===== LAYOUT ===== */
.split { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
.split.wide { grid-template-columns: minmax(0, 1fr) 360px; }
.edit-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}
.edit-layout > * {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.edit-form { display: grid; gap: 22px; }
.editor-band { display: grid; gap: 14px; }
.prompt-editor { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.35; }
.prompt-editor.small { min-height: 150px; }
.blog-editor { min-height: 680px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.45; }

/* ===== BLOG PREVIEW ===== */
.blog-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.blog-preview h2 { margin: 0 0 14px; font-size: 1.8rem; }
.blog-preview pre { max-height: 520px; line-height: 1.5; }

/* ===== ARTICLE RENDER ===== */
.article-render {
  color: #dde0f8;
  line-height: 1.75;
  font-size: 1.05rem;
}
.article-render h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 24px;
  color: #ffffff;
}
.article-render h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  margin: 40px 0 14px;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.article-render h3 { margin: 24px 0 8px; color: #c8d4ff; font-size: 1.15rem; }
.article-render p, .article-render li { color: #b8c4e8; }
.article-render ul { padding-left: 22px; }
.article-render a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.article-render figure.section-image { margin: 20px 0 32px; }
.article-render figure.section-image img { width: 100%; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; aspect-ratio: 16 / 9; display: block; }
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}

/* ===== BLOG DETAIL LAYOUT ===== */
.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.blog-detail-layout > * {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.image-plan { display: grid; gap: 12px; margin: 20px 0; }
.check-card { grid-template-columns: auto 1fr; align-items: start; }
.check-card input { width: auto; margin-top: 4px; }
.check-card span, .check-card small { grid-column: 2; }
.ai-details { margin-top: 24px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.asset-ai-list { display: grid; gap: 18px; margin-top: 20px; }
.ai-asset { border-top: 1px solid var(--line); padding-top: 18px; }
.side-stack { display: grid; gap: 18px; }
.preview-image { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: 14px; }
.logo-preview { object-fit: contain; background: rgba(255,255,255,.06); max-height: 180px; padding: 14px; }
.source-list { display: grid; gap: 8px; }
.source-list a { color: var(--accent-2); overflow-wrap: anywhere; }

/* ===== VERSION LIST ===== */
.version-list { display: grid; gap: 10px; }
.version-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: rgba(255,255,255,.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.version-list a:hover { border-color: var(--line-strong); }
.version-list a.active { border-color: var(--line-active); box-shadow: 0 0 0 1px rgba(124,92,252,.2) inset; }
.version-list img { width: 72px; aspect-ratio: 1; object-fit: cover; border-radius: 7px; grid-row: span 2; }
.version-list span { font-weight: 750; }
.version-list small { color: var(--muted); }
.version-grid .campaign-card pre { max-height: 180px; font-size: .82rem; }

/* ===== MISC COMPONENTS ===== */
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.mini-grid div { background: rgba(255,255,255,.05); border-radius: 10px; padding: 14px; display: grid; gap: 6px; }
.mini-grid span, li, .panel p { color: var(--muted); }
.style-list { display: grid; gap: 12px; margin: 18px 0; }
.style-card { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.style-card span { color: var(--text); font-weight: 750; }
.style-card small { color: var(--muted); }
pre { white-space: pre-wrap; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px; padding: 14px; color: #c8d4ff; overflow: auto; }

/* ===== LOADING ===== */
.loading-wrap {
  width: min(980px, 100%);
  min-height: 420px;
  margin: 14px auto 0;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 28px;
  text-align: center;
}
.loading-wrap h1 { margin: 10px 0 0; }
.loading-wrap .lede { margin: 12px 0 10px; }
.loader-orb {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.06);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: spin 1.1s cubic-bezier(.6,.15,.4,.85) infinite;
  box-shadow: 0 0 32px rgba(124, 92, 252, 0.28), 0 0 8px rgba(54,209,240,0.15);
  background: radial-gradient(circle, rgba(124,92,252,0.08) 0%, transparent 70%);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.progress {
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
  width: min(520px, 100%);
  position: relative;
}
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .7s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.progress span::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.job-status {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 6px;
}
.step-hint {
  max-width: 520px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.error { color: #f87194 !important; font-size: .85rem; line-height: 1.5; }

/* ===== RESULT / IMAGE STAGE ===== */
.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
}
.result-grid > * {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.image-stage { background: #04040e; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.image-stage img { width: 100%; display: block; }
dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; }
dt { color: var(--muted); } dd { margin: 0; }

/* ===== PAGE HEAD ===== */
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }

/* ===== CARDS ===== */
.cards, .model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.campaign-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campaign-card:hover {
  border-color: var(--line-active);
  box-shadow: 0 0 0 1px rgba(124,92,252,0.18), 0 8px 40px rgba(124,92,252,0.12);
}
.campaign-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.campaign-card div { padding: 18px; }
.campaign-card h2 { font-size: 1.1rem; margin: 8px 0 6px; line-height: 1.3; }
.campaign-card p { font-size: 0.85rem; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.campaign-card small { color: var(--muted); font-size: 0.78rem; }
.model-card { display: grid; gap: 14px; }
.check { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.check input { width: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .form-grid, .split, .split.wide, .edit-layout, .result-grid, .blog-detail-layout, .detail-grid { grid-template-columns: 1fr; }
  .edit-layout > *, .result-grid > *, .blog-detail-layout > * {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .topbar { padding: 0 16px; }
  nav { gap: 12px; font-size: .88rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* ===== PLATFORM ICON GRID ===== */
.field-label { color: var(--muted); font-weight: 700; margin: 0 0 10px; font-size: 0.88rem; }
.field-hint { font-size: .8rem; font-weight: 400; opacity: .65; margin-left: 8px; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.platform-tile { display: block; cursor: pointer; }
.platform-tile input[type="checkbox"] { display: none; }
.platform-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  transition: border-color .18s, background .18s, box-shadow .18s, color .18s;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
.platform-tile-inner svg {
  width: 28px; height: 28px;
  color: var(--muted);
  transition: color .18s;
}
.platform-tile input:checked + .platform-tile-inner {
  border-color: var(--accent);
  background: rgba(124, 92, 252, 0.12);
  box-shadow: 0 0 0 1px rgba(124,92,252,.28) inset, 0 0 20px rgba(124,92,252,.15);
  color: var(--text);
}
.platform-tile input:checked + .platform-tile-inner svg { color: var(--accent); }

/* ===== PLATFORM BADGES ===== */
.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--muted);
}
.platform-badge-instagram { border-color: #e1306c44; color: #f77; background: rgba(225,48,108,.1); }
.platform-badge-facebook { border-color: #1877f244; color: #6af; background: rgba(24,119,242,.1); }
.platform-badge-linkedin { border-color: #0a66c244; color: #5df; background: rgba(10,102,194,.1); }
.platform-badge-twitter_x, .platform-badge-x { border-color: rgba(255,255,255,.18); color: #ccd; background: rgba(255,255,255,.06); }
.platform-badge-tiktok { border-color: #69c9d044; color: #6df; background: rgba(105,201,208,.1); }
.platform-badge-website { border-color: rgba(54,209,240,.35); color: var(--accent-2); background: rgba(54,209,240,.08); }
.card-platform-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.platform-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ===== STATUS BADGE ===== */
.status-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: rgba(124, 92, 252, 0.14);
  border: 1px solid rgba(124, 92, 252, 0.38);
  color: #a78bfa;
}
.hint-text { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }
.small-text { font-size: .82rem; color: var(--muted); }

/* ===== BRIEF PAGE ===== */
.keyword-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-chip {
  background: rgba(54, 209, 240, 0.08);
  border: 1px solid rgba(54, 209, 240, 0.28);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .78rem;
  color: var(--accent-2);
}
.color-swatches { display: flex; gap: 8px; margin: 10px 0; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  display: inline-block;
}

/* ===== PLATFORM VIEW TABS ===== */
.platform-view-tabs { margin-top: 24px; }
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.tab-btn {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--muted);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.tab-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.tab-btn.active {
  background: rgba(124, 92, 252, 0.14);
  border-color: var(--accent);
  color: var(--text);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== MOCKUP: BROWSER ===== */
.mockup-browser {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.mockup-browser-bar {
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
}
.browser-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.browser-url {
  background: rgba(0,0,0,.35);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .78rem;
  color: var(--muted);
  flex: 1;
}
.mockup-browser-content {
  background: #06060f;
  padding: 32px 48px;
  max-height: 70vh;
  overflow-y: auto;
}
.website-article { max-width: 720px; margin: 0 auto; }

/* ===== MOCKUP: PHONE ===== */
.mockup-phone {
  width: 360px;
  margin: 0 auto;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 36px;
  overflow: hidden;
  background: #06060f;
  box-shadow: 0 28px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}
.mockup-phone-tall { width: 300px; }
.mockup-phone-notch {
  height: 28px;
  background: rgba(0,0,0,.6);
  margin: 0 auto;
  width: 120px;
  border-radius: 0 0 18px 18px;
  position: absolute;
  left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.mockup-phone-screen { padding-top: 28px; min-height: 540px; overflow-y: auto; }
.mockup-screen-story { position: relative; min-height: 600px; overflow: hidden; }

/* ===== INSTAGRAM MOCKUP ===== */
.insta-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.insta-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}
.insta-avatar.sm { width: 28px; height: 28px; }
.insta-user { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; }
.insta-user strong { font-size: .9rem; }
.insta-user span { color: var(--accent-2); font-weight: 700; font-size: .78rem; }
.insta-image { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.insta-image-placeholder { width: 100%; aspect-ratio: 4/5; background: rgba(255,255,255,.05); display: grid; place-items: center; color: var(--muted); }
.insta-actions { display: flex; gap: 14px; padding: 12px 14px 6px; }
.insta-actions svg { width: 22px; height: 22px; }
.insta-caption { padding: 4px 14px 14px; font-size: .82rem; line-height: 1.45; }
.insta-hashtags { color: var(--accent-2); font-size: .78rem; }
.insta-more-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 6px; }
.insta-more-images img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ===== STORY MOCKUP ===== */
.story-bars { display: flex; gap: 4px; padding: 8px 10px; position: relative; z-index: 2; }
.story-bars span { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 999px; }
.story-bars span:first-child { background: rgba(255,255,255,.9); }
.story-image { width: 100%; height: 100%; min-height: 580px; object-fit: cover; position: absolute; top: 0; left: 0; }
.story-image-placeholder { position: absolute; inset: 0; background: rgba(255,255,255,.04); display: grid; place-items: center; color: var(--muted); }
.story-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 14px; background: linear-gradient(transparent, rgba(0,0,0,.82)); z-index: 3; }
.story-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.story-text { font-size: .9rem; color: #fff; margin: 0; line-height: 1.4; }

/* ===== FACEBOOK / LINKEDIN FEED ===== */
.mockup-feed { max-width: 540px; margin: 0 auto; }
.feed-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.feed-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.feed-meta { color: var(--muted); font-size: .78rem; display: block; }
.feed-text { padding: 0 16px 12px; font-size: .9rem; line-height: 1.5; color: var(--text); }
.feed-image { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.feed-image-placeholder { width: 100%; height: 220px; background: rgba(255,255,255,.04); display: grid; place-items: center; color: var(--muted); }
.feed-link-strip { padding: 12px 16px; background: rgba(0,0,0,.22); border-top: 1px solid var(--line); }
.feed-link-strip strong { display: block; font-size: .9rem; margin: 4px 0 2px; }
.feed-link-strip small { color: var(--muted); font-size: .8rem; }
.feed-link-domain { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 4px; }
.feed-actions { display: flex; gap: 0; border-top: 1px solid var(--line); }
.feed-actions span { flex: 1; text-align: center; padding: 10px 4px; font-size: .82rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.tweet-actions { gap: 18px; padding: 8px 16px; }
.tweet-actions span { flex: none; }
.tweet-image { max-height: 280px; }
.tweet-card .feed-text { padding: 8px 16px; }
.li-avatar { background: linear-gradient(135deg, #0a66c2, #36d1f0); }

/* ===== BLOG IMAGES: PER-PLATFORM GRID ===== */
.platform-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
.platform-image-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.platform-image-card-header { display: flex; align-items: center; justify-content: space-between; }
.size-tag { font-size: .72rem; color: var(--muted); font-family: ui-monospace, monospace; }
.count-label { color: var(--muted); font-size: .82rem; font-weight: 700; display: grid; gap: 8px; }
.count-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper-btn {
  width: 36px; height: 36px; border: 0; background: rgba(255,255,255,.06);
  color: var(--text); font-size: 1.2rem; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s;
}
.stepper-btn:hover { background: rgba(124,92,252,.15); }
.count-input { width: 48px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; font-size: 1rem; font-weight: 800; padding: 6px 4px; }
.plan-preview { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.plan-role { font-size: .7rem; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; color: var(--muted); }
.plan-item-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan-role-badge { background: rgba(124,92,252,.12); border: 1px solid rgba(124,92,252,.3); border-radius: 4px; padding: 2px 8px; font-size: .72rem; font-weight: 800; color: #a78bfa; white-space: nowrap; }
.plan-item-label { font-weight: 700; font-size: .88rem; flex: 1; }
.plan-item-summary { color: var(--muted); font-size: .8rem; }

/* ===== SUGGESTION CHIPS ===== */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 4px; }
.chip-label { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .8rem; color: var(--muted);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { background: rgba(124,92,252,.12); border-color: var(--line-active); color: var(--text); }
.chip-sm { padding: 3px 9px; font-size: .74rem; }
.field-label { font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* ===== TOPIC CORRECTION BANNER ===== */
.correction-banner {
  background: rgba(124,92,252,.08);
  border: 1px solid rgba(124,92,252,.28);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .85rem;
  color: #a78bfa;
  margin-bottom: 12px;
}
.correction-banner s { color: var(--muted); }

/* ===== PLATFORM COPY PREVIEW ===== */
.plat-copy-preview {
  font-size: .78rem; color: var(--muted); line-height: 1.4;
  background: rgba(255,255,255,.03);
  border-left: 2px solid var(--line);
  padding: 6px 10px;
  margin: 0;
  border-radius: 0 4px 4px 0;
}
.plat-hashtags { font-size: .75rem; color: var(--accent-2); margin: 0; }

/* ===== GALLERY CARD EXTRAS ===== */
.campaign-card-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line);
}
.campaign-card-body { padding: 18px; display: grid; gap: 10px; }
.campaign-card-body h2 { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.campaign-card-body p { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.5; }
.campaign-card-body small { font-size: 0.76rem; color: var(--muted); }
.card-actions { flex-wrap: wrap; gap: 8px; }
.card-btn-disabled { opacity: 0.38; pointer-events: none; }
.sched-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem;
}
.sched-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== SCHEDULE BADGE (on card) ===== */
.sched-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(54, 209, 240, 0.10);
  border: 1px solid rgba(54, 209, 240, 0.30);
  color: var(--accent-2);
}

/* ===== SCHEDULE MODAL ===== */
.sched-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.sched-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}
.sched-modal-dialog {
  position: relative; z-index: 1;
  background: #0e0e1e;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.07);
}
.sched-modal-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sched-modal-head strong { font-size: 1.08rem; display: block; }
.sched-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 30px; height: 30px;
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: background 0.15s;
}
.sched-close:hover { background: rgba(255,255,255,0.12); }
.sched-close svg { width: 14px; height: 14px; }
.sched-form { padding: 8px 24px 0; }
.sched-row {
  display: grid;
  grid-template-columns: 44px auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sched-row:last-of-type { border-bottom: none; }
.sched-thumb {
  width: 44px; height: 44px; border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.sched-thumb-empty {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sched-thumb-empty svg { width: 18px; height: 18px; color: var(--muted); }
.sched-dt {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  padding: 9px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sched-dt:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.18);
}
.sched-modal-foot {
  padding: 16px 24px 20px;
  display: flex; justify-content: flex-end; gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

/* ===== BTN ALIASES (secondary style helpers) ===== */
.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.01em;
}
.btn:hover { background: rgba(124,92,252,0.85); }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--line-strong); }
.btn-sm { padding: 6px 14px !important; font-size: 0.84rem !important; }

/* ===== BRAND PROFILE ===== */
.brand-profile-selector {
  background: rgba(124,92,252,0.06);
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.brand-logo-preview {
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface2, rgba(255,255,255,0.04));
  padding: 3px;
  margin-right: 0.5rem;
}
.chip-service {
  cursor: pointer;
  background: rgba(54,209,240,0.1);
  border: 1px solid rgba(54,209,240,0.25);
  transition: opacity 0.2s;
}
.chip-service:hover { background: rgba(54,209,240,0.2); }
.chip-pinned {
  background: rgba(124,92,252,0.18);
  border: 1px solid rgba(124,92,252,0.35);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.dynamic-row {
  display: grid;
  grid-template-columns: 200px 1fr 32px;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 0.5rem;
}
.dynamic-row input, .dynamic-row textarea {
  width: 100%;
}
.btn-icon {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-icon:hover { color: var(--text); border-color: var(--line-strong); }
.btn-sm { padding: 6px 14px; font-size: 0.84rem; }
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { animation: fadeIn 0.15s ease; }

.panel-dl-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.panel-dl-btn:hover { background: rgba(255,255,255,0.13); color: var(--text); }
