/* ===== THEME VARIABLES ===== */
:root {
  /* Backgrounds */
  --bg-primary: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-alt: #222244;
  --bg-input: #0f0f1a;
  --bg-error: #2d1b1b;
  --bg-success: #1a2e1a;
  --bg-warning: #2e2a1a;
  --bg-overlay: rgba(15, 15, 26, 0.3);
  --bg-page-print: #fff;

  /* Borders */
  --border-color: #2a2a4a;
  --border-hover: #4444aa;
  --border-accent: #667eea44;
  --border-error: #e74c3c44;
  --border-success: #2ecc7133;
  --border-warning: #f1c40f44;
  --footer-border: #1a1a2e;

  /* Text */
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --text-tertiary: #666;
  --text-muted: #999;
  --text-dim: #777;
  --text-title: #fff;
  --text-card-title: #ddd;
  --text-hero-sub: #999;
  --text-hero-sub-strong: #ccc;
  --text-loading: #aaa;
  --text-footer: #888;
  --text-footer-copy: #444;
  --text-footer-title: #ddd;
  --text-accent: #667eea;
  --text-accent-hover: #8b9cf7;
  --text-error: #e74c3c;
  --text-success: #2ecc71;
  --text-warning: #f1c40f;
  --text-impact: #f39c12;
  --text-badge: #667eea;
  --text-placeholder: #555;

  /* Hero */
  --hero-badge-bg: rgba(102, 126, 234, 0.15);
  --hero-badge-border: rgba(102, 126, 234, 0.3);

  /* Shadows */
  --shadow-card: 0 8px 30px rgba(102, 126, 234, 0.08);
  --shadow-paywall: 0 8px 40px rgba(0, 0, 0, 0.3);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-btn: 0 4px 30px rgba(102, 126, 234, 0.3);
  --shadow-paywall-btn: 0 4px 20px rgba(243, 156, 18, 0.3);
  --shadow-pdf-btn: 0 4px 20px rgba(231, 76, 60, 0.3);

  /* Scrollbar */
  --scrollbar-bg: #1a1a2e;
  --scrollbar-thumb: #2a2a4a;
  --scrollbar-thumb-hover: #3a3a5a;

  /* Cookie */
  --cookie-bg: linear-gradient(135deg, #1a1a2e 0%, #222244 100%);
  --cookie-border: #2a2a4a;
  --cookie-text: #999;
  --cookie-title: #fff;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg-primary: #f5f7fa;
  --bg-card: #ffffff;
  --bg-card-alt: #f0f2f5;
  --bg-input: #ffffff;
  --bg-error: #fff5f5;
  --bg-success: #f0fff0;
  --bg-warning: #fffdf0;
  --bg-overlay: rgba(255, 255, 255, 0.7);
  --bg-page-print: #fff;

  --border-color: #e0e4ea;
  --border-hover: #667eea44;
  --border-accent: #667eea44;
  --border-error: #e74c3c33;
  --border-success: #2ecc7133;
  --border-warning: #f1c40f44;
  --footer-border: #e0e4ea;

  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-tertiary: #a0aec0;
  --text-muted: #718096;
  --text-dim: #a0aec0;
  --text-title: #1a202c;
  --text-card-title: #2d3748;
  --text-hero-sub: #718096;
  --text-hero-sub-strong: #4a5568;
  --text-loading: #718096;
  --text-footer: #718096;
  --text-footer-copy: #a0aec0;
  --text-footer-title: #2d3748;
  --text-accent: #667eea;
  --text-accent-hover: #5a6fd6;
  --text-error: #e74c3c;
  --text-success: #2ecc71;
  --text-warning: #f1c40f;
  --text-impact: #e67e22;
  --text-badge: #667eea;
  --text-placeholder: #a0aec0;

  --hero-badge-bg: rgba(102, 126, 234, 0.1);
  --hero-badge-border: rgba(102, 126, 234, 0.2);

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-paywall: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-btn: 0 4px 20px rgba(102, 126, 234, 0.2);
  --shadow-paywall-btn: 0 4px 20px rgba(243, 156, 18, 0.2);
  --shadow-pdf-btn: 0 4px 20px rgba(231, 76, 60, 0.2);

  --scrollbar-bg: #f0f2f5;
  --scrollbar-thumb: #cbd5e0;
  --scrollbar-thumb-hover: #a0aec0;

  --cookie-bg: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  --cookie-border: #e0e4ea;
  --cookie-text: #666;
  --cookie-title: #1a202c;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: background 0.3s ease, border-color 0.3s ease;
  padding: 2px;
  flex-shrink: 0;
  vertical-align: middle;
}

.theme-toggle:hover {
  border-color: var(--text-accent);
}

.theme-toggle-track {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
}

.theme-toggle-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-accent);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  margin: 1px;
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(20px);
}

.theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.theme-icon-dark {
  left: 5px;
  opacity: 1;
}

.theme-icon-light {
  right: 5px;
  opacity: 0.4;
}

[data-theme="light"] .theme-icon-dark {
  opacity: 0.4;
}

[data-theme="light"] .theme-icon-light {
  opacity: 1;
}

/* Smooth theme transitions */
body, .app, .hero, .hero-bg, .hero-content, .hero-badge, .hero-title, .hero-subtitle,
.hero-stats, .hero-stat, .stat-number, .stat-label, .hero-cta,
.traffic-showcase, .tl-item, .tl-circle, .tl-dot, .tl-info h4, .tl-info p,
.analyze-section, .analyze-card, .url-form, .input-wrapper, .url-input, .analyze-button,
.agreement-text, .agreement-link, .agreement-label input[type="checkbox"],
.analyze-trust, .loading-spinner, .spinner, .loading-message, .loader-steps-list span,
.error-message, .result-header, .result-title, .result-meta, .result-type,
.result-summary, .result-summary h3, .result-summary p,
.traffic-light-section, .overall-status, .traffic-card, .traffic-card-title,
.traffic-card-comment, .traffic-status-label,
.top-actions-section, .action-card, .action-title, .action-meta, .action-category,
.action-impact, .action-detail, .ba-section, .ba-col, .ba-before, .ba-after,
.ba-arrow, .ba-label, .ba-text, .ba-section-tag,
.recommendations-section, .recommendation-item, .rec-bullet, .rec-text,
.paywall-section, .blurred-content, .paywall-overlay, .paywall-card,
.paywall-title, .paywall-desc, .paywall-btn, .paywall-loading,
.pdf-download-section, .pdf-download-card, .pdf-download-card h3, .pdf-download-card p,
.pdf-download-btn, .how-section, .steps-grid, .step-card, .step-card h3, .step-card p,
.step-arrow, .benefits-section, .benefits-grid, .benefit-card, .benefit-title,
.benefit-text, .examples-section, .examples-grid, .example-card, .example-domain,
.example-type, .footer, .footer-grid, .footer-col-title, .footer-logo, .footer-text,
.footer-copy, .footer-link, .footer-contact-item, .footer-contact-req,
.reviews-section, .reviews-grid, .review-card, .review-text, .review-author,
.cookie-overlay, .cookie-modal, .cookie-title, .cookie-text, .cookie-policy-link,
.cookie-accept, .modal-overlay, .modal-window, .modal-title, .modal-close,
.modal-body, .modal-loader, .paywall-success {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, opacity 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.app { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-title);
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(102,126,234,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(118,75,162,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(102,126,234,0.06) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-block;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  color: var(--text-badge);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: var(--text-title);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-hero-sub);
  max-width: 650px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-subtitle strong { color: var(--text-hero-sub-strong); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label { font-size: 0.8rem; color: var(--text-tertiary); margin-top: 4px; }

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 18px 42px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  box-shadow: var(--shadow-btn);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(102,126,234,0.4);
}

/* ===== TRAFFIC LIGHT SHOWCASE ===== */
.traffic-showcase { padding: 60px 0; }

.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.tl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s;
}

.tl-item:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.tl-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.tl-green .tl-circle { background: rgba(46,204,113,0.15); }
.tl-yellow .tl-circle { background: rgba(241,196,15,0.15); }
.tl-red .tl-circle { background: rgba(231,76,60,0.15); }

.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  animation: tlPulse 2s ease-in-out infinite;
}

