/* ============================================================
   Seaside Discovery — Dark Theme
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-input: #1a1a25;
  --border: #2a2a3a;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --text-dim: #555570;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --accent: #8b5cf6;
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* --- Progress Bar --- */

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.progress-step.active { opacity: 1; }
.progress-step.done { opacity: 0.6; }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.progress-step.active .step-num { background: var(--primary); }
.progress-step.done .step-num { background: var(--success); }

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-step.active .step-label { color: var(--text); }

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
}

/* --- Steps --- */

.step { display: none; }
.step.active { display: block; }
.step.step-collapsed { display: none !important; } /* Completed steps stay hidden — no going back */

.step-content { animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}

/* --- Forms --- */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

textarea, .input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: vertical;
}

textarea:focus, .input:focus {
  outline: none;
  border-color: var(--primary);
}

.input-sm { padding: 8px 12px; font-size: 14px; }

/* --- Tags --- */

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
}

.tag-remove {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  font-size: 16px;
  line-height: 1;
}

.tag-remove:hover { opacity: 1; }

.tag-input-row {
  display: flex;
  gap: 8px;
}

.tag-input-row .input { flex: 1; }

/* --- Buttons --- */

.btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover { border-color: var(--text-muted); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-sm.regen { padding: 6px 10px; font-size: 14px; opacity: 0.5; cursor: pointer; }
.btn-sm.regen:hover { opacity: 1; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  margin-top: 24px;
  display: block;
  width: 100%;
}

.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Search Result Cards --- */

.search-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.search-card-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-input);
}

.search-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-card-body {
  padding: 20px;
}

.search-card.confirmed { border-color: var(--success); }
.search-card.rejected { opacity: 0.4; }
.search-card-notfound { border-style: dashed; opacity: 0.6; min-height: auto; }
.search-card-notfound .search-card-body { padding: 12px 16px; }

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

