/* SAR Portal - Shared Stylesheet */

/* Theme variables */
:root {
  --bg: #ffffff;
  --bg-muted: #f8f9fc;
  --text: #1e293b;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --primary: #667eea;
  --secondary: #764ba2;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 10px 40px rgba(102, 126, 234, 0.12);
  --shadow-lg: 0 20px 60px rgba(102, 126, 234, 0.18);
  --radius: 16px;
}
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-muted: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --card: #1e293b;
  --border: rgba(255,255,255,.1);
  --shadow: 0 12px 40px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
}
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}
.theme-toggle:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 20px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}
.h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
}

/* Trust Indicators */
.trust-bar {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Features Grid */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-text {
  color: var(--muted);
  line-height: 1.6;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.pricing-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  transition: all 0.3s;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.pricing-tier {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.pricing-interval {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  margin: 24px 0;
}
.pricing-features li {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pricing-features li:before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

/* Registration Form */
.registration-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-select.highlight {
  animation: highlightPulse 1s ease-in-out;
  border-color: var(--primary);
}
@keyframes highlightPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0); }
  50% { box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.3); }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.form-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
}
.form-success {
  color: #10b981;
  font-size: 14px;
  margin-top: 8px;
}

/* Celebration Effect */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.celebration-overlay.active {
  opacity: 1;
}
.celebration-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 60px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
  text-align: center;
  z-index: 10000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.celebration-message.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.celebration-message h2 {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}