.tl-green .tl-dot { background: #2ecc71; box-shadow: 0 0 12px rgba(46,204,113,0.4); }
.tl-yellow .tl-dot { background: #f1c40f; box-shadow: 0 0 12px rgba(241,196,15,0.4); animation-delay: 0.3s; }
.tl-red .tl-dot { background: #e74c3c; box-shadow: 0 0 12px rgba(231,76,60,0.4); animation-delay: 0.6s; }

@keyframes tlPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.tl-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-card-title); margin-bottom: 2px; }
.tl-info p { font-size: 0.78rem; color: var(--text-dim); }

/* ===== ANALYZE SECTION ===== */
.analyze-section { padding: 40px 0; }

.analyze-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
}

.url-form { max-width: 700px; margin: 0 auto; }

.input-wrapper {
  display: flex;
  gap: 10px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 6px;
  transition: border-color 0.3s;
}

.input-wrapper:focus-within { border-color: var(--text-accent); }

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

.url-input::placeholder { color: var(--text-placeholder); }
.url-input:disabled { opacity: 0.6; }

.analyze-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  font-family: inherit;
}

.analyze-button:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.analyze-button:disabled { opacity: 0.5; cursor: not-allowed; }

.input-error { color: var(--text-error); font-size: 0.85rem; margin-top: 8px; text-align: left; }

/* ===== AGREEMENT CHECKBOX ===== */
.agreement-checkbox {
  margin-top: 16px;
  text-align: center;
}

.agreement-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.agreement-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
  cursor: pointer;
  flex-shrink: 0;
}

.agreement-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.agreement-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--text-accent);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.agreement-link:hover {
  color: var(--text-accent-hover);
}

.analyze-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ===== LOADING ===== */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  gap: 20px;
}

.spinner {
  width: 50px; height: 50px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--text-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-steps { text-align: center; }
.loading-message { color: var(--text-loading); font-size: 1rem; margin-bottom: 12px; }

.loader-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.loader-steps-list span {
  opacity: 0;
  animation: fadeInStep 2s ease forwards;
}

.loader-steps-list span:nth-child(1) { animation-delay: 0s; }
.loader-steps-list span:nth-child(2) { animation-delay: 1s; }
.loader-steps-list span:nth-child(3) { animation-delay: 2s; }

@keyframes fadeInStep { to { opacity: 1; } }

/* ===== ERROR ===== */
.error-message {
  background: var(--bg-error);
  border: 1px solid var(--border-error);
  color: var(--text-error);
  padding: 16px 20px;
  border-radius: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.error-icon { font-size: 1.2rem; }

/* ===== RESULT ===== */
.analysis-result { animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header { margin-bottom: 24px; }

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 12px;
}

.result-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.result-type { color: var(--text-accent); }

.result-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.result-summary h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.result-summary p { color: var(--text-card-title); font-size: 0.95rem; line-height: 1.7; }

/* ===== TRAFFIC LIGHT RESULT ===== */
.traffic-light-section { margin-bottom: 32px; }

.overall-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.overall-status.status-green { background: var(--bg-success); color: var(--text-success); border: 1px solid var(--border-success); }
.overall-status.status-yellow { background: var(--bg-warning); color: var(--text-warning); border: 1px solid var(--border-warning); }
.overall-status.status-red { background: var(--bg-error); color: var(--text-error); border: 1px solid var(--border-error); }

.overall-emoji { font-size: 1.3rem; }
.overall-counts { margin-left: auto; font-weight: 400; opacity: 0.7; }

.traffic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.traffic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.3s;
}

.traffic-card.status-green { border-left: 4px solid var(--text-success); }
.traffic-card.status-yellow { border-left: 4px solid var(--text-warning); }
.traffic-card.status-red { border-left: 4px solid var(--text-error); }

.traffic-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.traffic-emoji { font-size: 1rem; }

.traffic-status-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-green .traffic-status-label { color: var(--text-success); }
.status-yellow .traffic-status-label { color: var(--text-warning); }
.status-red .traffic-status-label { color: var(--text-error); }

.traffic-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-card-title);
  margin-bottom: 6px;
}

