:root {
  --bg: #080c16;
  --surface: #101727;
  --surface-2: #172138;
  --border: #253352;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #6366f1;
  --primary-2: #4f46e5;
  --accent: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans Georgian", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.sm { font-size: 0.88rem; }
.full { width: 100%; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-gap { display: flex; gap: 8px; align-items: center; }
.wrap { flex-wrap: wrap; }

/* AUTH */
.center-screen {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.18), #080c16 62%);
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.auth-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.auth-brand h1 { margin: 0; font-size: 1.45rem; letter-spacing: 0.4px; }
.auth-brand p { margin: 2px 0 0; font-size: 0.84rem; }
.logo-dot {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #b45309);
  color: #090d16; font-weight: 900;
  display: grid; place-items: center; font-size: 1.35rem;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.28);
}
.logo-dot.sm { width: 32px; height: 32px; font-size: 1rem; border-radius: 9px; }

.seg-control {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--bg); padding: 4px; border-radius: 11px; margin-bottom: 16px;
}
.seg-btn {
  border: 0; background: transparent; color: var(--muted); padding: 9px;
  border-radius: 8px; cursor: pointer; font-weight: 600; font-family: inherit;
}
.seg-btn.active { background: var(--surface-2); color: #fff; }

/* INPUTS & BUTTONS */
input, textarea, select {
  width: 100%; background: #0a101f; border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-family: inherit; font-size: 0.93rem;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); border-color: transparent; }

.btn {
  border: 0; border-radius: 12px; padding: 11px 18px; font-family: inherit;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: 0.15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
}
.btn.lg { padding: 13px 22px; font-size: 0.96rem; }
.btn.sm { padding: 7px 12px; font-size: 0.82rem; border-radius: 9px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.accent { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; }
.btn.accent:hover { filter: brightness(1.08); }
.btn.green { background: var(--green); color: #052e16; }
.btn.soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.soft:hover { border-color: var(--primary); }
.btn.danger { background: rgba(239, 68, 68, 0.14); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* TOPBAR */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar-inner {
  max-width: 980px; margin: 0 auto; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.brand-name { font-size: 1rem; margin-right: 6px; }
.biz-picker { display: flex; gap: 6px; align-items: center; }
.biz-picker select { width: auto; min-width: 190px; padding: 7px 12px; border-radius: 9px; font-size: 0.86rem; }

.ai-pill {
  font-size: 0.78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35);
}
.ai-pill.offline { background: rgba(245, 158, 11, 0.14); color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); }

/* 4-STEP NAVIGATION */
.stepper-wrap { background: rgba(16, 23, 39, 0.55); border-bottom: 1px solid var(--border); }
.stepper {
  max-width: 980px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.step-btn {
  display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent;
  color: var(--muted); padding: 8px 14px; border-radius: 12px; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 0.9rem; transition: 0.15s;
}
.step-btn:hover { background: var(--surface); color: #fff; }
.step-btn.active { background: var(--surface-2); color: #fff; border-color: var(--primary); }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 0.82rem;
}
.step-btn.active .step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); min-width: 14px; }

/* MAIN CONTAINER */
.container { max-width: 980px; margin: 0 auto; padding: 28px 20px 60px; }
.step-view { display: none; flex-direction: column; gap: 22px; }
.step-view.active { display: flex; }
.step-intro h2 { margin: 0 0 4px; font-size: 1.45rem; }
.step-intro p { margin: 0; font-size: 0.93rem; }
.step-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 10px; border-top: 1px solid var(--border); flex-wrap: wrap;
}

.hero-empty { text-align: center; padding: 80px 20px; }
.hero-emoji { font-size: 3rem; margin-bottom: 10px; }

/* STEP 1: PLATFORMS */
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.plat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  transition: 0.15s;
}
.plat-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.plat-tile.connected { border-color: rgba(16, 185, 129, 0.55); background: rgba(16, 185, 129, 0.06); }
.plat-icon { font-size: 1.8rem; }
.plat-name { font-weight: 800; font-size: 1rem; margin-top: 6px; }
.plat-sub { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.tag.green { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.tag.amber { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }

/* STEP 2: CHAT */
.chat-shell {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.chat-stream {
  height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  padding-right: 4px;
}
.chat-stream.compact { height: 240px; }
.msg {
  max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 0.94rem; white-space: pre-wrap;
}
.msg.ai { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-meta { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.chat-bar { display: flex; gap: 10px; }

.summary-strip {
  background: rgba(99, 102, 241, 0.09); border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 16px; padding: 16px 18px;
}
.summary-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.info-chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px 12px; font-size: 0.84rem;
}
.info-chip .chip-x {
  background: transparent; border: 0; color: #fca5a5; cursor: pointer; font-weight: 800; margin-left: 6px; padding: 0;
}
.media-strip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stat-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; text-align: center;
}
.stat-num { font-size: 1.55rem; font-weight: 800; color: #fff; }
.stat-lbl { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.teach-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.poster-controls-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.poster-controls-row select, .poster-controls-row input {
  padding: 7px 10px; font-size: 0.78rem; border-radius: 9px;
}
.brand-mini-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; }
.profile-pill {
  font-size: 0.78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); color: #e2e8f0; border: 1px solid var(--border);
}
.suspended-banner {
  background: rgba(239, 68, 68, 0.18); border-bottom: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca; text-align: center; padding: 12px 20px; font-size: 0.9rem;
}
.admin-client-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
}
.admin-client-card.suspended { border-color: rgba(239, 68, 68, 0.5); opacity: 0.88; }
.admin-client-card.overdue { border-color: rgba(245, 158, 11, 0.65); }
.tag.red { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.quota-bar-wrap {
  height: 7px; background: var(--bg); border-radius: 999px; overflow: hidden; width: 140px;
}
.quota-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.locked-note { font-size: 0.76rem; color: #fcd34d; margin-top: 4px; }
.niche-chip {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 5px 11px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.niche-chip:hover { border-color: var(--primary); background: rgba(99,102,241,0.18); }
.inline-edit-panel {
  background: #0a101f; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; display: flex; flex-direction: column; gap: 7px;
}
.inline-edit-panel input { padding: 7px 10px; font-size: 0.82rem; border-radius: 8px; }
.suspended-banner.warn {
  background: rgba(245, 158, 11, 0.16); border-bottom-color: rgba(245, 158, 11, 0.5); color: #fde68a;
}

@media (max-width: 720px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
}

/* STEP 3: STUDIO POSTER CARDS */
.idea-toolbar { display: flex; gap: 10px; }
.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }
.idea-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
}
.idea-card.approved { border-color: rgba(16, 185, 129, 0.65); }

/* Studio Poster Canvas (4:5 vertical social poster ratio) */
.poster-stage {
  aspect-ratio: 4 / 4.6;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0c101b;
  color: #ffffff;
}
.poster-stage.editorial {
  background: #f4f0e6;
  color: #111216;
  padding: 16px;
  gap: 10px;
}
.poster-stage.editorial .ed-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px; border-bottom: 2px solid #111216;
}
.poster-stage.editorial .ed-brand { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.poster-stage.editorial .ed-badge {
  background: #ff4d00; color: #fff; font-size: 0.68rem; font-weight: 800;
  padding: 3px 9px; border: 2px solid #111216; box-shadow: 2px 2px 0 #111216;
}
.poster-stage.editorial .ed-head { font-size: 1.18rem; font-weight: 900; line-height: 1.15; color: #111216; }
.poster-stage.editorial .ed-photo-frame {
  flex: 1; min-height: 160px; position: relative; border: 2.5px solid #111216;
  box-shadow: 5px 5px 0 #111216; overflow: hidden; background: #1e293b;
}
.poster-stage.editorial .ed-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-stage.editorial .ed-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding-top: 8px; border-top: 2px solid #111216;
}
.poster-stage.editorial .ed-cta {
  background: #111216; color: #f4f0e6; font-size: 0.74rem; font-weight: 800; padding: 5px 10px;
}
.poster-stage.editorial .ed-sub { font-size: 0.74rem; font-weight: 600; color: #3f3f46; flex: 1; }

/* Full-bleed Photo Poster (Dark Cinema / Promo / Split / Story) */
.poster-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.poster-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,18,0.58) 0%, rgba(7,10,18,0.22) 38%, rgba(7,10,18,0.86) 76%, rgba(7,10,18,0.96) 100%);
}
.poster-no-img {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: radial-gradient(circle at 30% 25%, rgba(99,102,241,0.35), transparent 60%), #0d1323;
  color: rgba(255,255,255,0.45); font-size: 0.82rem;
}
.poster-overlay {
  position: relative; z-index: 2; padding: 18px;
  height: 100%; display: flex; flex-direction: column; justify-content: space-between;
}
.po-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.po-brand {
  background: rgba(9, 13, 22, 0.78); border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  backdrop-filter: blur(8px);
}
.po-badge {
  background: #f59e0b; color: #090d16; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 900; box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.po-bottom { display: flex; flex-direction: column; gap: 8px; }
.po-price {
  align-self: flex-start; background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff; font-size: 0.95rem; font-weight: 900; padding: 5px 12px; border-radius: 10px;
}
.po-head { font-size: 1.24rem; font-weight: 900; line-height: 1.18; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.po-sub { font-size: 0.83rem; color: rgba(248,250,252,0.92); line-height: 1.35; text-shadow: 0 1px 8px rgba(0,0,0,0.65); }
.po-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.po-split-box {
  background: rgba(10, 15, 28, 0.82); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px; padding: 8px 10px; font-size: 0.76rem; backdrop-filter: blur(8px);
}
.po-split-box strong { display: block; color: #fcd34d; margin-bottom: 2px; }
.po-cta {
  margin-top: 4px; align-self: flex-start;
  background: #ffffff; color: #090d16; font-size: 0.78rem; font-weight: 800;
  padding: 6px 12px; border-radius: 999px;
}
.poster-photo-btn {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  background: rgba(9, 13, 22, 0.84); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px; padding: 5px 10px; font-size: 0.73rem; font-weight: 700;
  cursor: pointer; backdrop-filter: blur(8px); font-family: inherit;
}
.poster-photo-btn:hover { background: var(--primary); border-color: var(--primary); }

.idea-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.idea-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.idea-actions .approve-btn { flex: 1; }

/* STEP 4: CONTROLS */
.control-cards { display: flex; flex-direction: column; gap: 12px; }
.big-switch-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; cursor: pointer; transition: 0.15s;
}
.big-switch-card:hover { border-color: var(--primary); }
.bsc-info { display: flex; gap: 16px; align-items: center; }
.bsc-icon { font-size: 1.8rem; }
.bsc-info h3 { margin: 0 0 2px; font-size: 1.04rem; }
.bsc-info p { margin: 0; }

.big-switch {
  appearance: none; width: 58px; height: 32px; border-radius: 999px; background: #334155;
  position: relative; cursor: pointer; flex-shrink: 0; transition: 0.2s;
}
.big-switch::after {
  content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; top: 4px; left: 4px; transition: 0.2s;
}
.big-switch:checked { background: var(--green); }
.big-switch:checked::after { left: 30px; }

.test-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px;
}
.test-card h3 { margin: 0 0 3px; }
.test-card p { margin: 0; }
.compact-select { width: auto; padding: 7px 12px; font-size: 0.84rem; }

.advanced-box {
  background: rgba(16, 23, 39, 0.55); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
}
.advanced-box summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.advanced-inner { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.inline-code { display: block; margin-top: 6px; background: var(--bg); padding: 9px 12px; border-radius: 9px; font-size: 0.82rem; border: 1px solid var(--border); }
.mini-logs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 200px; overflow-y: auto; }
.mini-log { background: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: 0.8rem; border: 1px solid var(--border); }

/* MODAL & TOAST */
.modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72);
  display: grid; place-items: center; padding: 20px; z-index: 100;
}
.modal-box {
  width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 22px;
}
.check-row { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.check-row input { width: auto; }
.err-box {
  background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca; padding: 10px 12px; border-radius: 10px; font-size: 0.85rem;
}
.toast {
  position: fixed; bottom: 20px; right: 20px; background: #1e293b; color: #fff;
  border: 1px solid var(--primary); padding: 12px 18px; border-radius: 12px; z-index: 200;
  font-size: 0.88rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.profile-pill {
  font-size: 0.78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); color: #e2e8f0; border: 1px solid var(--border);
}
.suspended-banner {
  background: rgba(239, 68, 68, 0.18); border-bottom: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca; text-align: center; padding: 12px 20px; font-size: 0.9rem;
}
.admin-client-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
}
.admin-client-card.suspended { border-color: rgba(239, 68, 68, 0.5); opacity: 0.88; }
.admin-client-card.overdue { border-color: rgba(245, 158, 11, 0.65); }
.tag.red { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.quota-bar-wrap {
  height: 7px; background: var(--bg); border-radius: 999px; overflow: hidden; width: 140px;
}
.quota-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.locked-note { font-size: 0.76rem; color: #fcd34d; margin-top: 4px; }
.niche-chip {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 5px 11px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.niche-chip:hover { border-color: var(--primary); background: rgba(99,102,241,0.18); }
.inline-edit-panel {
  background: #0a101f; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; display: flex; flex-direction: column; gap: 7px;
}
.inline-edit-panel input { padding: 7px 10px; font-size: 0.82rem; border-radius: 8px; }
.suspended-banner.warn {
  background: rgba(245, 158, 11, 0.16); border-bottom-color: rgba(245, 158, 11, 0.5); color: #fde68a;
}

.google-btn {
  background: #ffffff; color: #0f172a; border: 1px solid #e2e8f0;
  font-weight: 700; padding: 11px 16px;
}
.google-btn:hover { background: #f1f5f9; }
.auth-divider {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 12px;
  color: var(--muted); font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.alt-login-row {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  margin-top: 14px; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap;
}
.link-btn {
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: 0.8rem; font-weight: 600; padding: 2px 4px;
}
.link-btn:hover, .link-btn.active { color: #fbbf24; }

/* FLOATING AI CO-PILOT */
.copilot-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #d97706);
  color: #090d16; border: 0; border-radius: 999px;
  padding: 13px 20px; font-family: inherit; font-weight: 900; font-size: 0.92rem;
  cursor: pointer; box-shadow: 0 12px 32px rgba(245, 158, 11, 0.42);
  transition: transform 0.15s;
}
.copilot-fab:hover { transform: translateY(-2px); }
.copilot-drawer {
  position: fixed; right: 20px; bottom: 78px; z-index: 65;
  width: min(390px, calc(100vw - 24px)); max-height: 74vh;
  background: var(--surface); border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 20px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  display: flex; flex-direction: column; overflow: hidden;
}
.copilot-head {
  padding: 13px 16px; background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), var(--surface-2));
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.copilot-msgs {
  padding: 12px; overflow-y: auto; flex: 1; min-height: 220px; max-height: 360px;
  display: flex; flex-direction: column; gap: 9px;
}
.copilot-chips {
  padding: 6px 10px; display: flex; gap: 6px; flex-wrap: wrap;
  border-top: 1px solid var(--border); background: #0a101f;
}
.cp-chip {
  background: var(--surface-2); border: 1px solid var(--border); color: #e2e8f0;
  border-radius: 999px; padding: 5px 10px; font-size: 0.74rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.cp-chip:hover { border-color: #fbbf24; color: #fde68a; }
.copilot-bar {
  display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface);
}
.copilot-bar input { padding: 9px 12px; font-size: 0.86rem; }
.cp-act-badge {
  display: inline-block; margin-top: 6px; margin-right: 4px;
  background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7; border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; font-weight: 700;
}

@media (max-width: 720px) {
  .step-label { display: none; }
  .ideas-grid { grid-template-columns: 1fr; }
  .idea-toolbar { flex-direction: column; }
  .copilot-fab { right: 12px; bottom: 12px; padding: 11px 16px; }
  .copilot-drawer { right: 12px; bottom: 64px; }
}
