/* ============================================================
   FinClarity Enhancement Stylesheet v2.0
   Complete redesign, animations, layouts, and all new sections
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --fc-primary: #0f766e;
  --fc-primary-light: #14b8a6;
  --fc-primary-dark: #0d6e66;
  --fc-primary-glow: rgba(20, 184, 166, 0.15);
  --fc-secondary: #1e293b;
  --fc-accent: #f59e0b;
  --fc-accent-light: #fbbf24;
  --fc-success: #10b981;
  --fc-danger: #ef4444;
  --fc-warning: #f59e0b;
  --fc-info: #3b82f6;
  --fc-bg: #f8fafc;
  --fc-card-bg: #ffffff;
  --fc-text: #1e293b;
  --fc-text-muted: #64748b;
  --fc-border: #e2e8f0;
  --fc-radius: 12px;
  --fc-radius-lg: 16px;
  --fc-radius-xl: 20px;
  --fc-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --fc-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --fc-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --fc-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --fc-shadow-glow: 0 0 20px rgba(20, 184, 166, 0.15);
  --fc-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --fc-font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ---------- Global Enhancements ---------- */
body {
  font-family: var(--fc-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--fc-primary-light);
  color: white;
}

/* ---------- Top Market Ticker Bar ---------- */
.fc-ticker-bar {
  background: linear-gradient(135deg, var(--fc-secondary) 0%, #0f172a 100%);
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 0;
  overflow: hidden;
  position: relative;
  z-index: 51;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.fc-ticker-content {
  display: flex;
  animation: fc-ticker-scroll 60s linear infinite;
  white-space: nowrap;
  gap: 32px;
}

.fc-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fc-ticker-item .fc-up { color: var(--fc-success); }
.fc-ticker-item .fc-down { color: var(--fc-danger); }
.fc-ticker-label { color: #cbd5e1; font-weight: 500; }

@keyframes fc-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Enhanced Header ---------- */
.fc-header-enhanced {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fc-border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow var(--fc-transition);
}

.fc-header-enhanced.scrolled {
  box-shadow: var(--fc-shadow-md);
}

/* ---------- Breadcrumb Spacing Fix ---------- */
main > .fc-container > nav:first-child,
main .fc-container > nav[style*="font-size:13px"]:first-child {
  padding-top: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  clear: both;
}

/* Prevent hero sections from overlapping breadcrumbs */
.fc-rules-header,
.fc-hero-section {
  margin-top: 0 !important;
}

.fc-nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fc-text-muted);
  border-radius: 8px;
  transition: all var(--fc-transition);
  text-decoration: none;
}

.fc-nav-link:hover {
  color: var(--fc-primary);
  background: var(--fc-primary-glow);
}

.fc-nav-link.active {
  color: var(--fc-primary);
  font-weight: 600;
}

.fc-nav-new-badge {
  display: inline-block;
  background: var(--fc-danger);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: super;
}

/* ---------- Mega Menu ---------- */
.fc-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-lg);
  padding: 24px;
  width: 720px;
  max-width: 95vw;
  display: none;
  z-index: 100;
}

.fc-mega-menu.active { display: block; }

.fc-mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fc-mega-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--fc-text);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--fc-transition);
}

.fc-mega-menu-item:hover {
  background: var(--fc-primary-glow);
  color: var(--fc-primary);
}

.fc-mega-menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--fc-bg);
  flex-shrink: 0;
}

/* ---------- Mobile Menu Overlay ---------- */
.fc-mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 200;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.fc-mobile-menu.open { transform: translateX(0); }

.fc-mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--fc-text);
}

.fc-mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--fc-text);
  border-bottom: 1px solid var(--fc-border);
  text-decoration: none;
}

/* ---------- Hero Section ---------- */
.fc-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 30%, #f0f9ff 70%, #fef3c7 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.fc-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-primary);
  box-shadow: var(--fc-shadow-sm);
  margin-bottom: 20px;
}