.traffic-card-comment { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== TOP ACTIONS (free section header only) ===== */
.top-actions-section { margin-bottom: 32px; }
.top-actions-list { display: flex; flex-direction: column; gap: 12px; }

.action-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  align-items: flex-start;
}

.action-priority {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.action-content { flex: 1; }

.action-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-card-title);
  margin-bottom: 8px;
}

.action-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: var(--text-secondary); }

.action-category { background: var(--bg-card-alt); padding: 2px 8px; border-radius: 4px; color: var(--text-accent); }
.action-impact { color: var(--text-impact); }

.action-detail {
  font-size: 0.82rem;
  color: var(--text-accent);
  margin-top: 6px;
  line-height: 1.4;
}

/* ===== BEFORE / AFTER ===== */
.ba-section { margin-bottom: 32px; }

.ba-pair {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ba-col {
  flex: 1;
  min-width: 200px;
  border-radius: 12px;
  padding: 16px 18px;
}

.ba-before { background: var(--bg-error); border: 1px solid var(--border-error); }
.ba-after { background: var(--bg-success); border: 1px solid var(--border-success); }

.ba-arrow {
  font-size: 1.5rem;
  color: var(--text-accent);
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.ba-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ba-before .ba-label { color: var(--text-error); }
.ba-after .ba-label { color: var(--text-success); }

.ba-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}

.ba-section-tag {
  font-size: 0.78rem;
  color: var(--text-accent);
  margin: -4px 0 16px 4px;
}

/* ===== RECOMMENDATIONS ===== */
.recommendations-section { margin-bottom: 40px; }
.recommendations-list { display: flex; flex-direction: column; gap: 10px; }

.recommendation-item {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  align-items: flex-start;
}

.rec-bullet { color: var(--text-accent); font-weight: 700; font-size: 0.9rem; min-width: 20px; }
.rec-text { color: var(--text-primary); font-size: 0.9rem; line-height: 1.6; }

/* ===== PAYWALL / BLUR ===== */
.paywall-section {
  position: relative;
  margin-bottom: 32px;
}

.blurred-content {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  position: relative;
  transition: filter 0.5s ease;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: var(--bg-overlay);
  backdrop-filter: blur(2px);
  border-radius: 16px;
}

.paywall-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: var(--shadow-paywall);
}

.paywall-lock { font-size: 3rem; margin-bottom: 12px; }

.paywall-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}

.paywall-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.paywall-btn {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  width: 100%;
  box-shadow: var(--shadow-paywall-btn);
}

.paywall-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(243,156,18,0.4);
}

.paywall-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.paywall-loading {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 20px rgba(102,126,234,0.3);
  animation: paywallPulse 1s ease-in-out infinite;
}

@keyframes paywallPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ===== PDF DOWNLOAD ===== */
.pdf-download-section {
  margin-bottom: 40px;
  animation: fadeIn 0.5s ease;
}

.pdf-download-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 2px solid var(--border-accent);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(102,126,234,0.1);
}

.pdf-icon { font-size: 3rem; margin-bottom: 12px; }

.pdf-download-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}

.pdf-download-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pdf-download-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  box-shadow: var(--shadow-pdf-btn);
}

.pdf-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(231,76,60,0.4);
}

