/* Copy ALL the CSS from your current style tag here */
:root {
  --primary: #970747;
  --primary-light: #b30954;
  --primary-dark: #7a0639;
  --secondary: #6b8cbc;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
  --gray: #6c757d;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.features-section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(151, 7, 71, 0.15);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.feature-icon {
  margin-right: 10px;
  font-size: 1.5rem;
}

.input-section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.input-group {
  display: flex;
  margin-bottom: 20px;
}

input[type="url"] {
  flex: 1;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
}

button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: var(--primary-light);
}

.results-section {
  display: none;
  margin-top: 30px;
}

.score-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  text-align: center;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  background: conic-gradient(
    var(--success) 0% 70%,
    var(--warning) 70% 85%,
    var(--danger) 85% 100%
  );
}

.score-text {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab {
  padding: 10px 20px;
  background: var(--light);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab.active {
  background: var(--primary);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.result-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.result-card h3 {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.result-card h3 i {
  margin-right: 10px;
  font-size: 1.5rem;
}

.status-good {
  color: var(--success);
}

.status-warning {
  color: var(--warning);
}

.status-bad {
  color: var(--danger);
}

.issues-list {
  list-style-type: none;
}

.issues-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.issues-list li:last-child {
  border-bottom: none;
}

.issue-icon {
  margin-right: 10px;
  font-weight: bold;
}

.recommendations {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recommendations h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.recommendation-item {
  padding: 15px;
  margin-bottom: 15px;
  background-color: var(--light);
  border-left: 4px solid var(--primary);
  border-radius: 0 5px 5px 0;
}

.loading {
  display: none;
  text-align: center;
  padding: 30px;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.metric-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px 0;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--gray);
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
}

.progress-good {
  background: var(--success);
}

.progress-warning {
  background: var(--warning);
}

.progress-bad {
  background: var(--danger);
}

footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Paywall Styles */
.paywall-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.paywall-modal {
  background-color: white;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.paywall-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 25px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.paywall-header h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.paywall-body {
  padding: 25px;
}

.email-input-section {
  margin-bottom: 20px;
}

.email-input-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.email-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(151, 7, 71, 0.2);
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.pricing-plan {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-plan.featured {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(151, 7, 71, 0.2);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.plan-name {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.plan-price {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 15px 0;
  color: var(--dark);
}

.plan-price span {
  font-size: 1rem;
  color: var(--gray);
}

.plan-features {
  list-style: none;
  margin: 15px 0;
  text-align: left;
  flex-grow: 1;
}

.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.plan-features li:last-child {
  border-bottom: none;
}

.feature-check {
  color: var(--success);
  margin-right: 10px;
  font-weight: bold;
  min-width: 20px;
}

.paywall-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.free-analysis-count {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--gray);
}

.testimonial-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.testimonial {
  font-style: italic;
  text-align: center;
  margin-bottom: 10px;
}

.testimonial-author {
  text-align: center;
  font-weight: bold;
  color: var(--primary);
}

/* Performance Card Fixes - Add vertical constraints */
.dial-container {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dial {
  max-width: 100%;
  max-height: 100%;
}

.dial-face {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Animation fixes for mobile */
@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* General mobile fixes */
  .container {
    padding: 0 1rem;
  }

  section,
  .section {
    padding: 2rem 0;
  }

  /* Header adjustments */
  header {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  /* Input section */
  .input-group {
    flex-direction: column;
  }

  input[type="url"] {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  button {
    border-radius: 5px;
    padding: 15px;
  }

  /* Features section */
  .features-section {
    padding: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Performance Dials - Critical Fix */
  .dial-container {
    min-height: 250px;
    margin: 10px 0;
  }

  .dial {
    width: 180px !important;
    height: 180px !important;
  }

  .dial-face {
    min-height: 180px;
    padding: 1rem !important;
  }

  /* Score card */
  .score-card {
    padding: 20px;
  }

  .score-circle {
    width: 120px;
    height: 120px;
    font-size: 2rem;
  }

  /* Results grid */
  .results-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .result-card {
    padding: 15px;
  }

  /* Category tabs */
  .category-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .tab {
    padding: 12px;
    text-align: center;
  }

  /* Metrics grid */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-card {
    padding: 12px;
  }

  .metric-value {
    font-size: 1.3rem;
  }

  /* Paywall modal */
  .paywall-modal {
    width: 95%;
    max-height: 95vh;
  }

  .paywall-body {
    padding: 20px;
  }

  .paywall-header {
    padding: 20px;
  }

  .paywall-header h2 {
    font-size: 1.6rem;
  }

  .pricing-plans {
    grid-template-columns: 1fr;
  }

  .pricing-plan.featured {
    transform: none;
  }

  .paywall-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  .pricing-plan {
    padding: 15px;
  }

  .plan-price {
    font-size: 1.8rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 15px;
  }

  /* Performance Dials - Extra Small Screens */
  .dial-container {
    min-height: 220px;
  }

  .dial {
    width: 150px !important;
    height: 150px !important;
  }

  .dial-face {
    min-height: 150px;
    padding: 0.75rem !important;
  }

  /* Adjust font sizes for very small screens */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Reduce padding */
  .features-section,
  .input-section {
    padding: 20px 15px;
  }

  /* Smaller score circle */
  .score-circle {
    width: 100px;
    height: 100px;
    font-size: 1.75rem;
  }

  /* Compact tab layout */
  .category-tabs {
    padding: 10px;
  }

  .tab {
    padding: 10px;
    font-size: 0.9rem;
  }
}