.fc-hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fc-success);
  animation: fc-pulse 2s infinite;
}

.fc-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fc-secondary);
  margin-bottom: 16px;
}

.fc-hero h1 .highlight {
  background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fc-hero-subtitle {
  font-size: 18px;
  color: var(--fc-text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ---------- Trust Badges ---------- */
.fc-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.fc-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fc-text-muted);
  font-weight: 500;
}

.fc-trust-badge .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: white;
  box-shadow: var(--fc-shadow-sm);
}

/* ---------- Stats Counter ---------- */
.fc-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 0;
}

.fc-stat {
  text-align: center;
  padding: 16px;
}

.fc-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--fc-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.fc-stat-label {
  font-size: 13px;
  color: var(--fc-text-muted);
  font-weight: 500;
}

/* ---------- Section Styles ---------- */
.fc-section {
  padding: 60px 0;
}

.fc-section-alt {
  background: var(--fc-bg);
}

.fc-section-dark {
  background: linear-gradient(135deg, var(--fc-secondary) 0%, #0f172a 100%);
  color: white;
}

.fc-section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--fc-secondary);
  margin-bottom: 8px;
}

.fc-section-dark .fc-section-title { color: white; }

.fc-section-subtitle {
  font-size: 16px;
  color: var(--fc-text-muted);
  margin-bottom: 32px;
}

.fc-section-dark .fc-section-subtitle { color: #94a3b8; }

/* ---------- Enhanced Cards ---------- */
.fc-card {
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 24px;
  transition: all var(--fc-transition);
  position: relative;
  overflow: hidden;
}

.fc-card:hover {
  border-color: rgba(20,184,166,0.3);
  box-shadow: var(--fc-shadow-md);
  transform: translateY(-2px);
}

.fc-card-featured {
  border-color: var(--fc-primary-light);
  box-shadow: var(--fc-shadow-glow);
}

.fc-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--fc-primary-glow) 0%, rgba(59,130,246,0.08) 100%);
}

.fc-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fc-text);
  margin-bottom: 6px;
}

.fc-card-desc {
  font-size: 13px;
  color: var(--fc-text-muted);
  line-height: 1.5;
}

/* ---------- Calculator Page 2-Column Layout ---------- */
.fc-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .fc-page-grid {
    grid-template-columns: 1fr 320px;
  }
}

.fc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fc-sidebar-card {
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}

.fc-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fc-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Enhanced Calculator Results ---------- */
.fc-result-tabs {
  display: flex;
  gap: 2px;
  background: var(--fc-bg);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
}

.fc-result-tab {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-text-muted);
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--fc-transition);
}

.fc-result-tab.active {
  background: white;
  color: var(--fc-primary);
  box-shadow: var(--fc-shadow-sm);
}

.fc-result-panel { display: none; }
.fc-result-panel.active { display: block; }

/* Chart Container */
.fc-chart-container {
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 20px;
  margin: 16px 0;
}

.fc-chart-canvas {
  width: 100%;
  max-height: 300px;
}

/* Breakdown Table */
.fc-breakdown-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  margin: 16px 0;
}

.fc-breakdown-table thead th {
  background: var(--fc-bg);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--fc-text-muted);
  border-bottom: 2px solid var(--fc-border);
  position: sticky;
  top: 0;
}

.fc-breakdown-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--fc-border);
  color: var(--fc-text);
}

.fc-breakdown-table tbody tr:hover {
  background: var(--fc-primary-glow);
}

.fc-breakdown-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
}

/* Result Interpretation */
.fc-interpretation {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: var(--fc-radius);
  padding: 16px 20px;
  margin: 16px 0;
}

.fc-interpretation-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fc-primary-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-interpretation-text {
  font-size: 14px;
  color: var(--fc-text);
  line-height: 1.6;
}

.fc-pro-tip {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--fc-radius);
  padding: 16px 20px;
  margin: 16px 0;
}