.search-card-platform {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.platform-name {
  font-weight: 600;
  font-size: 15px;
}

.search-card-stat {
  font-size: 14px;
  color: var(--text-muted);
}

.search-card-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.search-card-warning {
  font-size: 12px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.search-card-url {
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
}

.search-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-confirm { color: var(--success); border-color: var(--success); }
.btn-confirm:hover { background: rgba(34, 197, 94, 0.1); }
.btn-confirmed { background: rgba(34, 197, 94, 0.2); color: var(--success); border-color: var(--success); }
.btn-reject { color: var(--danger); border-color: var(--danger); }
.btn-reject:hover { background: rgba(239, 68, 68, 0.1); }

.search-card-replace {
  margin-top: 8px;
  display: none;
}

.search-card-replace.visible { display: flex; gap: 8px; }

/* --- Analysis Cards --- */

.analysis-section {
  margin-bottom: 32px;
}

.analysis-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.analysis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

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

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-strong { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-moderate { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-weak { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.status-absent { background: rgba(85, 85, 112, 0.15); color: var(--text-dim); }

.analysis-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.stat {
  font-size: 13px;
  color: var(--text-muted);
}

.stat strong {
  color: var(--text);
  font-size: 16px;
  display: block;
}

.analysis-assessment {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cross-platform-card {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
}

.cross-platform-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--primary-hover);
}

.strengths-list, .weaknesses-list {
  list-style: none;
  margin-bottom: 16px;
}

.strengths-list li::before { content: "+  "; color: var(--success); font-weight: 700; }
.weaknesses-list li::before { content: "-  "; color: var(--danger); font-weight: 700; }

.strengths-list li, .weaknesses-list li {
  font-size: 14px;
  padding: 4px 0;
  color: var(--text-muted);
}

/* --- Manual Link --- */

.manual-link-area {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.manual-link-area h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.manual-link-row {
  display: flex;
  gap: 8px;
}

.manual-link-row select { width: 140px; flex-shrink: 0; }
.manual-link-row .input { flex: 1; }

/* --- Loading --- */

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.9);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loading-overlay.active { display: flex; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-progress-bar {
  width: 300px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.loading-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 15px;
  color: var(--text-muted);
}

/* --- Chat Step --- */

.chat-step { display: flex; flex-direction: column; }

.chat-messages {
  flex: 1;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-bottom-right-radius: 4px;
  color: white;
}

.chat-bubble.ai .chat-sender {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-typing {
  align-self: flex-start;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 14px;
  color: var(--text-dim);
  animation: fadeIn 0.3s ease;
}

.chat-typing span {
  animation: blink 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

.chat-input-area {
  display: flex;
  gap: 8px;
}

.chat-input-area .input {
  flex: 1;
}

.chat-send-btn {
  width: auto;
  margin-top: 0;
  padding: 14px 24px;
  flex-shrink: 0;
}

.chat-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

#btn-chat-done {
  margin-top: 0;
}

.btn-muted {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-muted:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* --- Report Page --- */

.report {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.scrape-failures-banner {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
  color: #ff6b35;
}
.scrape-failures-banner strong { display: block; margin-bottom: 4px; }
.scrape-failures-banner p { margin: 0; font-size: 14px; color: var(--text-muted); }

.report-nav {
  margin-bottom: 12px;
}
.report-nav a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.report-nav a:hover { opacity: 1; }

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--bg-input, #12121a);
  border-radius: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.lang-btn {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover { color: var(--text-muted); }
.lang-btn.active {
  background: var(--primary, #6366f1);
  color: #fff;
}

/* Language visibility: default = English only */
[data-lang="en"] .lang-th { display: none !important; }
[data-lang="th"] .lang-en { display: none !important; }
[data-lang="both"] .lang-en,
[data-lang="both"] .lang-th { display: block; }

/* Thai text styling */
.lang-th {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* When showing both, add separator between language blocks */
[data-lang="both"] .prose.lang-th {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  opacity: 0.85;
}

[data-lang="both"] h2 .lang-th,
[data-lang="both"] h3 .lang-th {
  display: inline;
  margin-left: 8px;
  opacity: 0.6;
  font-size: 0.85em;
}

[data-lang="both"] h2 .lang-th::before,
[data-lang="both"] h3 .lang-th::before {
  content: '/ ';
}

/* Seaside topbar */
.report-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.seaside-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.seaside-mark svg { opacity: 0.7; }

.report-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Brand color bar */
.brand-color-bar {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  margin: 0 auto 24px;
}

.report-header {
  text-align: center;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.report-header h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.report-tagline {
  font-size: 18px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.report-meta {
  font-size: 13px;
  color: var(--text-dim);
}

/* Brand-colored accents (when --brand-primary is set) */
.report-section .section-number {
  color: var(--brand-primary, var(--primary));
}

.phase-dot {
  border-color: var(--brand-primary, var(--primary)) !important;
  background: var(--brand-primary, var(--primary)) !important;
}

.phase-timeframe {
  color: var(--brand-primary, var(--primary)) !important;
}

.open-questions {
  border-left-color: var(--brand-primary, var(--primary)) !important;
}

.report-section {
  margin-bottom: 56px;
}

.section-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.report-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.report-section .prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.report-section .prose p { margin-bottom: 16px; }

/* Stats grid for presence section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Platform cards in report */
.platform-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.platform-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.platform-card-body { flex: 1; }

.platform-card-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.platform-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Screenshots */
.subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 24px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

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

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.screenshot-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* Brand identity row */
.identity-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.identity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 120px;
}

.identity-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.identity-card-wide {
  width: 280px;
}

.identity-card-wide img {
  height: 100px;
  object-fit: cover;
}

/* Instagram posts grid */
.ig-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

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

.ig-post-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ig-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* Analysis step screenshots */
.screenshots-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.screenshot-card-sm {
  flex: 0 0 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.screenshot-card-sm img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.screenshot-caption-sm {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* Review quotes */
.review-quotes {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--primary);
}

.review-quotes blockquote {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.5;
}

.sub-analysis {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.sub-analysis strong {
  color: var(--text);
}

/* Visual direction */
.palette-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.color-chip {
  width: 80px;
  text-align: center;
}

.color-swatch {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 6px;
}

.color-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.color-hex {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

/* Next steps */
.next-steps-list {
  list-style: none;
  counter-reset: steps;
}

.next-steps-list li {
  counter-increment: steps;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.next-steps-list li::before {
  content: counter(steps);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* CTA Section */
.cta-section {
  margin-top: 24px;
  margin-bottom: 40px;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--brand-primary-border, var(--border));
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary, var(--primary)), var(--brand-accent, var(--accent)));
}

.cta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-primary, var(--primary));
  margin-bottom: 16px;
}

.cta-card h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-details {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cta-detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.cta-detail-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: var(--brand-primary, var(--primary));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cta-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-cta-primary:disabled { opacity: 0.7; cursor: default; transform: none; }
.btn-cta-confirmed { background: var(--success) !important; }

.btn-cta-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cta-secondary:hover {
  border-color: var(--brand-primary, var(--primary));
  color: var(--text);
}

/* Footer */
.report-footer {
  text-align: center;
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-brand strong {
  color: var(--text-muted);
  font-size: 15px;
}

.footer-brand svg { opacity: 0.6; }

.footer-services {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .cta-card { padding: 28px 20px; }
  .cta-card h2 { font-size: 22px; }
  .cta-details { flex-direction: column; gap: 16px; }
  .cta-actions { flex-direction: column; }
  .btn-cta-primary, .btn-cta-secondary { width: 100%; }
  .report-topbar { padding: 12px 0; }
}

/* --- Services Chips --- */
/* --- Cross-Platform Consistency --- */
.cross-platform-summary {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.consistency-indicator {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cross-platform-summary p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 8px 0 0;
}

/* --- Business Segments --- */
.segments-section { margin-top: 24px; margin-bottom: 16px; }
.segments-section h4 { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.segments-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.segment-chip {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: default;
}

/* --- Customer Languages --- */
.customer-languages { margin-bottom: 20px; }
.customer-languages h4 { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chip {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent, #3b82f6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* --- Existing Tools --- */
.existing-tools-section { margin-top: 20px; }
.existing-tools-section h4 { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.tools-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

.services-section { margin-top: 24px; }
.services-section h4 { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.services-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.service-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text);
}
.service-source {
  color: var(--text-dim);
  font-size: 11px;
  margin-left: 6px;
}

/* --- Brand Identity Images --- */
.brand-identity-section { margin-bottom: 28px; }
.brand-identity-section h4 { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.identity-subtitle { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; opacity: 0.7; }
.identity-images { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.identity-card {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
.identity-card img { display: block; max-height: 120px; width: auto; object-fit: contain; margin: 12px auto; }
.identity-card span { display: block; padding: 8px 12px; font-size: 12px; color: var(--text-dim); border-top: 1px solid var(--border); }

/* --- Logo Color Chips --- */
.color-chip-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 2px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* --- Platform Links --- */
.platform-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.platform-link:hover { opacity: 1; }

/* --- Possibility Blocks --- */
.possibility-blocks { display: flex; flex-direction: column; gap: 20px; }
.possibility-block {
  padding: 20px 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent, #4a8b3b);
  border-radius: 8px;
}
.possibility-block p { margin: 0; }

/* --- Friction Points --- */
.friction-points { margin-bottom: 24px; }
.friction-points h4 { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.friction-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.friction-icon { flex-shrink: 0; font-size: 16px; }
.friction-impact { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* --- What Changes Often --- */
.changes-often { margin-bottom: 24px; }
.changes-often h4 { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.change-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.change-icon { flex-shrink: 0; font-size: 16px; }
.change-evidence { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* --- Infrastructure Cards --- */
.infra-cards { display: grid; gap: 12px; margin-top: 24px; }
.infra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.infra-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.infra-card-header h4 { font-size: 15px; font-weight: 600; margin: 0; flex: 1; }
.infra-sequence {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.complexity-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.complexity-starter { background: rgba(74, 159, 191, 0.15); color: #4a9fbf; }
.complexity-moderate { background: rgba(232, 168, 124, 0.15); color: #e8a87c; }
.complexity-advanced { background: rgba(191, 74, 74, 0.15); color: #bf4a4a; }
.infra-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0 0 8px; }
.builds-on { font-size: 12px; color: var(--text-dim); font-style: italic; }

/* --- Discovery Score --- */
.discovery-score { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.score-dots { display: flex; gap: 8px; }
.score-dot { font-size: 20px; opacity: 0.3; transition: opacity 0.2s; }
.score-dot.dot-strong { opacity: 1; }
.score-dot.dot-moderate { opacity: 0.7; }
.score-dot.dot-weak { opacity: 0.5; }
.score-dot.dot-absent { opacity: 0.2; filter: grayscale(1); }
.score-label { font-size: 14px; color: var(--text-dim); font-weight: 500; }

/* --- Idea Cards --- */
.section-intro { font-size: 15px; color: var(--text-dim); margin-bottom: 20px; }
.idea-cards { display: grid; gap: 12px; }
.idea-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, opacity 0.2s;
}
.idea-card.idea-selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--bg-card)); }
.idea-card.idea-dimmed { opacity: 0.4; }
.idea-btn-active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }

/* --- Response Collector --- */
.report-response-section { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.report-response-section h3 { margin: 0 0 12px; font-size: 18px; }
.selected-idea-preview { font-size: 13px; color: var(--text-dim); padding: 6px 0; border-bottom: 1px solid var(--border); margin: 0; }
.response-textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; resize: vertical; margin: 12px 0; background: var(--bg-main); color: var(--text-main); font-family: inherit; }
.response-thanks-msg { color: var(--primary); font-weight: 500; font-size: 16px; }
.idea-content { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.idea-actions { display: flex; gap: 8px; }
.idea-btn {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.idea-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--text); }
.idea-btn:disabled { cursor: default; opacity: 0.5; }
.idea-btn.idea-interested:hover:not(:disabled) { background: rgba(99, 102, 241, 0.1); }

/* --- Where Things Break (friction) --- */
.friction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.friction-line {
  padding: 10px 16px;
  background: var(--bg-card, #1a1a2e);
  border-left: 3px solid #e74c3c;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text, #e0e0e0);
  line-height: 1.4;
}

/* --- Possible Upgrades --- */
.upgrade-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}
.upgrade-card {
  background: var(--bg-card, #1a1a2e);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: var(--radius, 12px);
  padding: 24px;
  transition: border-color 0.2s;
}
.upgrade-card:hover {
  border-color: var(--primary, #6c5ce7);
}
.upgrade-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.upgrade-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text, #e0e0e0);
}
.tier-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}
.tier-immediate { background: rgba(46, 213, 115, 0.15); color: #2ed573; }
.tier-system { background: rgba(108, 92, 231, 0.15); color: #a29bfe; }
.tier-expansion { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }

.upgrade-what-changes {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text, #e0e0e0);
}
.upgrade-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #888);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.upgrade-instead, .upgrade-becomes {
  margin-bottom: 12px;
}
.upgrade-instead ul, .upgrade-becomes ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}
.upgrade-instead li::before {
  content: "\2212";
  color: #e74c3c;
  font-weight: bold;
  margin-right: 8px;
  margin-left: -16px;
}
.upgrade-becomes li::before {
  content: "+";
  color: #2ed573;
  font-weight: bold;
  margin-right: 8px;
  margin-left: -16px;
}
.upgrade-instead li, .upgrade-becomes li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text, #e0e0e0);
}

/* --- Reactions per upgrade --- */
.upgrade-reactions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #2a2a4a);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reaction-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 20px;
  transition: all 0.2s;
}
.reaction-option:hover {
  border-color: var(--primary, #6c5ce7);
  color: var(--text, #e0e0e0);
}
.reaction-option input[type="checkbox"] {
  display: none;
}
.reaction-option:has(input:checked) {
  border-color: var(--primary, #6c5ce7);
  background: rgba(108, 92, 231, 0.15);
  color: var(--text, #e0e0e0);
}

/* --- Response Capture Section --- */
.response-capture-section {
  background: var(--bg-card, #1a1a2e);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: var(--radius, 12px);
  padding: 24px;
}
.capture-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text, #e0e0e0);
}
.barrier-options, .intent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.barrier-option, .intent-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 20px;
  transition: all 0.2s;
}
.barrier-option:hover, .intent-option:hover {
  border-color: var(--primary, #6c5ce7);
  color: var(--text, #e0e0e0);
}
.barrier-option input[type="checkbox"],
.intent-option input[type="radio"] {
  display: none;
}
.barrier-option:has(input:checked),
.intent-option:has(input:checked) {
  border-color: var(--primary, #6c5ce7);
  background: rgba(108, 92, 231, 0.15);
  color: var(--text, #e0e0e0);
}
.barrier-other {
  flex-basis: 100%;
}
.barrier-other-text {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border, #2a2a4a);
  color: var(--text, #e0e0e0);
  font-size: 0.85rem;
  padding: 2px 4px;
  width: 150px;
  outline: none;
}
.barrier-other-text:focus {
  border-bottom-color: var(--primary, #6c5ce7);
}

.contact-capture {
  margin-bottom: 20px;
}
.contact-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.contact-select {
  background: var(--bg, #0f0f23);
  color: var(--text, #e0e0e0);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
}
.contact-input {
  flex: 1;
  background: var(--bg, #0f0f23);
  color: var(--text, #e0e0e0);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
}
.contact-input:focus, .contact-select:focus {
  outline: none;
  border-color: var(--primary, #6c5ce7);
}

.btn-submit-capture {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .upgrade-header { flex-direction: column; gap: 8px; }
  .upgrade-reactions { flex-direction: column; }
  .barrier-options, .intent-options { flex-direction: column; }
  .contact-row { flex-direction: column; }
  .reaction-option, .barrier-option, .intent-option { width: 100%; justify-content: center; }
}

/* --- Report Response --- */
.report-response {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 48px;
}
.report-response h2 { font-size: 24px; margin-bottom: 8px; }
.selected-ideas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.response-chip {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--primary);
  color: var(--text);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
}
.response-textarea {
  width: 100%;
  max-width: 500px;
  margin: 16px auto;
  display: block;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.response-textarea:focus { outline: none; border-color: var(--primary); }
.response-sent { padding: 24px 0; }
.response-sent h2 { font-size: 22px; margin-bottom: 8px; }
.response-sent p { color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 600px) {
  .app { padding: 24px 16px; }
  h1 { font-size: 24px; }
  .report-header h1 { font-size: 28px; }
  .report-header .tagline { font-size: 16px; }
  .progress-bar { gap: 0; }
  .step-label { display: none; }
  .manual-link-row { flex-direction: column; }
  .manual-link-row select { width: 100%; }
  /* Prevent iOS zoom on inputs */
  input, textarea, select { font-size: 16px !important; }
  /* Setup flow touch targets */
  .btn { min-height: 48px; font-size: 16px; }
  .btn-sm { min-height: 40px; }
  textarea { min-height: 120px; }
  /* Tags — bigger tap targets */
  .tag { padding: 6px 14px; font-size: 14px; }
  .tag .remove-tag { width: 24px; height: 24px; font-size: 16px; }
  /* Report mobile */
  .report { padding: 12px; }
  .report-section { padding: 20px 14px; }
  .section-number { font-size: 11px; }
  .report-section h2 { font-size: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .identity-row { flex-wrap: wrap; }
  .identity-card { width: calc(50% - 8px); }
  .screenshots-grid { grid-template-columns: 1fr; }
  .discovery-score { flex-wrap: wrap; padding: 10px 12px; }
  .platform-cards { gap: 8px; }
  .platform-card { padding: 14px; }
  .infra-card { padding: 14px; }
  .infra-card-header { flex-wrap: wrap; gap: 6px; }
  .roadmap-phase { gap: 12px; }
  .palette-row { flex-wrap: wrap; }
  .color-chip { width: calc(33% - 8px); }
  .segments-chips, .services-chips, .tools-chips, .lang-chips { gap: 6px; }
  .segment-chip, .service-chip, .tool-chip, .lang-chip { font-size: 12px; padding: 5px 12px; }
  .friction-item, .change-item { padding: 8px 10px; }
  /* Download buttons stack on mobile */
  .report-download { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .report-download .btn-download,
  .report-download .btn-share,
  .report-download .btn-proposal { margin-left: 0; width: 100%; max-width: 280px; text-align: center; }
  /* Chat input */
  .chat-input-area { gap: 8px; }
  .chat-input-area input { font-size: 16px; }
  .chat-send-btn { min-width: 64px; min-height: 48px; }
  /* Report chat section */
  .report-chat-input { font-size: 16px; }
  /* Idea cards */
  .idea-content { font-size: 14px; }
  .idea-toggle { min-height: 40px; padding: 8px 16px; }
  /* Footer */
  .report-footer { padding: 24px 16px; }
}

/* --- Download Button --- */
.report-download {
  text-align: center;
  padding: 32px 0;
  margin-top: 24px;
}
.btn-download {
  background: var(--accent, #6c5ce7);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-download:hover { opacity: 0.85; }
.btn-share {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
}
.btn-share:hover { border-color: var(--accent, #6c5ce7); color: var(--text); }
.btn-proposal {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  margin-left: 8px;
  transition: all 0.2s;
}
.btn-proposal:hover { border-color: var(--primary); color: var(--primary); }
.download-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.share-buttons-secondary {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06C755;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-line:hover { opacity: 0.85; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-whatsapp:hover { opacity: 0.85; }

@media (max-width: 600px) {
  .share-buttons { flex-direction: column; }
  .btn-line, .btn-whatsapp { justify-content: center; }
  .share-buttons-secondary { flex-direction: column; }
}

/* --- Roadmap --- */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
}
.roadmap-phase {
  display: flex;
  gap: 20px;
  min-height: 100px;
}
.phase-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}
.phase-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--primary);
  flex-shrink: 0;
}
.phase-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--primary), transparent);
}
.phase-content {
  padding-bottom: 24px;
  flex: 1;
}
.phase-timeframe {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.phase-content h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--text);
}
.phase-content p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.open-questions {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}
.open-questions h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text);
}
.open-questions ul {
  margin: 0;
  padding-left: 20px;
}
.open-questions li {
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* --- Report Chat --- */
.report-chat-section {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.report-chat {
  margin-top: 16px;
}
.chat-messages {
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}
.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
}
.chat-bubble p {
  margin: 0 0 8px;
}
.chat-bubble p:last-child {
  margin-bottom: 0;
}
.chat-assistant {
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-self: flex-start;
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-typing p {
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.next-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.next-step-item {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.next-step-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.next-step-value {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.deal-summary-card {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--success, #22c55e);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
}
.deal-summary-header {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--success, #22c55e);
}
.deal-summary-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deal-row {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.deal-row strong {
  margin-right: 6px;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus {
  border-color: var(--primary);
}
.chat-send {
  padding: 12px 24px !important;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto !important;
}

/* --- Print Styles --- */
@media print {
  /* Force browsers to print backgrounds and colors */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* Hide interactive and non-essential elements */
  .no-print,
  .idea-actions,
  .report-response,
  .report-download,
  .btn-download,
  nav,
  header { display: none !important; }

  body, .app {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    background: #0a0a0f !important;
  }

  #report {
    max-width: 100% !important;
    padding: 0 20px !important;
  }

  /* Keep dark theme in print */
  .report { background: #0a0a0f !important; color: #e8e8f0 !important; }
  .report-section { background: #12121a !important; }
  .report-header { background: #0a0a0f !important; }

  /* CTA section prints as the sales pitch (without buttons) */
  .cta-section { page-break-before: always; }
  .cta-actions { display: none !important; }

  /* Avoid breaking inside sections and cards */
  .report-section {
    page-break-inside: avoid !important;
  }

  .stat-card, .infra-card, .idea-card, .platform-card, .possibility-block, .screenshot-card {
    page-break-inside: avoid !important;
  }

  .report-section h2 {
    page-break-after: avoid !important;
  }

  /* Screenshots - reasonable size for print */
  .screenshot-card img {
    max-height: 250px !important;
    object-fit: contain !important;
  }

  /* Footer */
  .report-footer {
    margin-top: 32px !important;
    padding-top: 16px !important;
    text-align: center !important;
  }

  /* Links - show URL */
  a[href]::after {
    content: none !important;
  }
  a { text-decoration: none !important; }
}

/* Website broken pages warning */
.website-warning {
  background: rgba(255, 152, 0, 0.1);
  border-left: 3px solid #ff9800;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--text-secondary, var(--text-muted));
}
