/* Go Live */
.golive-step { display: none }
.golive-step.active { display: block }
.golive-filters { display: flex; gap: 6px; margin-bottom: 14px }
.golive-filter {
  padding: 6px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted);
}
.golive-filter:hover { color: var(--text); border-color: var(--line2) }
.golive-filter.active { border-color: var(--accent); background: rgba(91,163,245,.1); color: var(--accent) }
.golive-ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px }
.golive-ad-card .card-num { font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 4px }
.golive-ad-card .card-detail { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line) }
.golive-ad-card .card-detail.open { display: block }
.golive-ad-card .card-detail .ad-field { margin-bottom: 8px }
.golive-ad-card .btn-expand-sm {
  padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--accent); background: rgba(91,163,245,.1);
  color: var(--accent); margin-top: 8px; width: 100%;
}
.golive-ad-card .btn-expand-sm:hover { background: rgba(91,163,245,.2) }
.golive-ad-card { border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; transition: border-color .15s; display: flex; flex-direction: column }
.golive-ad-card:hover { border-color: var(--accent) }
.golive-ad-card.selected { border-color: var(--accent); background: rgba(91,163,245,.06) }
.golive-ad-card .thumb { width: 100%; height: 100px; border-radius: 8px; overflow: hidden; background: var(--bg); margin-bottom: 8px; display: flex; align-items: center; justify-content: center }
.golive-ad-card .thumb img { width: 100%; height: 100%; object-fit: cover }
.golive-ad-card .thumb .no-img { font-size: 28px; color: var(--line2) }
.golive-ad-card .card-hook { font-size: 14px; color: var(--green); font-weight: 600; line-height: 1.4; flex: 1 }
.golive-ad-card .card-format { font-size: 13px; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-top: 4px }

/* Connect */
.connect-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel) }
.btn-connect { display: flex; align-items: center; gap: 8px; padding: 10px 24px; background: #1877f2; color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 12px }
.btn-connect:hover { opacity: .9 }
.fb-icon { background: #fff; color: #1877f2; width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px }
.connected-badge { display: flex; align-items: center; gap: 10px; font-size: 15px }
.green-check { color: var(--green); font-size: 20px; font-weight: 700 }

/* Config */
.config-section { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line) }
.config-section:last-of-type { border-bottom: none }
.config-section h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px }
.config-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px }
.config-row label { font-size: 13px; color: var(--muted); min-width: 90px }
.config-row input, .config-row select { padding: 6px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 13px }
.config-row input:focus, .config-row select:focus { outline: none; border-color: var(--accent) }
.config-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px }
.check-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer }
.check-label input { accent-color: var(--accent) }
.config-reasoning { background: rgba(91,163,245,.06); border: 1px solid rgba(91,163,245,.15); border-radius: 12px; padding: 14px; margin-top: 12px }
.config-reasoning h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px }

/* Preview */
.preview-frame { max-width: 400px; margin: 0 auto 16px }
.feed-preview { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden }
.feed-preview-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px }
.feed-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px }
.feed-page-name { font-size: 13px; font-weight: 600 }
.feed-sponsored { font-size: 13px; color: var(--muted) }
.feed-text { padding: 0 14px 12px; font-size: 14px; line-height: 1.5; max-height: 4.5em; overflow: hidden }
.feed-image { width: 100%; aspect-ratio: 1; background: var(--bg); overflow: hidden }
.feed-image img { width: 100%; height: 100%; object-fit: cover }
.feed-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line) }
.feed-headline { font-size: 13px; font-weight: 600; flex: 1 }
.feed-cta { padding: 6px 16px; background: var(--accent); color: #fff; border-radius: 6px; font-size: 14px; font-weight: 600 }

/* Preview device toggle */
.preview-toggle { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px }
.preview-tab { padding: 8px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted) }
.preview-tab.active { border-color: var(--accent); background: rgba(91,163,245,.1); color: var(--accent) }
.preview-device { display: none }
.preview-device.active { display: block }