.fc-pro-tip-title {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}

/* ---------- Input Validation ---------- */
.fc-input-valid { border-color: var(--fc-success) !important; }
.fc-input-invalid { border-color: var(--fc-danger) !important; }

.fc-input-feedback {
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.fc-input-feedback.show { display: block; }
.fc-input-feedback.error { color: var(--fc-danger); }
.fc-input-feedback.success { color: var(--fc-success); }

/* Range Slider */
.fc-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--fc-border);
  outline: none;
  margin-top: 8px;
}

.fc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fc-primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* ---------- FAQ Accordion ---------- */
.fc-faq-section {
  margin: 32px 0;
}

.fc-faq-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--fc-secondary);
  margin-bottom: 16px;
}

.fc-faq-item {
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--fc-transition);
}

.fc-faq-item[open] {
  border-color: rgba(20,184,166,0.3);
  box-shadow: var(--fc-shadow-sm);
}

.fc-faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fc-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--fc-transition);
}

.fc-faq-item summary:hover {
  background: var(--fc-bg);
}

.fc-faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--fc-text-muted);
  transition: transform var(--fc-transition);
  flex-shrink: 0;
}

.fc-faq-item[open] summary::after {
  content: '-';
}

.fc-faq-item summary::-webkit-details-marker { display: none; }

.fc-faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--fc-text-muted);
  line-height: 1.7;
}

/* ---------- Related Calculators Grid ---------- */
.fc-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.fc-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  text-decoration: none;
  color: var(--fc-text);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--fc-transition);
}

.fc-related-card:hover {
  border-color: var(--fc-primary-light);
  background: var(--fc-primary-glow);
  color: var(--fc-primary);
  transform: translateY(-1px);
}

.fc-related-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--fc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ---------- Social Share Bar ---------- */
.fc-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--fc-border);
  margin-top: 16px;
}

.fc-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-text-muted);
  margin-right: 4px;
}

.fc-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--fc-border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--fc-transition);
  font-size: 16px;
  color: var(--fc-text-muted);
}

.fc-share-btn:hover {
  background: var(--fc-primary);
  color: white;
  border-color: var(--fc-primary);
}

/* ---------- Ad Containers ---------- */
.fc-ad-container {
  display: none;
  text-align: center;
  margin: 20px auto;
  min-height: 90px;
  background: var(--fc-bg);
  border: 1px dashed var(--fc-border);
  border-radius: var(--fc-radius);
  overflow: hidden;
}

.fc-ad-container.active { display: block; }

.fc-ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd5e1;
  padding: 4px;
}

/* ---------- Affiliate Recommendation Cards ---------- */
.fc-affiliate-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--fc-radius);
  padding: 20px;
  margin: 20px 0;
  position: relative;
}

.fc-affiliate-card::before {
  content: 'Recommended';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--fc-accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.fc-affiliate-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fc-secondary);
  margin-bottom: 8px;
}

.fc-affiliate-desc {
  font-size: 13px;
  color: var(--fc-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.fc-affiliate-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--fc-primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--fc-transition);
}

.fc-affiliate-cta:hover {
  background: var(--fc-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--fc-shadow);
}

.fc-affiliate-disclosure {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
}

/* ---------- Formula Section ---------- */
.fc-formula-section {
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 20px;
  margin: 20px 0;
}

.fc-formula-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fc-secondary);
  margin-bottom: 12px;
}

.fc-formula-box {
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  text-align: center;
  color: var(--fc-primary-dark);
  margin-bottom: 12px;
  overflow-x: auto;
}

.fc-formula-vars {
  font-size: 13px;
  color: var(--fc-text-muted);
  line-height: 1.8;
}

/* ---------- Financial Rules Hub ---------- */
.fc-rules-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 48px 0 32px;
  color: white;
}

.fc-rules-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.fc-rules-subtitle {
  color: #94a3b8;
  font-size: 16px;
}