/* ===== PRINT STYLES (PDF) ===== */
@media print {
  body { background: #fff !important; color: #222 !important; }

  /* Hide non-report elements */
  .hero, .traffic-showcase, .analyze-section, .loading-spinner,
  .error-message, .how-section, .benefits-section, .examples-section,
  .footer, .paywall-overlay, .blurred-content, .paywall-section,
  .pdf-download-section, .hero-cta, .fade-in,
  .url-form, .analyze-trust, .example-section,
  .theme-toggle {
    display: none !important;
  }

  /* Show result */
  .app { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
  .main-content { max-width: 100% !important; }
  #result-container { display: block !important; }
  .analysis-result { animation: none !important; opacity: 1 !important; }

  /* Report header */
  .result-header {
    border-bottom: 3px solid #667eea !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
  }
  .result-title { color: #667eea !important; font-size: 1.8rem !important; }
  .result-type { color: #667eea !important; }
  .result-url { color: #555 !important; }
  .result-meta { color: #555 !important; }

  /* Summary */
  .result-summary {
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .result-summary h3 { color: #667eea !important; }
  .result-summary p { color: #444 !important; }

  /* Traffic Light */
  .traffic-light-section { page-break-inside: avoid !important; }
  .traffic-card {
    background: #fafafa !important;
    border: 1px solid #ddd !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .traffic-card.status-green { border-left: 4px solid #2ecc71 !important; }
  .traffic-card.status-yellow { border-left: 4px solid #f1c40f !important; }
  .traffic-card.status-red { border-left: 4px solid #e74c3c !important; }
  .traffic-card-title { color: #222 !important; }
  .traffic-card-comment { color: #555 !important; }
  .traffic-status-label { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .overall-status { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  /* Before/After */
  .ba-before { background: #fff5f5 !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .ba-after { background: #f0fff0 !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .ba-text { color: #333 !important; }
  .ba-section-tag { color: #667eea !important; }

  /* Actions */
  .action-card { background: #fafafa !important; border: 1px solid #ddd !important; }
  .action-title { color: #222 !important; }
  .action-category { background: #eee !important; color: #667eea !important; }
  .action-impact { color: #e67e22 !important; }
  .action-detail { color: #667eea !important; }
  .action-priority { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  /* Recommendations */
  .recommendation-item { background: #fafafa !important; border: 1px solid #ddd !important; }
  .rec-text { color: #444 !important; }
  .rec-bullet { color: #667eea !important; }

  /* Section titles */
  .section-title { color: #222 !important; font-size: 1.4rem !important; }
  .section-desc { color: #555 !important; }

  /* Add report footer */
  .app::after {
    content: "Сгенерировано сервисом Analyze Your Business — AI-анализ конверсии" !important;
    display: block !important;
    text-align: center !important;
    color: #999 !important;
    font-size: 0.75rem !important;
    margin-top: 30px !important;
    padding-top: 15px !important;
    border-top: 1px solid #ddd !important;
  }

  /* Report header with brand */
  .result-header::before {
    content: "🔍 Analyze Your Business — AI-анализ конверсии" !important;
    display: block !important;
    font-size: 0.8rem !important;
    color: #667eea !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.5px !important;
  }

  @page { margin: 2cm; }
  @page :first { margin-top: 2.5cm; }
}

.paywall-success {
  background: linear-gradient(135deg, var(--text-success) 0%, #27ae60 100%) !important;
  box-shadow: 0 4px 20px rgba(46,204,113,0.3) !important;
  cursor: default !important;
}

/* ===== HOW IT WORKS ===== */
.how-section { padding: 60px 0; }

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover { border-color: var(--text-accent); transform: translateY(-4px); }

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon { font-size: 2.5rem; margin-bottom: 12px; margin-top: 4px; }

.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-title); margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.step-arrow {
  font-size: 2rem;
  color: var(--text-accent);
  padding: 60px 10px 0;
  opacity: 0.5;
}

/* ===== BENEFITS ===== */
.benefits-section { padding: 60px 0; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s;
}

.benefit-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.benefit-icon { font-size: 2.2rem; margin-bottom: 12px; }

.benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}

.benefit-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.benefits-cta { text-align: center; margin-top: 40px; padding-bottom: 20px; }

/* ===== EXAMPLES ===== */
.examples-section { padding: 40px 0 60px; }

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  color: inherit;
}

.example-card:hover { border-color: var(--text-accent); transform: translateY(-2px); }

.example-domain {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-card-title);
  margin-bottom: 4px;
}

.example-type { font-size: 0.78rem; color: var(--text-dim); }

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0 30px;
  border-top: 1px solid var(--footer-border);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* Колонка бренда — выравнивание влево */
.footer-col-brand { text-align: left; }

/* Колонки документов и контактов — выравнивание по центру/началу */
.footer-col-docs,
.footer-col-contacts { text-align: left; }

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-footer-title);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Колонка 1: Бренд --- */
.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-footer-title);
  margin-bottom: 10px;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-footer);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-footer-copy);
}

/* --- Колонка 2: Документы --- */
.footer-col-docs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  background: none;
  border: none;
  color: var(--text-footer);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
  text-decoration: none;
  text-align: left;
  width: fit-content;
}

.footer-link:hover {
  color: var(--text-card-title);
}

/* --- Колонка 3: Контакты --- */
.footer-col-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-item {
  font-size: 0.82rem;
  color: var(--text-footer);
  line-height: 1.4;
}

.footer-contact-req {
  font-size: 0.7rem;
  color: var(--text-footer-copy);
  margin-top: 4px;
}

/* ===== REVIEWS ===== */
.reviews-section {
  padding: 60px 0 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.reviews-loader {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  padding: 40px 0;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  animation: reviewFadeIn 0.5s ease;
}

.review-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

@keyframes reviewFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.review-star {
  font-size: 1rem;
}

.review-star.active {
  color: #f1c40f;
}

.review-star.inactive {
  color: var(--border-color);
}

.review-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}

.review-text::before {
  content: "«";
  color: var(--text-accent);
}

.review-text::after {
  content: "»";
  color: var(--text-accent);
}

.review-author {
  font-size: 0.82rem;
  color: var(--text-accent);
  margin-top: 12px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== COOKIE CONSENT ===== */
.cookie-overlay {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  padding: 20px;
  animation: cookieFadeIn 0.3s ease;
}

.cookie-overlay.active {
  display: block;
}

@keyframes cookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal {
  background: var(--cookie-bg);
  border: 1px solid var(--cookie-border);
  border-radius: 20px;
  padding: 36px 32px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-modal);
  animation: cookieModalIn 0.4s ease;
}

@keyframes cookieModalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cookie-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.cookie-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cookie-title);
  margin-bottom: 12px;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--cookie-text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cookie-policy-link {
  background: none;
  border: none;
  color: var(--text-accent);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-policy-link:hover {
  color: var(--text-accent-hover);
}

.cookie-accept {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  box-shadow: var(--shadow-btn);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-window { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; max-width: 700px; width: 100%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: var(--shadow-modal); }

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
.modal-title { font-size: 1.1rem; font-weight: 700; color: var(--text-title); margin: 0; }
.modal-close { background: none; border: none; color: var(--text-tertiary); font-size: 1.3rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.2s; font-family: inherit; }
.modal-close:hover { color: var(--text-title); background: var(--border-color); }

.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; line-height: 1.7; font-size: 0.9rem; color: var(--text-primary); white-space: pre-wrap; user-select: none; -webkit-user-select: none; }
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: var(--scrollbar-bg); border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
.modal-loader { text-align: center; color: var(--text-tertiary); padding: 40px 0; }

/* ===== RESPONSIVE ===== */
/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-title { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
  .hero-stat { min-width: 80px; }
  .stat-number { font-size: 1.5rem; }

  .input-wrapper { flex-direction: column; gap: 8px; }
  .analyze-button { width: 100%; }

  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; margin: 8px 0; }

  .benefits-grid, .examples-grid, .tl-grid, .traffic-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 1.4rem; }

  .paywall-card { padding: 24px 20px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