/* Desktop mockup */
.device-desktop { background: #1a1a2e; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 600px; margin: 0 auto }
.device-desktop-topbar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #252540; border-bottom: 1px solid var(--line) }
.device-desktop-dots { display: flex; gap: 6px }
.device-desktop-dots span { width: 10px; height: 10px; border-radius: 50% }
.device-desktop-dots span:nth-child(1) { background: #e05858 }
.device-desktop-dots span:nth-child(2) { background: #e0a832 }
.device-desktop-dots span:nth-child(3) { background: #34c88a }
.device-desktop-url { flex: 1; background: #1a1a2e; border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; font-size: 13px; color: var(--muted); text-align: center }
.device-desktop-content { padding: 16px; background: #18191a }

/* Mobile mockup */
.device-phone { width: 320px; margin: 0 auto; background: #000; border-radius: 36px; padding: 8px; border: 3px solid #333 }
.device-phone-notch { width: 100px; height: 6px; background: #333; border-radius: 3px; margin: 4px auto 0 }
.device-phone-screen { background: #18191a; border-radius: 28px; overflow: hidden; min-height: 500px }
.device-phone-statusbar { display: flex; justify-content: space-between; padding: 8px 16px; font-size: 13px; color: #fff; font-weight: 600 }

/* Feed preview (shared) */
.feed-preview { background: var(--panel); border-radius: 10px; overflow: hidden }
.feed-desktop { max-width: 500px; margin: 0 auto }
.feed-preview-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px }
.feed-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0 }
.feed-avatar-sm { width: 34px; height: 34px; font-size: 14px }
.feed-page-name { font-size: 14px; font-weight: 700 }
.feed-sponsored { font-size: 13px; color: var(--muted) }
.feed-dots { margin-left: auto; font-size: 18px; color: var(--muted); letter-spacing: 2px }
.feed-text { padding: 0 14px 12px; font-size: 14px; line-height: 1.5 }
.feed-text-mobile { font-size: 14px }
.feed-image { width: 100%; aspect-ratio: 1; background: var(--bg); overflow: hidden }
.feed-image img { width: 100%; height: 100%; object-fit: cover }
.feed-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); gap: 10px }
.feed-footer-left { flex: 1; min-width: 0 }
.feed-domain { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .02em }
.feed-headline { font-size: 15px; font-weight: 700; line-height: 1.3 }
.feed-cta { padding: 8px 18px; background: var(--accent); color: #fff; border-radius: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; flex-shrink: 0 }
.feed-reactions { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted) }
.feed-react-icons { font-size: 14px }
.feed-react-text { }
.feed-comments { margin-left: auto }

/* Review summary */
.review-summary { display: grid; gap: 6px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px }
.review-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0 }
.review-row span { color: var(--muted) }

/* Launch */
.launch-card { text-align: center; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px }
.launch-card p { margin-bottom: 8px }
.btn-launch { padding: 16px 48px; background: var(--green); color: #fff; border: none; border-radius: 14px; font-size: 18px; font-weight: 800; cursor: pointer; margin-top: 16px; letter-spacing: .01em }
.btn-launch:hover { opacity: .9 }
.btn-launch:disabled { opacity: .4; cursor: default }
.launch-success { text-align: center; padding: 30px }
.launch-check { font-size: 48px; color: var(--green); margin-bottom: 10px }
.launch-success h3 { font-size: 22px; margin-bottom: 8px }
.launch-success code { background: var(--bg); padding: 4px 12px; border-radius: 6px; font-size: 14px }

/* Go Live Redesign */
.gl-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 }
.gl-mode-card {
  background: var(--panel); border: 2px solid var(--line); border-radius: 16px;
  padding: 24px; cursor: pointer; text-align: center; transition: border-color .2s, transform .1s;
  display: flex; flex-direction: column;
}
.gl-mode-card p { flex: 1 }
.gl-mode-3col { grid-template-columns: 1fr 1fr 1fr }
.gl-mode-card:hover { border-color: var(--accent); transform: translateY(-2px) }
.gl-mode-fb:hover { border-color: #1877f2 }
.gl-mode-fb .gl-mode-icon { color: #1877f2; font-weight: 900; font-family: Georgia, serif }
.gl-mode-ig:hover { border-color: #e1306c }
.gl-mode-ig .gl-mode-icon { color: #e1306c }
@media (max-width: 700px) { .gl-mode-3col { grid-template-columns: 1fr } }
.gl-mode-icon { font-size: 40px; margin-bottom: 12px }
.gl-mode-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px }
.gl-mode-card p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 12px }
.gl-mode-tag { font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(91,163,245,.1); padding: 4px 12px; border-radius: 8px; display: inline-block }

/* Progress dots */
.gl-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px }
.gl-prog-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line2); transition: background .3s }
.gl-prog-dot.active { background: var(--accent) }
.gl-prog-dot.done { background: var(--green) }

/* Tips */
.gl-tip {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
  background: rgba(91,163,245,.06); border: 1px solid rgba(91,163,245,.15);
  border-radius: 12px; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted);
}
.gl-tip-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px }

/* Guide badges */
.config-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px }
.config-section-head h3 { margin: 0 }
.gl-guide-badge {
  font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer;
  padding: 2px 10px; border: 1px solid rgba(91,163,245,.25); border-radius: 6px;
}
.gl-guide-badge:hover { background: rgba(91,163,245,.1) }
.gl-guide {
  font-size: 14px; color: var(--muted); line-height: 1.6; padding: 10px 14px;
  background: rgba(91,163,245,.04); border-radius: 10px; margin-bottom: 12px;
}

/* Auto mode status */
.gl-auto-status { display: grid; gap: 12px; padding: 20px 0 }
.gl-auto-item { display: flex; align-items: center; gap: 12px; font-size: 15px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px }
.gl-auto-item.gl-auto-done { border-color: var(--green); color: var(--green) }
.gl-auto-item.gl-auto-pending { opacity: 0.4 }
.gl-auto-spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite }
.gl-auto-wait { color: var(--line2); font-size: 14px }
.gl-auto-check { color: var(--green); font-size: 18px; font-weight: 700 }
.gl-auto-summary { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px }
.gl-auto-summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px }
.gl-auto-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line) }
.gl-auto-summary-row:last-child { border-bottom: none }
.gl-auto-summary-row span:first-child { color: var(--muted) }