.fc-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fc-success);
  margin-bottom: 16px;
}

.fc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fc-success);
  animation: fc-pulse 2s infinite;
}

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

/* Country Tabs */
.fc-country-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--fc-bg);
  border-radius: 12px;
  margin: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fc-country-tab {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fc-text-muted);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: transparent;
  transition: all var(--fc-transition);
}

.fc-country-tab.active {
  background: white;
  color: var(--fc-primary);
  box-shadow: var(--fc-shadow-sm);
}

.fc-country-tab:hover:not(.active) {
  background: rgba(255,255,255,0.5);
}

/* Filter Chips */
.fc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.fc-filter-chip {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--fc-border);
  background: white;
  color: var(--fc-text-muted);
  cursor: pointer;
  transition: all var(--fc-transition);
}

.fc-filter-chip.active, .fc-filter-chip:hover {
  background: var(--fc-primary);
  color: white;
  border-color: var(--fc-primary);
}

/* Rule Cards */
.fc-rule-card {
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 20px;
  transition: all var(--fc-transition);
}

.fc-rule-card:hover {
  border-color: rgba(20,184,166,0.3);
  box-shadow: var(--fc-shadow-md);
}

.fc-rule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.fc-rule-country {
  font-size: 12px;
  font-weight: 600;
  color: var(--fc-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fc-impact-badge {
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fc-impact-high { background: #fef2f2; color: var(--fc-danger); }
.fc-impact-medium { background: #fffbeb; color: #b45309; }
.fc-impact-low { background: #f0fdf4; color: var(--fc-success); }

.fc-rule-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fc-text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.fc-rule-summary {
  font-size: 14px;
  color: var(--fc-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.fc-rule-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

.fc-rule-date { display: flex; align-items: center; gap: 4px; }

.fc-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fc-success);
  font-weight: 600;
}

/* ELI5 Toggle */
.fc-eli5-toggle {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--fc-border);
}

.fc-eli5-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fc-eli5-content {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: var(--fc-primary-glow);
  border-radius: 8px;
  font-size: 14px;
  color: var(--fc-text);
  line-height: 1.6;
}

.fc-eli5-content.show { display: block; }

/* Impact Analysis */
.fc-impact-analysis {
  display: none;
  margin-top: 12px;
  padding: 12px;
  background: var(--fc-bg);
  border-radius: 8px;
}

.fc-impact-analysis.show { display: block; }

.fc-impact-group {
  margin-bottom: 8px;
}

.fc-impact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fc-text-muted);
  margin-bottom: 2px;
}

.fc-impact-text {
  font-size: 13px;
  color: var(--fc-text);
  line-height: 1.5;
}

/* ---------- Market Dashboard ---------- */
.fc-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.fc-market-card {
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 16px;
  transition: all var(--fc-transition);
}

.fc-market-card:hover {
  box-shadow: var(--fc-shadow);
}

.fc-market-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fc-market-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fc-text);
}

.fc-market-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--fc-text);
  margin-bottom: 4px;
}

.fc-market-change {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
}

.fc-market-change.positive {
  color: var(--fc-success);
  background: rgba(16,185,129,0.1);
}

.fc-market-change.negative {
  color: var(--fc-danger);
  background: rgba(239,68,68,0.1);
}

.fc-sparkline-container {
  height: 40px;
  margin-top: 8px;
}

/* Data Status Indicator */
.fc-data-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fc-text-muted);
}

.fc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fc-status-live { background: var(--fc-success); animation: fc-pulse 2s infinite; }
.fc-status-cached { background: var(--fc-warning); }
.fc-status-offline { background: var(--fc-danger); }

/* ---------- Comparison Tables ---------- */
.fc-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  overflow: hidden;
}

.fc-compare-table thead th {
  background: var(--fc-secondary);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
}

.fc-compare-table thead th:hover {
  background: #334155;
}

.fc-compare-table thead th .sort-icon {
  margin-left: 4px;
  font-size: 10px;
}

