/* Shared styles — dark theme, responsive, no payment CTAs */
:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --text: #e4e6f0;
  --muted: #8b8fa3;
  --accent: #6366f1;
  --accent-hover: #4f52d9;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.text-center { text-align: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .logo { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.navbar .logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.hero { padding: 80px 0 60px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge { display: inline-block; background: var(--surface); color: var(--accent); padding: 4px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; border: 1px solid var(--border); }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.comparison-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.comparison-table th, .comparison-table td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--surface); font-weight: 600; }
.comparison-table .highlight-col { background: rgba(99,102,241,0.1); }
.comparison-table .check { color: var(--success); }
.comparison-table .cross { color: var(--danger); }
.faq-item { margin-bottom: 0.75rem; padding: 1rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.faq-item p { color: var(--muted); font-size: 0.9rem; }
footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; text-align: center; }

/* App layout */
.app-layout { display: flex; min-height: calc(100vh - 60px); }
.sidebar { width: 400px; flex-shrink: 0; border-right: 1px solid var(--border); overflow-y: auto; padding: 1rem; background: var(--surface); }
@media (max-width: 900px) { .app-layout { flex-direction: column; } .sidebar { width: 100%; max-height: 55vh; border-right: none; border-bottom: 1px solid var(--border); } }
.sidebar h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 1rem 0 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.sidebar h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-group { margin-bottom: 0.75rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.5rem 0.625rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font-size: 0.9rem; font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 0.75rem; }
.form-row .form-group { flex: 1; }
.main-area { flex: 1; overflow-y: auto; padding: 1.5rem; }

/* Review entries */
.review-entry { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.75rem; }
.review-entry .remove-btn { float: right; background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.85rem; }
.review-entry .remove-btn:hover { opacity: 0.7; }

/* Stars input */
.star-rating input { display: none; }
.star-rating label { font-size: 1.5rem; color: var(--border); cursor: pointer; transition: color 0.1s; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: #f59e0b; }
.star-rating { direction: rtl; display: inline-flex; }

/* Preview styles */
.preview-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 400px; }

/* Embed modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg); border-radius: var(--radius); padding: 2rem; max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; border: 1px solid var(--border); }
.modal h2 { margin-bottom: 1rem; }
.modal pre { background: var(--surface); padding: 1rem; border-radius: var(--radius); overflow-x: auto; font-size: 0.75rem; white-space: pre-wrap; word-break: break-all; margin: 1rem 0; border: 1px solid var(--border); color: var(--text); }
.modal .actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-size: 0.9rem; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 300; }
.toast.show { opacity: 1; }

/* Options row */
.options-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.option-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 0.85rem; cursor: pointer; transition: all 0.15s; }
.option-btn.active { border-color: var(--accent); background: rgba(99,102,241,0.15); color: var(--accent); }
.option-btn:hover { border-color: var(--accent); }