/* Copilot bar */
.gl-copilot-bar { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line) }
.gl-copilot-bar input { flex: 1; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 14px }
.gl-copilot-bar input:focus { outline: none; border-color: var(--accent) }
.gl-copilot-bar input::placeholder { color: var(--muted) }
#gl-copilot-answer { margin-top: 12px; padding: 14px; background: rgba(91,163,245,.06); border: 1px solid rgba(91,163,245,.12); border-radius: 12px; font-size: 14px; line-height: 1.6; color: var(--text) }

@media (max-width: 600px) { .gl-mode-grid { grid-template-columns: 1fr } }

/* Go Live platform filters */
.golive-filter-fb.active { border-color: #1877f2; background: rgba(24,119,242,.1); color: #1877f2 }
.golive-filter-ig.active { border-color: #e1306c; background: rgba(225,48,108,.1); color: #e1306c }

/* Goal cards */
.gl-goal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.gl-goal-card { padding: 14px; border: 2px solid var(--line); border-radius: 12px; text-align: center; cursor: pointer; transition: border-color .15s }
.gl-goal-card:hover { border-color: var(--accent) }
.gl-goal-active { border-color: var(--accent); background: rgba(91,163,245,.06) }
.gl-goal-icon { font-size: 24px; margin-bottom: 6px }
.gl-goal-name { font-size: 14px; font-weight: 700; margin-bottom: 2px }
.gl-goal-desc { font-size: 13px; color: var(--muted) }
@media (max-width: 500px) { .gl-goal-cards { grid-template-columns: 1fr } }

/* Launch step — choose paused-review vs go-live-now before one-click publish to Meta */
.gl-launch-mode { display: grid; gap: 10px; margin: 4px 0 16px }
.gl-launch-opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s }
.gl-launch-opt:hover { border-color: var(--accent) }
.gl-launch-opt:has(input:checked) { border-color: var(--green); background: rgba(52,200,138,.07) }
.gl-launch-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; flex-shrink: 0 }
.gl-launch-opt > span { display: flex; flex-direction: column; gap: 3px }
.gl-launch-opt strong { font-size: 15px; font-weight: 700; color: var(--text) }
.gl-launch-opt-sub { font-size: 13px; color: var(--muted); line-height: 1.45 }
