/**
 * Fact-Check System Styles
 */

/**
 * FIXED: Paywall Overlay Styles (not popup modal)
 * 
 * CHANGES:
 * - Email gate is overlay on top of report (not full-screen popup)
 * - Report shows blurred underneath
 * - More elegant, less intrusive
 * - Better UX
 */

/* ========================================
   PAYWALL OVERLAY (NEW DESIGN)
   ======================================== */

/* Blurred report underneath paywall */
.report-blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* Paywall overlay container */
.factcheck-email-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
  overflow-y: auto;
}

/* Semi-transparent backdrop */
.email-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

/* Centered paywall card */
.email-gate-modal {
  position: relative;
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
  animation: slideUp 0.4s ease;
  z-index: 1;
}

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

.email-gate-content {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.s-dark .email-gate-content {
  background: #2d3748;
}

/* Close button (optional - can remove if you want mandatory gate) */
.email-gate-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0.6;
}

.email-gate-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
  color: #1f2937;
}

.s-dark .email-gate-close {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
}

.s-dark .email-gate-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

/* Header */
.email-gate-header {
  text-align: center;
  margin-bottom: 40px;
}

.email-gate-icon svg {
  color: #acd2bf;
  margin-bottom: 20px;
}

.email-gate-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1f2937;
}

.s-dark .email-gate-header h2 {
  color: #f9fafb;
}

.email-gate-header p {
  color: #6b7280;
  font-size: 18px;
  line-height: 1.6;
}

.s-dark .email-gate-header p {
  color: #9ca3af;
}