.fc-compare-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--fc-border);
  vertical-align: middle;
}

.fc-compare-table tbody tr:hover {
  background: var(--fc-primary-glow);
}

.fc-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.fc-compare-highlight {
  background: #f0fdf4;
  font-weight: 700;
  color: var(--fc-success);
}

.fc-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--fc-primary);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--fc-transition);
}

.fc-apply-btn:hover {
  background: var(--fc-primary-dark);
}

/* ---------- Newsletter Section ---------- */
.fc-newsletter {
  background: linear-gradient(135deg, var(--fc-primary) 0%, #0d9488 100%);
  border-radius: var(--fc-radius-xl);
  padding: 48px 32px;
  text-align: center;
  color: white;
  margin: 40px 0;
}

.fc-newsletter h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.fc-newsletter p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.fc-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.fc-newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color var(--fc-transition);
}

.fc-newsletter-input::placeholder { color: rgba(255,255,255,0.7); }
.fc-newsletter-input:focus { border-color: white; }

.fc-newsletter-btn {
  padding: 12px 24px;
  background: white;
  color: var(--fc-primary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--fc-transition);
  white-space: nowrap;
}

.fc-newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--fc-shadow);
}

@media (max-width: 480px) {
  .fc-newsletter-form {
    flex-direction: column;
  }
}

/* ---------- Account Prompt Banner ---------- */
.fc-account-prompt {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--fc-radius);
  padding: 16px 20px;
  margin: 20px 0;
  display: none;
  align-items: center;
  gap: 16px;
}

.fc-account-prompt.show { display: flex; }

.fc-account-prompt-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.fc-account-prompt-text {
  flex: 1;
}

.fc-account-prompt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fc-text);
  margin-bottom: 4px;
}

.fc-account-prompt-desc {
  font-size: 13px;
  color: var(--fc-text-muted);
}

.fc-account-prompt-cta {
  padding: 8px 18px;
  background: var(--fc-info);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--fc-transition);
}

.fc-account-prompt-dismiss {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
}

/* ---------- Cookie Consent ---------- */
.fc-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--fc-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 16px 24px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fc-cookie-banner.show { display: flex; }

.fc-cookie-text {
  font-size: 14px;
  color: var(--fc-text-muted);
  max-width: 600px;
}

.fc-cookie-accept {
  padding: 8px 20px;
  background: var(--fc-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Back to Top ---------- */
.fc-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--fc-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: var(--fc-shadow-md);
  transition: all var(--fc-transition);
  font-size: 20px;
}

.fc-back-to-top.show { display: flex; }
.fc-back-to-top:hover { transform: translateY(-2px); box-shadow: var(--fc-shadow-lg); }

/* ---------- Footer Enhanced ---------- */
.fc-footer-enhanced {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #94a3b8;
  padding: 60px 0 0;
}

.fc-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .fc-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.fc-footer-brand h3 {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.fc-footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.fc-footer-social {
  display: flex;
  gap: 8px;
}

.fc-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: all var(--fc-transition);
}

.fc-footer-social a:hover {
  background: var(--fc-primary);
  border-color: var(--fc-primary);
  color: white;
}

.fc-footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.fc-footer-col a {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--fc-transition);
}

.fc-footer-col a:hover { color: var(--fc-primary-light); }

.fc-footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 24px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Animations ---------- */
.fc-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fc-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.fc-fade-in { animation: fc-fadeIn 0.5s ease forwards; }

@keyframes fc-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Print Styles ---------- */
@media print {
  .fc-ticker-bar, .fc-ad-container, .fc-share-bar, .fc-cookie-banner,
  .fc-back-to-top, .fc-affiliate-card, .fc-account-prompt,
  header, footer, .fc-sidebar, .fc-newsletter { display: none !important; }

  .fc-page-grid { grid-template-columns: 1fr !important; }

  .fc-chart-container { break-inside: avoid; }

  body { font-size: 12pt; color: black; }
}