.celebration-message p {
  font-size: 18px;
  opacity: 0.95;
  line-height: 1.6;
}
.celebration-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  animation: checkmarkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
  transform: scale(0);
}
@keyframes checkmarkPop {
  0% { transform: scale(0) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #667eea;
  animation: confettiFall 3s linear forwards;
}
@keyframes confettiFall {
  0% {
    transform: translateY(0) rotateZ(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotateZ(720deg);
    opacity: 0;
  }
}

.trial-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 32px;
}

/* Footer */
.footer {
  background: var(--bg-muted);
  padding: 60px 0 40px;
  margin-top: 80px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-section h4 {
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--muted);
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  -webkit-transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  -webkit-transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  -webkit-transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive - Tablet and Mobile */
@media screen and (max-width: 968px) {
  .nav-toggle {
    display: flex !important;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    /* iOS-compatible hide/show */
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
  }
  .nav-links.active {
    visibility: visible;
    opacity: 1;
    max-height: 500px;
    overflow: visible;
  }
  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    display: block;
  }
  .nav-links a:hover,
  .nav-links a:active {
    background: var(--bg-muted);
  }

  .nav-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .logo-img { height: 50px; }

  .hero { padding: 50px 0 40px; }
  .h1 { font-size: clamp(28px, 6vw, 42px); }
  .hero-subtitle { font-size: 16px; padding: 0 16px; }

  .section { padding: 50px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(24px, 5vw, 36px); }
  .section-subtitle { font-size: 16px; padding: 0 16px; }

  .trust-items {
    gap: 16px 24px;
    justify-content: center;
  }
  .trust-item {
    font-size: 13px;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card { padding: 28px 24px; }
  .pricing-price { font-size: 36px; }

  .registration-form {
    padding: 28px 20px;
    margin: 0 16px;
  }
  .form-row { grid-template-columns: 1fr; }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cta-buttons {
    flex-direction: column;
    padding: 0 16px;
  }
  .btn {
    width: 100%;
    padding: 14px 24px;
  }

  /* Celebration message mobile */
  .celebration-message {
    padding: 28px 24px;
    margin: 0 20px;
    max-width: calc(100vw - 40px);
  }
  .celebration-message h2 { font-size: 24px; }
  .celebration-message p { font-size: 15px; }
  .celebration-checkmark { width: 60px; height: 60px; font-size: 36px; }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .logo-img { height: 45px; }
  .logo-text { font-size: 1.1rem; }

  .hero { padding: 40px 0 30px; }
  .hero-badge { font-size: 12px; padding: 6px 12px; }
  .h1 { font-size: clamp(24px, 7vw, 32px); margin-bottom: 16px; }
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .trust-bar { padding: 24px 0; }
  .trust-bar p { font-size: 13px; line-height: 1.5; }
  .trust-items {
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }
  .trust-item {
    background: var(--bg-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
  }

  .section { padding: 40px 0; }
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 15px; }

  .feature-card { padding: 24px 20px; }
  .feature-icon { width: 40px; height: 40px; font-size: 20px; }
  .feature-title { font-size: 17px; }
  .feature-text { font-size: 14px; }

  .pricing-card { padding: 24px 20px; }
  .pricing-tier { font-size: 20px; }
  .pricing-price { font-size: 32px; }
  .pricing-features li { font-size: 14px; padding: 10px 0; }

  .registration-form {
    padding: 24px 16px;
    border-radius: 12px;
  }
  .form-label { font-size: 14px; }
  .form-input, .form-select {
    padding: 10px 14px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .footer { padding: 40px 0 30px; margin-top: 40px; }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }
  .footer-links li { margin: 0; }
  .footer-bottom { font-size: 13px; padding-top: 20px; }

  /* Inline grid sections on mobile */
  [style*="grid-template-columns: repeat(auto-fit"] {
    display: block !important;
  }
  [style*="display: grid"][style*="gap:"] > div {
    margin-bottom: 16px;
  }

  /* Fix inline flex items */
  [style*="display: flex"][style*="gap: 40px"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .logo-img { height: 40px; }
  .h1 { font-size: 22px; }
  .hero-subtitle { font-size: 14px; }
  .btn { font-size: 14px; padding: 12px 20px; }
  .section-title { font-size: 20px; }
  .pricing-price { font-size: 28px; }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .theme-toggle { min-width: 44px; min-height: 44px; }
  .form-input, .form-select { min-height: 48px; }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 30px 0 20px; }
  .section { padding: 30px 0; }
  .celebration-message { padding: 20px; }
  .celebration-checkmark { width: 50px; height: 50px; }
}

/* Loading State */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ROI Calculator Styles */
.preset-btn {
  padding: 12px 16px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.roi-calculator-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-top: 48px;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.roi-input-group {
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.roi-input-group:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.roi-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.roi-label-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.roi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #e2e8f0 0%, #667eea 50%, #764ba2 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  transition: all 0.2s ease;
}

.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.roi-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  transition: all 0.2s ease;
}

.roi-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.roi-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.roi-results {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.roi-results-header h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-results-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.roi-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.roi-metric-card {
  background: var(--bg-muted);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.roi-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.roi-metric-card.highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border: 2px solid var(--primary);
}

.roi-metric-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.roi-metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.roi-metric-card.highlight .roi-metric-value {
  font-size: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-metric-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.roi-recommendation {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  margin: 24px 0;
}

.roi-recommendation-icon {
  font-size: 2.5rem;
}

.roi-recommendation-content {
  flex: 1;
}

.roi-recommendation-content strong {
  color: var(--text);
  font-size: 1.05rem;
}

.roi-recommendation-content span {
  color: var(--primary);
  font-weight: 600;
}

.roi-recommendation-content p {
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.roi-breakdown {
  background: var(--bg-muted);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.roi-breakdown h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.roi-breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.roi-breakdown-item:last-child {
  border-bottom: none;
}

.roi-breakdown-item.roi-breakdown-savings {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--primary);
  font-size: 1.05rem;
}

.roi-breakdown-value {
  font-weight: 600;
  color: var(--text);
}

.roi-breakdown-savings .roi-breakdown-value {
  color: var(--primary);
}

.roi-footnote {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-muted);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

.roi-footnote p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

@media (max-width: 968px) {
  .roi-calculator-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .roi-metric-card.highlight {
    grid-column: 1;
  }

  .roi-recommendation {
    flex-direction: column;
    text-align: center;
  }
}

/* Dark theme colors for special sections */
:root {
  --error-bg: #fff5f5;
  --error-bg-light: #ffe0e0;
  --error-border: #f44336;
  --error-text: #d32f2f;
  --error-text-dark: #c62828;
  --error-card-bg: #ffebee;

  --success-bg: #f1f8f4;
  --success-bg-light: #e8f5e9;
  --success-border: #4caf50;
  --success-text: #2e7d32;

  --info-bg: #e3f2fd;
  --info-bg-light: #bbdefb;
  --info-border: #1976d2;
  --info-text: #1565c0;
  --info-text-dark: #0d47a1;

  --warning-bg: #fff9c4;
  --warning-border: #ffc107;
  --warning-text: #856404;

  --card-white: #ffffff;
  --text-primary: #424242;
  --text-secondary: #666;
}

[data-theme="dark"] {
  --error-bg: #2d1517;
  --error-bg-light: #3d1f21;
  --error-border: #ef5350;
  --error-text: #ef5350;
  --error-text-dark: #f44336;
  --error-card-bg: #3d1f21;

  --success-bg: #1a2e1f;
  --success-bg-light: #243a29;
  --success-border: #66bb6a;
  --success-text: #66bb6a;

  --info-bg: #1a2332;
  --info-bg-light: #243447;
  --info-border: #42a5f5;
  --info-text: #42a5f5;
  --info-text-dark: #64b5f6;

  --warning-bg: #332d1a;
  --warning-border: #ffca28;
  --warning-text: #ffca28;

  --card-white: var(--card);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
}

.section-error {
  background: linear-gradient(135deg, var(--error-bg) 0%, var(--error-bg-light) 100%);
  border-top: 3px solid var(--error-border);
  border-bottom: 3px solid var(--error-border);
}

.section-info {
  background: linear-gradient(135deg, var(--info-bg) 0%, var(--info-bg-light) 100%);
}

.comparison-card {
  background: var(--card-white);
  padding: 24px;
  border-radius: 8px;
}

.comparison-card-error {
  border: 2px solid var(--error-border);
}

.comparison-card-success {
  border: 2px solid var(--success-border);
}

.info-card {
  background: var(--card-white);
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid var(--info-border);
}

.alert-box {
  padding: 16px;
  border-radius: 4px;
  border-left: 4px solid;
}

.alert-error {
  background: var(--error-card-bg);
  border-color: var(--error-border);
  color: var(--error-text-dark);
}

.alert-success {
  background: var(--success-bg-light);
  border-color: var(--success-border);
  color: var(--success-text);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.text-error { color: var(--error-text); }
.text-error-dark { color: var(--error-text-dark); }
.text-success { color: var(--success-text); }
.text-info { color: var(--info-text); }
.text-info-dark { color: var(--info-text-dark); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }

/* Pricing Page Specific Styles */
.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.preset-container {
  margin-bottom: 24px;
}
.preset-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* AI Usage Box */
.ai-usage-box {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.ai-usage-title {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  text-align: center;
}
.ai-usage-grid {
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
}
.ai-usage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ai-usage-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* FAQ Styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item-last {
  border-bottom: none;
}
.faq-question {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
}
.faq-answer {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Pricing Page Mobile Styles */
@media (max-width: 1100px) {
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-grid-4 {
    grid-template-columns: 1fr;
  }

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

  .ai-usage-box {
    margin: 24px 0 0;
    padding: 20px 16px;
  }
  .ai-usage-title {
    font-size: 1rem;
  }
  .ai-usage-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .ai-usage-icon {
    font-size: 1.5rem;
  }

  .faq-item {
    padding: 20px 0;
  }
  .faq-question {
    font-size: 1rem;
  }
  .faq-answer {
    font-size: 0.9rem;
  }

  /* ROI Calculator mobile fixes */
  .roi-recommendation {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .roi-recommendation .btn {
    width: 100%;
  }

  .roi-breakdown-item {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .preset-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .roi-metric-value {
    font-size: 1.5rem;
  }
  .roi-metric-card.highlight .roi-metric-value {
    font-size: 2rem;
  }

  .pricing-card {
    padding: 20px 16px;
  }
  .pricing-features li {
    font-size: 0.85rem;
  }
}

/* ========================================
   Sticky Quick Action CTA
   ======================================== */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.sticky-cta-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.sticky-cta-main:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
  opacity: 1;
}

.sticky-cta-main .cta-icon {
  font-size: 1.2rem;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.sticky-cta-secondary {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.sticky-cta:hover .sticky-cta-secondary,
.sticky-cta.expanded .sticky-cta-secondary {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 25px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.sticky-cta-link:hover {
  background: var(--bg-muted);
  border-color: var(--primary);
  transform: translateY(-2px);
  opacity: 1;
}

.sticky-cta-link .link-icon {
  font-size: 1rem;
}

/* Progress indicator on scroll */
.sticky-cta-progress {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  padding: 6px 12px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sticky-cta:hover .sticky-cta-progress,
.sticky-cta.show-progress .sticky-cta-progress {
  opacity: 1;
  transform: translateY(0);
}

/* Hide on very small screens to not obstruct content */
@media (max-width: 380px) {
  .sticky-cta {
    bottom: 16px;
    right: 16px;
  }
  .sticky-cta-main {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
  .sticky-cta-secondary {
    flex-direction: column;
  }
}

/* Hide when registration form is visible (avoid duplication) */
.sticky-cta.hide-on-register {
  display: none;
}

/* Minimize CTA when scrolled to top */
.sticky-cta.minimized .sticky-cta-main {
  padding: 12px;
  border-radius: 50%;
}
.sticky-cta.minimized .sticky-cta-main .cta-text {
  display: none;
}

/* Animation for entrance */
@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sticky-cta {
  animation: slide-up-fade 0.5s ease-out 1s both;
}
