/* ── CTA on landing ─────────────────────────────────────────────────────── */
.hero-cta {
  margin-top: 36px;
}

.cta-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: #0a0a0f;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s;
}

.cta-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── App nav ─────────────────────────────────────────────────────────────── */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.app-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.05);
}

.nav-link.active {
  color: var(--fg);
  background: rgba(212, 168, 83, 0.12);
}

/* ── Nav account ─────────────────────────────────────────────────────────── */
.nav-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-email {
  font-size: 0.82rem;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.nav-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}

.nav-logout:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.2);
}

/* ── Welcome banner ──────────────────────────────────────────────────────── */
.welcome-banner {
  background: rgba(80, 200, 120, 0.08);
  border: 1px solid rgba(80, 200, 120, 0.2);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #50c878;
}

/* ── App main ────────────────────────────────────────────────────────────── */
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Page header ─────────────────────────────────────────────────────────── */
.page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-sub {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.back-link {
  display: block;
  color: var(--fg-muted);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--fg); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  background: var(--gold);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-full { width: 100%; text-align: center; }

.btn-secondary {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-danger {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  color: #e05555;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid rgba(224, 85, 85, 0.3);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover { background: rgba(224, 85, 85, 0.1); }

.btn-ghost {
  padding: 6px 14px;
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--fg); }

.btn-sm {
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.card-title-sm {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.mt-4 { margin-top: 16px; }

/* ── Dashboard stats ─────────────────────────────────────────────────────── */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ── Section block ───────────────────────────────────────────────────────── */
.section-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.section-block-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.text-link {
  color: var(--gold);
  font-size: 0.88rem;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* ── Drafts list (shared between dashboard + drafts page) ──────────────── */
.drafts-list {
  display: flex;
  flex-direction: column;
}

.draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.draft-row:last-child { border-bottom: none; }
.draft-row:hover { background: rgba(255,255,255,0.02); }

.draft-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.draft-keyword {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-title {
  font-size: 0.95rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.draft-date {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* ── Status pills ────────────────────────────────────────────────────────── */
.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-draft {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
}

.status-published {
  background: rgba(80, 200, 120, 0.15);
  color: #50c878;
}

.status-archived {
  background: rgba(255,255,255,0.06);
  color: var(--fg-muted);
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-icon { font-size: 2.5rem; margin-bottom: 16px; }

.empty-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-sub {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Two-col layout ──────────────────────────────────────────────────────── */
.two-col-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.col-left { display: flex; flex-direction: column; gap: 16px; }

/* ── Form ────────────────────────────────────────────────────────────────── */
.research-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
}

.form-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus { border-color: rgba(212, 168, 83, 0.5); }

.form-textarea { resize: vertical; min-height: 80px; }

.form-hint { font-size: 0.8rem; color: var(--fg-muted); }

/* ── Research results ────────────────────────────────────────────────────── */
.results-panel, .empty-results-panel {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.topics-list { display: flex; flex-direction: column; gap: 12px; }

.topic-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.topic-card:hover { border-color: rgba(212, 168, 83, 0.25); }

.topic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.topic-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.6;
}

.topic-badges { display: flex; gap: 6px; }

.badge-intent, .badge-difficulty {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-informational { background: rgba(100, 160, 255, 0.12); color: #64a0ff; }
.badge-commercial { background: rgba(212, 168, 83, 0.15); color: var(--gold); }
.badge-transactional { background: rgba(80, 200, 120, 0.12); color: #50c878; }

.badge-diff-low { background: rgba(80, 200, 120, 0.12); color: #50c878; }
.badge-diff-medium { background: rgba(255, 180, 60, 0.12); color: #ffb43c; }
.badge-diff-high { background: rgba(224, 85, 85, 0.12); color: #e05555; }

.topic-keyword {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 3px;
}

.topic-title-suggestion {
  font-size: 0.87rem;
  color: var(--fg-muted);
  margin-bottom: 4px;
  font-style: italic;
}

.topic-searches {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.topic-opportunity {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ── Sessions list ───────────────────────────────────────────────────────── */
.sessions-list { display: flex; flex-direction: column; gap: 8px; }

.session-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.session-row:last-child { border-bottom: none; }

.session-niche { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }

.session-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ── Drafts filters ──────────────────────────────────────────────────────── */
.drafts-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 16px;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { color: var(--fg); }
.filter-btn.active {
  background: var(--gold-dim);
  border-color: rgba(212, 168, 83, 0.3);
  color: var(--gold);
}

/* ── Drafts grid ─────────────────────────────────────────────────────────── */
.drafts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.draft-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.draft-card:hover { border-color: rgba(212, 168, 83, 0.25); }

.draft-card-link {
  padding: 20px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.draft-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.draft-card-date { font-size: 0.8rem; color: var(--fg-muted); }

.draft-card-keyword {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

.draft-card-title {
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.4;
}

.draft-card-meta {
  font-size: 0.83rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.draft-card-actions {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  transition: all 0.2s;
}

.action-btn:hover { color: var(--fg); border-color: rgba(255,255,255,0.15); }

.action-publish:hover { color: #50c878; border-color: rgba(80, 200, 120, 0.3); }
.action-archive:hover { color: var(--fg-muted); }

/* ── Draft detail ────────────────────────────────────────────────────────── */
.draft-detail-title {
  font-size: 1.6rem;
  line-height: 1.25;
}

.draft-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--fg-muted);
  flex-wrap: wrap;
}

.meta-sep { color: var(--border); }
.meta-keyword { color: var(--gold); font-weight: 600; }

.draft-detail-actions { display: flex; gap: 10px; align-items: flex-start; }

.draft-detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.draft-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ── Meta card ───────────────────────────────────────────────────────────── */
.meta-description-text {
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 8px;
}

.meta-char-count {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.meta-char-count.over-limit { color: #e05555; }

/* ── Outline card ────────────────────────────────────────────────────────── */
.outline-list {
  list-style: none;
  counter-reset: outline-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outline-item {
  counter-increment: outline-counter;
  padding-left: 28px;
  position: relative;
}

.outline-item::before {
  content: counter(outline-counter);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.7;
  line-height: 1.4;
}

.outline-heading {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.outline-type {
  display: inline-block;
  padding: 1px 7px;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.outline-summary {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.affiliate-anchors { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.anchor-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(80, 200, 120, 0.08);
  color: #50c878;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── Content area ────────────────────────────────────────────────────────── */
.content-card { height: fit-content; }

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.content-raw {
  font-family: 'DM Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 70vh;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col-layout { grid-template-columns: 1fr; }
  .draft-detail-layout { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .app-main { padding: 0 16px 60px; }
  .page-header { padding: 28px 0 24px; }
  .page-header-inner { flex-direction: column; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .drafts-grid { grid-template-columns: 1fr; }
  .draft-detail-actions { flex-wrap: wrap; }
}

/* ── Plan badges ────────────────────────────────────────────────────────── */
.plan-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.plan-badge-lite {
  background: rgba(100, 160, 240, 0.15);
  color: #64a0f0;
}

.plan-badge-pro {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
}

/* ── Upgrade button (Lite users) ─────────────────────────────────────── */
.btn-upgrade {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid rgba(212, 168, 83, 0.4);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-upgrade:hover {
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--gold);
}

/* ── Pro: Revenue analytics grid ─────────────────────────────────────── */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 24px;
}

.analytics-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}

.analytics-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.analytics-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.analytics-sub {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.analytics-note {
  padding: 0 24px 20px;
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin: 0;
}

@media (max-width: 860px) {
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .analytics-grid { grid-template-columns: 1fr; }
}

/* ── Onboarding wizard ───────────────────────────────────────────────────── */
.ob-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ob-skip-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ob-skip-link:hover { color: var(--fg); }

.ob-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
}

.ob-progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.4s ease;
}

.ob-step-counter {
  text-align: center;
  padding: 16px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ob-step {
  display: none;
  flex: 1;
}

.ob-step.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 24px 80px;
}

.ob-step-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.ob-step-wide { max-width: 720px; }

.ob-icon { font-size: 3rem; line-height: 1; }

.ob-success-icon { animation: ob-pop 0.4s ease; }

@keyframes ob-pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.ob-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ob-subtitle {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 440px;
}

.ob-tier-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
}

.ob-tier-note-sm {
  padding: 10px 14px;
  font-size: 0.82rem;
  justify-content: center;
  text-align: center;
}

.ob-next-btn { margin-top: 8px; }

.ob-niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.ob-niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font-body);
  color: var(--fg);
}

.ob-niche-card:hover {
  border-color: rgba(212,168,83,0.3);
  background: var(--bg-elevated);
}

.ob-niche-card.selected {
  border-color: var(--gold);
  background: rgba(212,168,83,0.06);
}

.ob-niche-icon { font-size: 1.6rem; }
.ob-niche-name { font-weight: 700; font-size: 0.9rem; }
.ob-niche-sub { font-size: 0.75rem; color: var(--fg-muted); line-height: 1.4; }

.ob-custom-input-wrap {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: -4px;
}

.ob-custom-confirm { white-space: nowrap; }

.ob-step-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  width: 100%;
  margin-top: 8px;
}

.ob-select-hint {
  font-size: 0.88rem;
  color: var(--fg-muted);
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
}

.ob-kw-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
}

.ob-kw-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ob-kw-item:hover { border-color: rgba(212,168,83,0.25); }

.ob-kw-item.selected {
  border-color: var(--gold);
  background: rgba(212,168,83,0.06);
}

.ob-kw-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.ob-kw-item.selected .ob-kw-check {
  background: var(--gold);
  border-color: var(--gold);
}

.ob-kw-item.selected .ob-kw-check::after {
  content: '✓';
  font-size: 0.7rem;
  font-weight: 700;
  color: #0a0a0f;
}

.ob-kw-num { font-size: 0.68rem; font-weight: 700; color: var(--fg-muted); }
.ob-kw-item.selected .ob-kw-num { display: none; }
.ob-kw-body { flex: 1; min-width: 0; }
.ob-kw-keyword { font-weight: 700; font-size: 0.97rem; margin-bottom: 2px; }

.ob-kw-title-hint {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 6px;
}

.ob-kw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
  align-items: center;
}

.ob-kw-searches { font-size: 0.75rem; color: var(--gold); font-weight: 600; }

.ob-kw-opp { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.4; }

.ob-loading-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ob-skeleton-row {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.ob-skeleton {
  background: var(--bg-elevated);
  border-radius: 6px;
  animation: ob-shimmer 1.4s ease-in-out infinite;
}

@keyframes ob-shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.ob-skeleton-kw { height: 14px; width: 200px; }
.ob-skeleton-badge { height: 14px; width: 60px; }

.ob-draft-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin-top: 8px;
}

.ob-draft-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--fg-muted);
  transition: border-color 0.3s, color 0.3s;
}

.ob-draft-stage.active { border-color: rgba(212,168,83,0.3); color: var(--fg); }
.ob-draft-stage.done { border-color: rgba(80,200,120,0.2); color: #50c878; }
.ob-stage-icon { font-size: 1.1rem; }
.ob-stage-label { font-weight: 600; }

.ob-error-block {
  background: rgba(224,85,85,0.08);
  border: 1px solid rgba(224,85,85,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
  color: #e05555;
  max-width: 400px;
  width: 100%;
}

.ob-success-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}

.ob-success-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.ob-success-card:hover {
  border-color: rgba(212,168,83,0.3);
  background: var(--bg-elevated);
}

.ob-success-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.ob-success-card-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.ob-success-card-sub { font-size: 0.82rem; color: var(--fg-muted); }
.ob-finish-btn { margin-top: 8px; }

@media (max-width: 640px) {
  .ob-niche-grid { grid-template-columns: repeat(2, 1fr); }
  .ob-title { font-size: 1.6rem; }
  .ob-step.active { padding: 24px 16px 60px; }
}

@media (max-width: 400px) {
  .ob-niche-grid { grid-template-columns: 1fr; }
}