/* ---------- Utility Classes ---------- */
.fc-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.fc-text-center { text-align: center; }
.fc-mt-0 { margin-top: 0; }
.fc-mb-0 { margin-bottom: 0; }
.fc-hidden { display: none !important; }
.fc-flex { display: flex; }
.fc-grid { display: grid; }
.fc-gap-4 { gap: 16px; }
.fc-gap-6 { gap: 24px; }

/* Responsive utilities */
@media (max-width: 768px) {
  .fc-hero { padding: 48px 0 40px; }
  .fc-hero h1 { font-size: 2rem; }
  .fc-section { padding: 40px 0; }
  .fc-section-title { font-size: 22px; }
  .fc-footer-grid { grid-template-columns: 1fr 1fr; }
  .fc-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .fc-mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-rules-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .fc-trust-strip { flex-direction: column; align-items: center; }
  .fc-footer-grid { grid-template-columns: 1fr; }
  .fc-related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ENGAGEMENT & STRATEGY FEATURES v1.0
   Trust signals, cross-links, lead capture, sticky CTA
   ============================================================ */

/* ---------- Trust Signal Banner ---------- */
.fc-trust-banner {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 50%, #f0f9ff 100%);
  border-bottom: 1px solid #ccfbf1;
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  color: var(--fc-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.fc-trust-banner .fc-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.fc-trust-banner .fc-trust-num {
  color: var(--fc-primary);
  font-weight: 700;
}

/* ---------- Cross-Link Explore Section ---------- */
.fc-explore-more {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc, #f0fdfa);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
}

.fc-explore-more h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fc-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-explore-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.fc-explore-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fc-text);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--fc-transition);
}

.fc-explore-link:hover {
  border-color: var(--fc-primary);
  color: var(--fc-primary);
  background: #f0fdfa;
  transform: translateY(-1px);
  box-shadow: var(--fc-shadow-sm);
}

.fc-explore-link .fc-explore-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ---------- Exit Intent Popup ---------- */
.fc-exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fc-fadeIn 0.3s ease;
}

@keyframes fc-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fc-exit-popup {
  background: white;
  border-radius: var(--fc-radius-xl);
  padding: 40px 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: var(--fc-shadow-lg);
  position: relative;
  animation: fc-slideUp 0.3s ease;
}

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

.fc-exit-popup h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--fc-secondary);
  margin-bottom: 8px;
}

.fc-exit-popup p {
  color: var(--fc-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.fc-exit-popup .fc-exit-form {
  display: flex;
  gap: 8px;
}

.fc-exit-popup .fc-exit-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--fc-border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--fc-transition);
}

.fc-exit-popup .fc-exit-input:focus {
  border-color: var(--fc-primary);
}

.fc-exit-popup .fc-exit-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-light));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--fc-transition);
  white-space: nowrap;
}

.fc-exit-popup .fc-exit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.fc-exit-popup .fc-exit-dismiss {
  background: none;
  border: none;
  color: var(--fc-text-muted);
  font-size: 13px;
  cursor: pointer;
  margin-top: 16px;
  padding: 4px 8px;
}

.fc-exit-popup .fc-exit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--fc-text-muted);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Sticky CTA Bar ---------- */
.fc-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--fc-border);
  padding: 10px 16px;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.fc-sticky-cta.show {
  transform: translateY(0);
}

.fc-sticky-cta-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--fc-transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fc-sticky-cta-btn.primary {
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-light));
  color: white;
}

.fc-sticky-cta-btn.primary:hover {
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.fc-sticky-cta-btn.secondary {
  background: var(--fc-bg);
  color: var(--fc-text);
  border: 1px solid var(--fc-border);
}

.fc-sticky-cta-btn.secondary:hover {
  border-color: var(--fc-primary);
  color: var(--fc-primary);
}

.fc-sticky-cta-label {
  font-size: 12px;
  color: var(--fc-text-muted);
  font-weight: 500;
}

/* ---------- Educational Panel ---------- */
.fc-edu-panel {
  margin: 24px 0;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  overflow: hidden;
}

.fc-edu-toggle {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--fc-secondary);
  transition: background var(--fc-transition);
}