/* Subscription Plans */
.subscription-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.plan-card {
  background: #f9fafb;
  border: 3px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.plan-card.active {
  border-color: #acd2bf;
  background: rgba(172, 210, 191, 0.05);
}

.s-dark .plan-card {
  background: #1a202c;
  border-color: #4b5563;
}

.s-dark .plan-card.active {
  border-color: #acd2bf;
  background: rgba(172, 210, 191, 0.1);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: #3b82f6;
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge.recommended {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.plan-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.s-dark .plan-header h3 {
  color: #f9fafb;
}

.plan-price {
  margin-bottom: 24px;
}

.plan-price .price {
  font-size: 48px;
  font-weight: 800;
  color: #acd2bf;
}

.plan-price .period {
  font-size: 18px;
  color: #6b7280;
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 0;
}

.s-dark .plan-features li {
  color: #d1d5db;
}

.plan-features svg {
  color: #acd2bf;
  flex-shrink: 0;
}

.plan-select-btn {
  width: 100%;
  padding: 14px 0;
  background: white;
  border: 2px solid #acd2bf;
  color: #acd2bf;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-select-btn:hover {
  background: #acd2bf;
  color: white;
  transform: translateY(-2px);
}

.plan-card.active .plan-select-btn {
  background: #acd2bf;
  color: white;
}

.pro-plan .plan-select-btn {
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border: none;
}

/* Plan Forms */
.plan-form {
  display: none;
}

.plan-form.active {
  display: block;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #374151;
  font-size: 14px;
}

.s-dark .form-group label {
  color: #e5e7eb;
}

.form-group label svg {
  color: #9ca3af;
  flex-shrink: 0;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: #acd2bf;
  box-shadow: 0 0 0 3px rgba(172, 210, 191, 0.1);
}

.s-dark .form-group input[type="email"],
.s-dark .form-group input[type="text"] {
  background: #1a202c;
  border-color: #4b5563;
  color: #f9fafb;
}

.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 12px;
  font-weight: 400 !important;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.s-dark .checkbox-text {
  color: #9ca3af;
}

.checkbox-text a {
  color: #acd2bf;
  text-decoration: underline;
  font-weight: 600;
}

.submit-btn {
  width: 100%;
  padding: 16px 0;
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(172, 210, 191, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn .btn-loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.usage-note {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.s-dark .usage-note {
  color: #9ca3af;
}

.usage-note svg {
  color: #3b82f6;
  flex-shrink: 0;
}

/* Stripe Payment Form */
.stripe-payment-demo {
  background: #f9fafb;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.s-dark .stripe-payment-demo {
  background: #1a202c;
}

.payment-header {
  text-align: center;
  margin-bottom: 24px;
}

.payment-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.s-dark .payment-header h4 {
  color: #f9fafb;
}

.payment-header p {
  font-size: 14px;
  color: #6b7280;
}

.s-dark .payment-header p {
  color: #9ca3af;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-summary {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.s-dark .payment-summary {
  background: #2d3748;
  border-color: #4b5563;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  color: #4b5563;
}

.s-dark .summary-row {
  color: #d1d5db;
}

.summary-row.total {
  border-top: 2px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 16px;
  font-weight: 700;
  font-size: 18px;
  color: #1f2937;
}

.s-dark .summary-row.total {
  border-top-color: #4b5563;
  color: #f9fafb;
}

.billing-note {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 10px;
}

.email-gate-note {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.s-dark .email-gate-note {
  color: #9ca3af;
}

.email-gate-note svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* Trust Section */
.email-gate-trust {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.s-dark .email-gate-trust {
  border-top-color: #4b5563;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badges .badge {
  padding: 8px 16px;
  background: rgba(172, 210, 191, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
}

.s-dark .trust-badges .badge {
  background: rgba(172, 210, 191, 0.15);
  color: #6ee7b7;
}

/* Responsive Paywall */
@media (max-width: 1024px) {
  .subscription-plans {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .email-gate-content {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .email-gate-modal {
    margin: 20px auto;
    padding: 10px;
  }

  .email-gate-content {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .email-gate-header h2 {
    font-size: 28px;
  }

  .plan-price .price {
    font-size: 36px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   HEADER SEARCH (for homepage)
   ======================================== */

.factcheck-header-search {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.factcheck-filters-mini {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn-mini {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(172, 210, 191, 0.3);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn-mini:hover {
  background: rgba(172, 210, 191, 0.15);
  border-color: #acd2bf;
  color: #fff;
}

.filter-btn-mini.active {
  background: #acd2bf;
  border-color: #acd2bf;
  color: #1a202c;
}

.factcheck-input-wrapper-header {
  position: relative;
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.factcheck-input-icon-header {
  position: absolute;
  left: 20px;
  top: 55%;
  transform: translateY(-50%);
  color: #718096;
  pointer-events: none;
  z-index: 1;
}

.factcheck-input-icon-header {
  top: 50%;
}

.factcheck-input-header {
  flex: 1;
  padding: 14px 20px 14px 50px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #2d3748;
  outline: none;
}

.factcheck-input-header::placeholder {
  color: #a0aec0;
}

.factcheck-submit-btn-header {
  padding: 0 28px;
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.factcheck-submit-btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(172, 210, 191, 0.4);
}

.factcheck-submit-btn-header.loading .btn-icon {
  display: none;
}

.factcheck-submit-btn-header .btn-loading {
  animation: spin 1s linear infinite;
}

.factcheck-examples-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}

.examples-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.example-btn-header {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.example-btn-header:hover {
  background: rgba(172, 210, 191, 0.2);
  border-color: #acd2bf;
  color: #fff;
}

@media (max-width: 768px) {
  .factcheck-filters-mini {
    gap: 6px;
  }

  .filter-btn-mini {
    padding: 6px 12px;
    font-size: 12px;
  }

  .filter-btn-mini svg {
    display: none;
  }

  .factcheck-input-wrapper-header {
    flex-direction: column;
    gap: 8px;
  }

  .factcheck-submit-btn-header {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .factcheck-input-icon-header {
    top: 33%;
  }
}

/* ========================================
   EMAIL GATE - SUBSCRIPTION PLANS
   ======================================== */

.factcheck-email-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
}

.email-gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.email-gate-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1200px;
  max-height: 95vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.email-gate-content {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  position: relative;
}

.s-dark .email-gate-content {
  background: #2d3748;
}

.email-gate-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
  z-index: 10;
}

.email-gate-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
  color: #1f2937;
}

.s-dark .email-gate-close {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
}

.s-dark .email-gate-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

.email-gate-header {
  text-align: center;
  margin-bottom: 40px;
}

.email-gate-icon svg {
  color: #acd2bf;
  margin-bottom: 20px;
}

.email-gate-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1f2937;
}

.s-dark .email-gate-header h2 {
  color: #f9fafb;
}

.email-gate-header p {
  color: #6b7280;
  font-size: 18px;
  line-height: 1.6;
}

.s-dark .email-gate-header p {
  color: #9ca3af;
}

/* Subscription Plans */
.subscription-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.plan-card {
  background: #f9fafb;
  border: 3px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.plan-card.active {
  border-color: #acd2bf;
  background: rgba(172, 210, 191, 0.05);
}

.s-dark .plan-card {
  background: #1a202c;
  border-color: #4b5563;
}

.s-dark .plan-card.active {
  border-color: #acd2bf;
  background: rgba(172, 210, 191, 0.1);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: #3b82f6;
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge.recommended {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.plan-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.s-dark .plan-header h3 {
  color: #f9fafb;
}

.plan-price {
  margin-bottom: 24px;
}

.plan-price .price {
  font-size: 48px;
  font-weight: 800;
  color: #acd2bf;
}

.plan-price .period {
  font-size: 18px;
  color: #6b7280;
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 0px;
}

.s-dark .plan-features li {
  color: #d1d5db;
}

.plan-features svg {
  color: #acd2bf;
  flex-shrink: 0;
}

.plan-select-btn {
  width: 100%;
  padding: 5px 0px;
  background: white;
  border: 2px solid #acd2bf;
  color: #acd2bf;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-select-btn:hover {
  background: #acd2bf;
  color: white;
  transform: translateY(-2px);
}

.plan-card.active .plan-select-btn {
  background: #acd2bf;
  color: white;
}

.pro-plan .plan-select-btn {
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border: none;
}

/* Plan Forms */
.plan-form {
  display: none;
}

.plan-form.active {
  display: block;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #374151;
  font-size: 14px;
}

.s-dark .form-group label {
  color: #e5e7eb;
}

.form-group label svg {
  color: #9ca3af;
  flex-shrink: 0;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: #acd2bf;
  box-shadow: 0 0 0 3px rgba(172, 210, 191, 0.1);
}

.s-dark .form-group input[type="email"],
.s-dark .form-group input[type="text"] {
  background: #1a202c;
  border-color: #4b5563;
  color: #f9fafb;
}

.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 12px;
  font-weight: 400 !important;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.s-dark .checkbox-text {
  color: #9ca3af;
}

.checkbox-text a {
  color: #acd2bf;
  text-decoration: underline;
  font-weight: 600;
}

.submit-btn {
  width: 100%;
  padding: 10px 0px;
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(172, 210, 191, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn .btn-loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.usage-note {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.s-dark .usage-note {
  color: #9ca3af;
}

.usage-note svg {
  color: #3b82f6;
  flex-shrink: 0;
}

/* Stripe Payment Form */
.stripe-payment-demo {
  background: #f9fafb;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.s-dark .stripe-payment-demo {
  background: #1a202c;
}

.payment-header {
  text-align: center;
  margin-bottom: 24px;
}

.payment-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.s-dark .payment-header h4 {
  color: #f9fafb;
}

.payment-header p {
  font-size: 14px;
  color: #6b7280;
}

.s-dark .payment-header p {
  color: #9ca3af;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-summary {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.s-dark .payment-summary {
  background: #2d3748;
  border-color: #4b5563;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  color: #4b5563;
}

.s-dark .summary-row {
  color: #d1d5db;
}

.summary-row.total {
  border-top: 2px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 16px;
  font-weight: 700;
  font-size: 18px;
  color: #1f2937;
}

.s-dark .summary-row.total {
  border-top-color: #4b5563;
  color: #f9fafb;
}

.billing-note {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 10px;
}

.email-gate-note {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.s-dark .email-gate-note {
  color: #9ca3af;
}

.email-gate-note svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* Trust Section */
.email-gate-trust {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.s-dark .email-gate-trust {
  border-top-color: #4b5563;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badges .badge {
  padding: 8px 16px;
  background: rgba(172, 210, 191, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
}

.s-dark .trust-badges .badge {
  background: rgba(172, 210, 191, 0.15);
  color: #6ee7b7;
}

/* Responsive Email Gate */
@media (max-width: 1024px) {
  .subscription-plans {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .email-gate-content {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .email-gate-modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .email-gate-content {
    padding: 30px 20px;
    border-radius: 0;
  }

  .email-gate-header h2 {
    font-size: 28px;
  }

  .plan-price .price {
    font-size: 36px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/**
 * FIXED: Paywall Overlay Styles (not popup modal)
 * 
 * CHANGES:
 * - Email gate is overlay on top of report (not full-screen popup)
 * - Report shows blurred underneath
 * - More elegant, less intrusive
 * - Better UX
 */

/* ========================================
   PAYWALL OVERLAY (NEW DESIGN)
   ======================================== */

/* Blurred report underneath paywall */
.report-blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* Paywall overlay container */
.factcheck-email-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
  overflow-y: auto;
}

/* Semi-transparent backdrop */
.email-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

/* Centered paywall card */
.email-gate-modal {
  position: relative;
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
  animation: slideUp 0.4s ease;
  z-index: 1;
}

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

.email-gate-content {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.s-dark .email-gate-content {
  background: #2d3748;
}

/* Close button (optional - can remove if you want mandatory gate) */
.email-gate-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0.6;
}

.email-gate-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
  color: #1f2937;
}

.s-dark .email-gate-close {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
}

.s-dark .email-gate-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

/* Header */
.email-gate-header {
  text-align: center;
  margin-bottom: 40px;
}

.email-gate-icon svg {
  color: #acd2bf;
  margin-bottom: 20px;
}

.email-gate-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1f2937;
}

.s-dark .email-gate-header h2 {
  color: #f9fafb;
}

.email-gate-header p {
  color: #6b7280;
  font-size: 18px;
  line-height: 1.6;
}

.s-dark .email-gate-header p {
  color: #9ca3af;
}

/* Subscription Plans */
.subscription-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.plan-card {
  background: #f9fafb;
  border: 3px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.plan-card.active {
  border-color: #acd2bf;
  background: rgba(172, 210, 191, 0.05);
}

.s-dark .plan-card {
  background: #1a202c;
  border-color: #4b5563;
}

.s-dark .plan-card.active {
  border-color: #acd2bf;
  background: rgba(172, 210, 191, 0.1);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: #3b82f6;
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge.recommended {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.plan-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.s-dark .plan-header h3 {
  color: #f9fafb;
}

.plan-price {
  margin-bottom: 24px;
}

.plan-price .price {
  font-size: 48px;
  font-weight: 800;
  color: #acd2bf;
}

.plan-price .period {
  font-size: 18px;
  color: #6b7280;
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 0;
}

.s-dark .plan-features li {
  color: #d1d5db;
}

.plan-features svg {
  color: #acd2bf;
  flex-shrink: 0;
}

.plan-select-btn {
  width: 100%;
  padding: 14px 0;
  background: white;
  border: 2px solid #acd2bf;
  color: #acd2bf;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-select-btn:hover {
  background: #acd2bf;
  color: white;
  transform: translateY(-2px);
}

.plan-card.active .plan-select-btn {
  background: #acd2bf;
  color: white;
}

.pro-plan .plan-select-btn {
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border: none;
}

/* Plan Forms */
.plan-form {
  display: none;
}

.plan-form.active {
  display: block;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #374151;
  font-size: 14px;
}

.s-dark .form-group label {
  color: #e5e7eb;
}

.form-group label svg {
  color: #9ca3af;
  flex-shrink: 0;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: #acd2bf;
  box-shadow: 0 0 0 3px rgba(172, 210, 191, 0.1);
}

.s-dark .form-group input[type="email"],
.s-dark .form-group input[type="text"] {
  background: #1a202c;
  border-color: #4b5563;
  color: #f9fafb;
}

.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 12px;
  font-weight: 400 !important;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.s-dark .checkbox-text {
  color: #9ca3af;
}

.checkbox-text a {
  color: #acd2bf;
  text-decoration: underline;
  font-weight: 600;
}

.submit-btn {
  width: 100%;
  padding: 16px 0;
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(172, 210, 191, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn .btn-loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.usage-note {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.s-dark .usage-note {
  color: #9ca3af;
}

.usage-note svg {
  color: #3b82f6;
  flex-shrink: 0;
}

/* Stripe Payment Form */
.stripe-payment-demo {
  background: #f9fafb;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.s-dark .stripe-payment-demo {
  background: #1a202c;
}

.payment-header {
  text-align: center;
  margin-bottom: 24px;
}

.payment-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.s-dark .payment-header h4 {
  color: #f9fafb;
}

.payment-header p {
  font-size: 14px;
  color: #6b7280;
}

.s-dark .payment-header p {
  color: #9ca3af;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-summary {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.s-dark .payment-summary {
  background: #2d3748;
  border-color: #4b5563;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  color: #4b5563;
}

.s-dark .summary-row {
  color: #d1d5db;
}

.summary-row.total {
  border-top: 2px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 16px;
  font-weight: 700;
  font-size: 18px;
  color: #1f2937;
}

.s-dark .summary-row.total {
  border-top-color: #4b5563;
  color: #f9fafb;
}

.billing-note {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 10px;
}

.email-gate-note {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.s-dark .email-gate-note {
  color: #9ca3af;
}

.email-gate-note svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* Trust Section */
.email-gate-trust {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.s-dark .email-gate-trust {
  border-top-color: #4b5563;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badges .badge {
  padding: 8px 16px;
  background: rgba(172, 210, 191, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
}

.s-dark .trust-badges .badge {
  background: rgba(172, 210, 191, 0.15);
  color: #6ee7b7;
}

/* Responsive Paywall */
@media (max-width: 1024px) {
  .subscription-plans {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .email-gate-content {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .email-gate-modal {
    margin: 20px auto;
    padding: 10px;
  }

  .email-gate-content {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .email-gate-header h2 {
    font-size: 28px;
  }

  .plan-price .price {
    font-size: 36px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   REST OF ORIGINAL STYLES (keep as is)
   ======================================== */

/* ... (all your existing factcheck.css styles for search, results, etc.) ... */

/* Add this to ensure report is visible but blurred */
.factcheck-results-wrapper {
  position: relative;
}

/* Ensure loading and report sections work correctly */
.factcheck-loading,
.factcheck-report {
  transition: opacity 0.3s ease;
}

/* Note indicator when paywall is active */
.report-blurred::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  padding: 24px;
  background: rgba(172, 210, 191, 0.95);
  color: white;
  text-align: center;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  z-index: 999998;
  pointer-events: none;
}

/* ========================================
   SEARCH INTERFACE
   ======================================== */

.factcheck-search-wrapper {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.factcheck-search-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.factcheck-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #2d3748 0%, #acd2bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.factcheck-subtitle {
  font-size: 18px;
  text-align: center;
  color: #718096;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Light/Dark Mode Support */
.s-light .factcheck-title {
  background: linear-gradient(135deg, #1a202c 0%, #2d8b6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s-dark .factcheck-subtitle {
  color: #a0aec0;
}

/* Search Box */
.factcheck-search-box {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.s-dark .factcheck-search-box {
  background: #2d3748;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Filters */
.factcheck-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #e5e5e5;
  background: white;
  color: #4a5568;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  border-color: #acd2bf;
  background: #f7fafc;
  color: #222a36;
}

.filter-btn.active {
  background: #acd2bf;
  color: white;
  border-color: #acd2bf;
}

.s-dark .filter-btn {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

.s-dark .filter-btn:hover {
  border-color: #acd2bf;
  background: #374151;
}

.s-dark .filter-btn.active {
  background: #acd2bf;
  color: #1a202c;
}

/* Input Wrapper */
.factcheck-input-wrapper {
  position: relative;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.factcheck-input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  pointer-events: none;
}

.factcheck-input {
  flex: 1;
  padding: 18px 20px 18px 56px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  color: #2d3748;
}

.factcheck-input:focus {
  outline: none;
  border-color: #acd2bf;
  box-shadow: 0 0 0 3px rgba(172, 210, 191, 0.1);
}

.s-dark .factcheck-input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

.s-dark .factcheck-input::placeholder {
  color: #718096;
}

.factcheck-submit-btn {
  padding: 0 32px;
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.factcheck-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(172, 210, 191, 0.4);
}

.factcheck-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.factcheck-submit-btn.loading .btn-icon {
  display: none;
}

.factcheck-submit-btn .btn-loading {
  display: none;
  animation: spin 1s linear infinite;
}

.factcheck-submit-btn.loading .btn-loading {
  display: block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Examples */
.factcheck-examples {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.examples-label {
  color: #718096;
  font-weight: 600;
}

.example-btn {
  padding: 6px 14px;
  background: #f7fafc;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #4a5568;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.example-btn:hover {
  background: #acd2bf;
  color: white;
  border-color: #acd2bf;
}

.s-dark .example-btn {
  background: #1a202c;
  border-color: #4a5568;
  color: #a0aec0;
}

/* Features */
.factcheck-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f7fafc;
  border-radius: 12px;
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
}

.feature-item svg {
  flex-shrink: 0;
  color: #acd2bf;
}

.s-dark .feature-item {
  background: #1a202c;
  color: #e2e8f0;
}

/* ========================================
   RESULTS PAGE
   ======================================== */

.factcheck-results-wrapper {
  min-height: 100vh;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

/* Loading State */
.factcheck-loading {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.s-dark .factcheck-loading {
  background: #2d3748;
}

.loading-spinner {
  margin-bottom: 24px;
}

.loading-spinner svg {
  color: #acd2bf;
  animation: spin 1s linear infinite;
}

.factcheck-loading h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #2d3748;
}

.s-dark .factcheck-loading h3 {
  color: #e2e8f0;
}

.loading-step {
  color: #718096;
  margin-bottom: 24px;
}

.loading-progress {
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}

.s-dark .loading-progress {
  background: #4a5568;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #acd2bf 0%, #8fc4a8 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0;
}

/* Email Gate Modal */
.factcheck-email-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
}

.email-gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.email-gate-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.email-gate-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.s-dark .email-gate-content {
  background: #2d3748;
}

.email-gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
}

.email-gate-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1f2937;
}

.s-dark .email-gate-close {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
}

.s-dark .email-gate-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

.email-gate-header {
  text-align: center;
  margin-bottom: 32px;
}

.email-gate-icon {
  margin-bottom: 16px;
}

.email-gate-icon svg {
  color: #acd2bf;
}

.email-gate-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f2937;
}

.s-dark .email-gate-header h2 {
  color: #f9fafb;
}

.email-gate-header p {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
}

.s-dark .email-gate-header p {
  color: #9ca3af;
}

.email-gate-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.s-dark .email-gate-features {
  background: #1a202c;
}

.email-gate-features .feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}

.s-dark .email-gate-features .feature {
  color: #d1d5db;
}

.email-gate-features .feature svg {
  color: #acd2bf;
  flex-shrink: 0;
}

.email-gate-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

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

.email-gate-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
}

.s-dark .email-gate-form label {
  color: #e5e7eb;
}

.email-gate-form label svg {
  color: #9ca3af;
  flex-shrink: 0;
}

.email-gate-form input[type="email"],
.email-gate-form input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: white;
}

.email-gate-form input:focus {
  outline: none;
  border-color: #acd2bf;
  box-shadow: 0 0 0 3px rgba(172, 210, 191, 0.1);
}

.s-dark .email-gate-form input[type="email"],
.s-dark .email-gate-form input[type="text"] {
  background: #1a202c;
  border-color: #4b5563;
  color: #f9fafb;
}

.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 12px;
  font-weight: 400 !important;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.s-dark .checkbox-text {
  color: #9ca3af;
}

.checkbox-text a {
  color: #acd2bf;
  text-decoration: underline;
  font-weight: 500;
}

.checkbox-text a:hover {
  color: #8fc4a8;
}

.email-gate-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.email-gate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(172, 210, 191, 0.4);
}

.email-gate-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.email-gate-submit .btn-loading {
  animation: spin 1s linear infinite;
}

.email-gate-note {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.s-dark .email-gate-note {
  color: #9ca3af;
}

.email-gate-note svg {
  color: #22c55e;
  flex-shrink: 0;
}

.email-gate-trust {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.s-dark .email-gate-trust {
  border-top-color: #4b5563;
}

.email-gate-trust p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.s-dark .email-gate-trust p {
  color: #9ca3af;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badges .badge {
  padding: 6px 12px;
  background: rgba(172, 210, 191, 0.1);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #059669;
}

.s-dark .trust-badges .badge {
  background: rgba(172, 210, 191, 0.15);
  color: #6ee7b7;
}

/* Responsive Email Gate */
@media (max-width: 768px) {
  .email-gate-content {
    padding: 30px 20px;
  }

  .email-gate-header h2 {
    font-size: 24px;
  }

  .email-gate-features {
    grid-template-columns: 1fr;
  }

  .email-gate-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Report Display */
.factcheck-report {
  max-width: 1200px;
  margin: 0 auto;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  gap: 16px;
}

.s-dark .report-header {
  background: #2d3748;
}

.report-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #718096;
  flex-wrap: wrap;
}

.report-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.export-btn,
.share-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #e5e5e5;
  color: #4a5568;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-btn:hover,
.share-btn:hover {
  border-color: #acd2bf;
  background: #f7fafc;
}

.s-dark .export-btn,
.s-dark .share-btn {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

/* Score Card */
.report-score-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
}

.s-dark .report-score-card {
  background: #2d3748;
}

.score-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-circle {
  position: relative;
  width: 200px;
  height: 200px;
}

.score-ring circle {
  transition: stroke-dashoffset 1.5s ease;
}

.score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number span:first-child {
  display: block;
  font-size: 56px;
  font-weight: 800;
  color: #acd2bf;
  line-height: 1;
}

.score-label {
  display: block;
  font-size: 12px;
  color: #718096;
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-details h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2d3748;
}

.s-dark .score-details h2 {
  color: #e2e8f0;
}

.analyzed-content {
  color: #718096;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.score-breakdown {
  display: grid;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f7fafc;
  border-radius: 8px;
  font-size: 14px;
  color: #4a5568;
}

.breakdown-item svg {
  color: #acd2bf;
  flex-shrink: 0;
}

.s-dark .breakdown-item {
  background: #1a202c;
  color: #e2e8f0;
}

/* Report Sections */
.report-section {
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.s-dark .report-section {
  background: #2d3748;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title svg {
  color: #acd2bf;
}

.s-dark .section-title {
  color: #e2e8f0;
}

/* Claims List */
.claims-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.claim-card {
  padding: 24px;
  background: #f7fafc;
  border-radius: 12px;
  border-left: 4px solid #acd2bf;
  transition: all 0.3s ease;
}

.claim-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.s-dark .claim-card {
  background: #1a202c;
}

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

.claim-number {
  font-size: 12px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.claim-rating {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.rating-true {
  background: #e6ffed;
  color: #22543d;
}

.rating-false {
  background: #fee;
  color: #c53030;
}

.rating-mixture {
  background: #fff9e6;
  color: #744210;
}

.rating-unknown {
  background: #e5e5e5;
  color: #718096;
}

.s-dark .rating-true {
  background: rgba(72, 187, 120, 0.2);
  color: #9ae6b4;
}

.s-dark .rating-false {
  background: rgba(245, 101, 101, 0.2);
  color: #fc8181;
}

.s-dark .rating-mixture {
  background: rgba(237, 137, 54, 0.2);
  color: #fbd38d;
}

.claim-text {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  line-height: 1.6;
}

.s-dark .claim-text {
  color: #e2e8f0;
}

.claim-explanation {
  font-size: 14px;
  color: #718096;
  line-height: 1.7;
  margin-bottom: 12px;
}

.claim-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #a0aec0;
  margin-top: 15px;
}

.claim-type {
  padding: 4px 8px;
  background: rgba(172, 210, 191, 0.1);
  border-radius: 6px;
  text-transform: capitalize;
}

/* Sources List */
.sources-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.source-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f7fafc;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.source-card:hover {
  background: #e6ffed;
}

.s-dark .source-card {
  background: #1a202c;
}

.s-dark .source-card:hover {
  background: rgba(172, 210, 191, 0.1);
}

.source-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  color: #acd2bf;
}

.s-dark .source-icon {
  background: #2d3748;
}

.source-content {
  flex: 1;
  min-width: 0;
}

.source-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
  font-size: 14px;
}

.s-dark .source-name {
  color: #e2e8f0;
}

.source-url {
  font-size: 13px;
  color: #36604b;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-url:hover {
  text-decoration: underline;
}

/* Methodology */
.methodology-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.method-step {
  display: flex;
  gap: 16px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #acd2bf 0%, #8fc4a8 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3748;
  margin-top: 5px !important;
}

.s-dark .step-content h4 {
  color: #e2e8f0;
}

.step-content p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
}

/* No Data */
.no-data {
  text-align: center;
  padding: 40px;
  color: #a0aec0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .factcheck-title {
    font-size: 32px;
  }

  .factcheck-subtitle {
    font-size: 16px;
  }

  .factcheck-search-box {
    padding: 24px;
  }

  .factcheck-filters {
    justify-content: flex-start;
  }

  .filter-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  .factcheck-input-wrapper {
    flex-direction: column;
  }

  .factcheck-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .report-score-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .report-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .methodology-steps {
    grid-template-columns: 1fr;
  }

  .sources-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   PROPAGANDA WARNING
   ======================================== */

.propaganda-warning {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.s-dark .propaganda-warning {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(220, 38, 38, 0.3) 100%
  );
  border-color: #dc2626;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.warning-header svg {
  color: #dc2626;
  flex-shrink: 0;
}

.warning-header h3 {
  color: #991b1b;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.s-dark .warning-header h3 {
  color: #fca5a5;
}

.propaganda-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.propaganda-list li {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  color: #7f1d1d;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-dark .propaganda-list li {
  background: rgba(0, 0, 0, 0.3);
  color: #fca5a5;
}

.propaganda-list li::before {
  content: "⚠️";
  font-size: 16px;
}

/* ========================================
   CLAIMS FILTER
   ======================================== */

.section-header-with-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.claims-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4b5563;
}

.filter-chip:hover {
  background: #e5e7eb;
  color: #161616;
}

.filter-chip.active {
  background: #acd2bf;
  color: white;
  border-color: #8fc4a8;
}

.s-dark .filter-chip {
  background: #374151;
  color: #d1d5db;
}

.s-dark .filter-chip:hover {
  background: #4b5563;
}

.s-dark .filter-chip.active {
  background: #acd2bf;
  color: #1a202c;
}

/* ========================================
   ENHANCED CLAIM CARDS
   ======================================== */

.claim-card {
  position: relative;
}

.claim-card.hidden {
  display: none;
}

.claim-method {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(172, 210, 191, 0.15);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  text-transform: uppercase;
}

.s-dark .claim-method {
  background: rgba(172, 210, 191, 0.2);
  color: #6ee7b7;
}

.claim-confidence {
  font-size: 12px;
  color: #9ca3af;
}

.claim-evidence {
  margin-top: 12px;
  padding: 12px;
  background: rgba(172, 210, 191, 0.1);
  border-radius: 8px;
  font-size: 13px;
}

.s-dark .claim-evidence {
  background: rgba(172, 210, 191, 0.15);
}

.evidence-section {
  margin-bottom: 12px;
}

.evidence-section:last-child {
  margin-bottom: 0;
}

.evidence-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s-dark .evidence-title {
  color: #d1d5db;
}

.evidence-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.evidence-list li {
  padding: 4px 0 4px 16px;
  position: relative;
  color: #6b7280;
  line-height: 1.5;
}

.s-dark .evidence-list li {
  color: #9ca3af;
}

.evidence-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #acd2bf;
  font-weight: bold;
}

.red-flags-section {
  margin-top: 12px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
}

.s-dark .red-flags-section {
  background: rgba(239, 68, 68, 0.15);
}

.red-flags-title {
  font-weight: 700;
  color: #dc2626;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.s-dark .red-flags-title {
  color: #fca5a5;
}

.red-flags-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.red-flags-list li {
  padding: 4px 0 4px 16px;
  position: relative;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.5;
}

.s-dark .red-flags-list li {
  color: #fca5a5;
}

.red-flags-list li::before {
  content: "⚠";
  position: absolute;
  left: 0;
}

/* ========================================
   LOADING PROGRESS UPDATES
   ======================================== */

.loading-step {
  font-size: 15px;
  font-weight: 500;
}

/* ========================================
   RESPONSIVE UPDATES
   ======================================== */

@media (max-width: 768px) {
  .section-header-with-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .claims-filter {
    width: 100%;
    justify-content: flex-start;
  }

  .filter-chip {
    flex: 0 0 auto;
  }
}

/* Add this to ensure report is visible but blurred */
.factcheck-results-wrapper {
  position: relative;
}

/* Ensure loading and report sections work correctly */
.factcheck-loading,
.factcheck-report {
  transition: opacity 0.3s ease;
}

/* Note indicator when paywall is active */
.report-blurred::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  padding: 24px;
  background: rgba(172, 210, 191, 0.95);
  color: white;
  text-align: center;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  z-index: 999998;
  pointer-events: none;
}