.fc-edu-toggle:hover {
  background: #ccfbf1;
}

.fc-edu-toggle .fc-edu-arrow {
  transition: transform 0.3s ease;
  font-size: 18px;
}

.fc-edu-toggle.open .fc-edu-arrow {
  transform: rotate(180deg);
}

.fc-edu-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.fc-edu-content.open {
  max-height: 800px;
}

.fc-edu-inner {
  padding: 20px;
  color: var(--fc-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.fc-edu-inner h4 {
  color: var(--fc-secondary);
  font-weight: 600;
  margin: 12px 0 6px;
}

.fc-edu-inner ul {
  margin: 8px 0 8px 20px;
}

.fc-edu-inner li {
  margin-bottom: 4px;
}

/* ---------- Popular Calculators Widget ---------- */
.fc-popular-calcs {
  margin: 24px 0;
  padding: 20px;
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
}

.fc-popular-calcs h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fc-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-popular-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}

.fc-popular-item:last-child {
  border-bottom: none;
}

.fc-popular-item a {
  color: var(--fc-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--fc-transition);
}

.fc-popular-item a:hover {
  color: var(--fc-primary);
}

.fc-popular-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--fc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--fc-primary);
  flex-shrink: 0;
}

/* ---------- Share Floating Bar ---------- */
.fc-share-float {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 80;
}

.fc-share-float a,
.fc-share-float button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-text-muted);
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--fc-transition);
  box-shadow: var(--fc-shadow-sm);
}

.fc-share-float a:hover,
.fc-share-float button:hover {
  background: var(--fc-primary);
  color: white;
  border-color: var(--fc-primary);
  box-shadow: var(--fc-shadow);
}

/* ---------- MoneyShock AI Promo Card ---------- */
.fc-moneyshock-promo {
  margin: 28px 0;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--fc-radius-lg);
  color: white;
  position: relative;
  overflow: hidden;
}

.fc-moneyshock-promo::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.fc-moneyshock-promo .fc-promo-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-light));
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.fc-moneyshock-promo h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.fc-moneyshock-promo p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
}

.fc-moneyshock-promo .fc-promo-cta {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-light));
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--fc-transition);
  position: relative;
}

.fc-moneyshock-promo .fc-promo-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
}

.fc-moneyshock-promo .fc-promo-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

.fc-moneyshock-promo .fc-promo-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  position: relative;
}

.fc-moneyshock-promo .fc-promo-feature {
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- MoneyShock Enhanced Components ---------- */
.fc-ms-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.fc-ms-free-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fc-ms-featured-tool {
  margin: 16px 0;
  padding: 14px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--fc-radius);
}

.fc-ms-featured-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #14b8a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.fc-ms-tool-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
}

.fc-ms-tool-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.fc-ms-tool-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.fc-ms-tool-desc {
  font-size: 12px;
  color: #94a3b8;
  flex: 1;
}

.fc-ms-tool-arrow {
  font-size: 16px;
  color: #14b8a6;
}

.fc-ms-section {
  margin: 16px 0;
}

.fc-ms-section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.fc-ms-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fc-ms-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.fc-ms-tool-card:hover {
  background: rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.3);
  transform: translateY(-2px);
}

.fc-ms-tool-icon {
  font-size: 22px;
}

/* ---------- MoneyShock Compare Widget ---------- */
.fc-ms-compare {
  margin: 16px 0;
  padding: 16px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--fc-radius);
  border-left: 4px solid var(--fc-primary-light);
}

.fc-ms-compare-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.fc-ms-compare-icon {
  font-size: 24px;
  line-height: 1;
}

.fc-ms-compare-header strong {
  display: block;
  font-size: 14px;
  color: var(--fc-text);
  margin-bottom: 2px;
}

.fc-ms-compare-sub {
  display: block;
  font-size: 12px;
  color: var(--fc-text-muted);
  line-height: 1.4;
}

.fc-ms-compare-btn {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-light));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.fc-ms-compare-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* ---------- MoneyShock Inline Suggestion ---------- */
.fc-ms-inline {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(20, 184, 166, 0.06);
  border-radius: 8px;
  font-size: 13px;
  color: var(--fc-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fc-ms-inline-icon {
  font-size: 16px;
}

.fc-ms-inline a {
  color: var(--fc-primary);
  font-weight: 600;
  text-decoration: none;
}

.fc-ms-inline a:hover {
  text-decoration: underline;
}

/* ---------- Continue Where You Left Off ---------- */
.fc-continue-prompt {
  max-width: 900px;
  margin: 12px auto;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 100%);
  border: 1px solid var(--fc-primary-glow);
  border-left: 4px solid var(--fc-primary-light);
  border-radius: var(--fc-radius);
  position: relative;
  animation: fc-slideDown 0.3s ease-out;
}

@keyframes fc-slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fc-continue-dismiss {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--fc-text-muted);
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
}

.fc-continue-dismiss:hover {
  background: rgba(0,0,0,0.06);
  color: var(--fc-text);
}

.fc-continue-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fc-continue-icon {
  font-size: 24px;
}

.fc-continue-header strong {
  display: block;
  font-size: 15px;
  color: var(--fc-text);
}

.fc-continue-sub {
  display: block;
  font-size: 12px;
  color: var(--fc-text-muted);
}

.fc-continue-calcs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-continue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--fc-text);
  transition: all var(--fc-transition);
}

.fc-continue-item:hover {
  border-color: var(--fc-primary-light);
  box-shadow: var(--fc-shadow-sm);
  transform: translateX(2px);
}

.fc-continue-emoji {
  font-size: 20px;
  flex-shrink: 0;
}

.fc-continue-info {
  flex: 1;
  min-width: 0;
}

.fc-continue-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-continue-time {
  display: block;
  font-size: 11px;
  color: var(--fc-text-muted);
}

.fc-continue-arrow {
  font-size: 16px;
  color: var(--fc-primary);
  flex-shrink: 0;
}

/* ---------- Calculator Quick-Compare Widget ---------- */
.fc-calc-compare {
  margin: 20px 0;
  padding: 20px;
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
}

.fc-calc-compare h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fc-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-compare-icon {
  font-size: 18px;
}

.fc-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.fc-compare-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fc-text);
  transition: all var(--fc-transition);
}

.fc-compare-card:hover {
  border-color: var(--fc-primary-light);
  box-shadow: var(--fc-shadow);
  transform: translateY(-1px);
}

.fc-compare-card-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.fc-compare-card-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-text);
  line-height: 1.3;
}

.fc-compare-card-arrow {
  font-size: 14px;
  color: var(--fc-primary);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fc-compare-card:hover .fc-compare-card-arrow {
  opacity: 1;
}

/* Hide floating share on mobile */
@media (max-width: 768px) {
  .fc-share-float { display: none; }
  .fc-sticky-cta { gap: 8px; padding: 8px 12px; }
  .fc-sticky-cta-label { display: none; }
  .fc-exit-popup .fc-exit-form { flex-direction: column; }
  .fc-continue-prompt { margin: 8px 12px; }
  .fc-compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .fc-explore-links { grid-template-columns: 1fr; }
  .fc-moneyshock-promo .fc-promo-features { flex-direction: column; gap: 8px; }
  .fc-ms-tool-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-ms-tool-link { flex-direction: column; align-items: flex-start; }
  .fc-continue-calcs { gap: 4px; }
  .fc-continue-item { padding: 8px 10px; }
}
