/**
 * settlement-detail-perfection-1579875.css
 * Task #1579875: 10/10 visual perfection — Settlement detail pages (375px + 1440px)
 *
 * Loaded LAST in the cascade to fix all remaining visual issues.
 * Scoped entirely to body.page-settlement-detail.
 *
 * Fixes: footer contrast bug, main max-width conflict, section spacing,
 * mobile padding, typography refinements, CTA polish, premium micro-interactions.
 */

/* ══════════════════════════════════════════════════════════════════════════════
   1. CRITICAL: FOOTER CONTRAST FIX
   The v2 CSS forces white bg on footer but also sets hover color to white.
   This makes links invisible on hover.
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .sr-footer,
body.page-settlement-detail .site-footer,
body.page-settlement-detail .sr-ramsey-footer,
body.page-settlement-detail footer[role="contentinfo"],
body.page-settlement-detail footer.footer {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-top: none !important;
}

body.page-settlement-detail .sr-footer *,
body.page-settlement-detail .site-footer *,
body.page-settlement-detail .sr-ramsey-footer *,
body.page-settlement-detail footer.footer * {
  color: #cbd5e1 !important;
}

body.page-settlement-detail .sr-footer a,
body.page-settlement-detail .site-footer a,
body.page-settlement-detail .sr-ramsey-footer a,
body.page-settlement-detail footer.footer a {
  color: #cbd5e1 !important;
  transition: color 0.15s ease !important;
}

body.page-settlement-detail .sr-footer a:hover,
body.page-settlement-detail .site-footer a:hover,
body.page-settlement-detail .sr-ramsey-footer a:hover,
body.page-settlement-detail footer.footer a:hover {
  color: #34d399 !important;
}

body.page-settlement-detail .sr-footer h3,
body.page-settlement-detail .sr-footer h4,
body.page-settlement-detail .site-footer h3,
body.page-settlement-detail .site-footer h4,
body.page-settlement-detail footer.footer h3,
body.page-settlement-detail footer.footer h4 {
  color: #f1f5f9 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   2. LAYOUT: FIX MAIN MAX-WIDTH CONFLICT
   visual-polish-1513893.css incorrectly sets main to 1000px which breaks
   the 2-column grid layout. Reset to allow grid to control width.
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail main {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   3. TYPOGRAPHY: PREMIUM REFINEMENTS
   Antialiased rendering, tighter heading tracking, consistent body line-height
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* H1 — headline treatment with refined spacing */
body.page-settlement-detail .detail-header h1,
body.page-settlement-detail .detail-header h1.sa-hero-anim {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif !important;
  font-size: clamp(26px, 3.5vw, 44px) !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin: 0 0 14px 0 !important;
  word-break: break-word !important;
  hyphens: none !important;
}

/* H2 — section headings */
body.page-settlement-detail .detail-section h2,
body.page-settlement-detail .detail-content h2:not(.pcalc-title):not(.sr-quick-facts__title) {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 16px !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

/* H3 — subsection headings */
body.page-settlement-detail .detail-section h3 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
}

/* Body text — consistent 15px/1.65 across all sections */
body.page-settlement-detail .detail-section p,
body.page-settlement-detail .detail-section li,
body.page-settlement-detail .detail-content p,
body.page-settlement-detail .detail-content li {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #1e293b !important;
}

/* Summary text — slightly larger for readability */
body.page-settlement-detail .detail-summary {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  margin: 0 0 18px !important;
  max-width: 740px !important;
}

/* Links within content */
body.page-settlement-detail .detail-section a:not(.sidebar-btn):not(.qf-cta):not(.qec-cta-btn):not(.sr-ifc-btn):not(.pro-gate-cta) {
  color: #059669 !important;
  text-decoration-color: rgba(5, 150, 105, 0.3) !important;
  text-underline-offset: 2px !important;
  transition: color 0.15s ease, text-decoration-color 0.15s ease !important;
}

body.page-settlement-detail .detail-section a:not(.sidebar-btn):not(.qf-cta):not(.qec-cta-btn):not(.sr-ifc-btn):not(.pro-gate-cta):hover {
  color: #047857 !important;
  text-decoration-color: #047857 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   4. SECTION CARDS: PREMIUM SPACING & SHADOWS
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .detail-section {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 28px 28px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.page-settlement-detail .detail-section:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   5. TWO-COLUMN LAYOUT: CONSISTENT GRID
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .content-with-sidebar {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: 36px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 32px 24px 48px !important;
  align-items: start !important;
}

/* Detail inner — proper max-width + padding */
body.page-settlement-detail .detail-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 28px 24px 0 !important;
  background: #ffffff !important;
}

/* Detail header — clean bottom border */
body.page-settlement-detail .detail-header {
  background: #ffffff !important;
  padding-bottom: 28px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   6. SIDEBAR: PREMIUM POLISH
   ══════════════════════════════════════════════════════════════════════════════ */

/* Quick facts card — elevated treatment */
body.page-settlement-detail .quick-facts-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.04) !important;
}

body.page-settlement-detail .qf-header {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 14px 20px !important;
  letter-spacing: 0.04em !important;
}

/* Quick facts CTA button */
body.page-settlement-detail .qf-cta {
  display: block !important;
  margin: 0 !important;
  padding: 15px 20px !important;
  background: #059669 !important;
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-decoration: none !important;
  letter-spacing: -0.01em !important;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
}

body.page-settlement-detail .qf-cta:hover {
  background: #047857 !important;
  color: #ffffff !important;
}

/* Trust chips below CTA */
body.page-settlement-detail .qf-trust {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 10px 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background: #f8fafc !important;
}

/* Filing CTA card — emerald accent border */
body.page-settlement-detail .sidebar-card.sidebar-cta,
body.page-settlement-detail #filing-help {
  background: #ffffff !important;
  border: 2px solid #059669 !important;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.12), 0 8px 28px rgba(0, 0, 0, 0.04) !important;
}

/* Inner padding for filing card content */
body.page-settlement-detail .sidebar-card.sidebar-cta > *:not(.sidebar-btn):not(a.sidebar-btn-xl),
body.page-settlement-detail #filing-help > *:not(.sidebar-btn):not(a.sidebar-btn-xl) {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   7. CTA BUTTONS: PREMIUM TREATMENT
   ══════════════════════════════════════════════════════════════════════════════ */

/* Primary CTA — elevated emerald with glass effect */
body.page-settlement-detail .sidebar-btn.sidebar-btn-xl,
body.page-settlement-detail .sidebar-btn-xl,
body.page-settlement-detail a.sidebar-btn-xl {
  display: block !important;
  width: 100% !important;
  background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 17px 24px !important;
  border-radius: 12px !important;
  text-align: center !important;
  text-decoration: none !important;
  letter-spacing: -0.015em !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Glass highlight overlay */
body.page-settlement-detail .sidebar-btn.sidebar-btn-xl::before,
body.page-settlement-detail .sidebar-btn-xl::before,
body.page-settlement-detail a.sidebar-btn-xl::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 50%) !important;
  pointer-events: none !important;
}

body.page-settlement-detail .sidebar-btn.sidebar-btn-xl:hover,
body.page-settlement-detail .sidebar-btn-xl:hover,
body.page-settlement-detail a.sidebar-btn-xl:hover {
  background: linear-gradient(180deg, #047857 0%, #065f46 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  color: #ffffff !important;
}

body.page-settlement-detail .sidebar-btn.sidebar-btn-xl:active,
body.page-settlement-detail .sidebar-btn-xl:active,
body.page-settlement-detail a.sidebar-btn-xl:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2) !important;
}

/* QEC CTA button — same premium treatment */
body.page-settlement-detail .qec-cta-btn {
  background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.page-settlement-detail .qec-cta-btn:hover {
  background: linear-gradient(180deg, #047857 0%, #065f46 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Dual CTA primary */
body.page-settlement-detail .dual-cta-primary,
body.page-settlement-detail .filing-cta-link.filing-cta-main-btn {
  background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.page-settlement-detail .dual-cta-primary:hover,
body.page-settlement-detail .filing-cta-link.filing-cta-main-btn:hover {
  background: linear-gradient(180deg, #047857 0%, #065f46 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   8. HERO CONVERSION BLOCK: REFINED
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .hero-conv-block {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), 0 8px 28px rgba(0, 0, 0, 0.03) !important;
  margin-bottom: 24px !important;
}

body.page-settlement-detail .hero-conv-payout {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  padding: 22px 24px !important;
  text-align: center !important;
}

body.page-settlement-detail .hero-conv-payout-label {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
}

body.page-settlement-detail .hero-conv-payout-amount {
  font-size: clamp(2.4rem, 8vw, 3.2rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
  font-family: 'Fraunces', Georgia, serif !important;
}

body.page-settlement-detail .hero-conv-body {
  padding: 22px 24px !important;
  background: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   9. BREADCRUMB: REFINED
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .breadcrumb-nav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  margin-bottom: 20px !important;
  font-weight: 500 !important;
  font-family: 'DM Sans', sans-serif !important;
}

body.page-settlement-detail .breadcrumb-nav a {
  color: #64748b !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

body.page-settlement-detail .breadcrumb-nav a:hover {
  color: #059669 !important;
}

body.page-settlement-detail .breadcrumb-sep {
  color: #cbd5e1 !important;
  margin: 0 6px !important;
  font-size: 14px !important;
}

body.page-settlement-detail .breadcrumb-current {
  color: #0f172a !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 300px !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   10. TRUST STRIP: CLEAN TREATMENT
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .sr-detail-trust-strip {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 12px 0 !important;
  padding: 10px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

body.page-settlement-detail .sr-trust-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

body.page-settlement-detail .sr-trust-badge svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
  color: #059669 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   11. KEY FACTS BAR: PREMIUM GRID
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .sd-key-facts {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 20px 0 !important;
}

body.page-settlement-detail .sd-key-facts > div {
  flex: 1 1 calc(25% - 12px) !important;
  min-width: 140px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  transition: border-color 0.2s ease !important;
}

body.page-settlement-detail .sd-key-facts > div:hover {
  border-color: #cbd5e1 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   12. RELATED SETTLEMENTS GRID: CLEAN
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail #related-settlements-grid {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 48px 24px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

body.page-settlement-detail #related-settlements-grid h2 {
  font-family: 'Fraunces', Georgia, serif !important;
  color: #0f172a !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
}

body.page-settlement-detail #related-settlements-grid a {
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.page-settlement-detail #related-settlements-grid a:hover {
  border-color: #059669 !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-2px) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   13. READING PROGRESS BAR: GRADIENT
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail #sr-reading-progress {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #059669 0%, #34d399 100%) !important;
  z-index: 9999 !important;
  transition: width 0.1s linear !important;
  border-radius: 0 2px 2px 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   14. AEO SUMMARY GRID: CLEAN CARD
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .sr-aeo-summary {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  margin: 18px 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px 24px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   15. BADGES: CONSISTENT PILL STYLING
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .detail-meta-row .card-category {
  background: transparent !important;
  border: 1.5px solid #059669 !important;
  color: #059669 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  padding: 4px 10px !important;
  border-radius: 100px !important;
}

body.page-settlement-detail .sr-status-open {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 100px !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   16. INLINE FILING CTA: PREMIUM
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .sr-inline-filing-cta {
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 24px !important;
}

body.page-settlement-detail .sr-ifc-btn {
  background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25) !important;
  border-radius: 10px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.page-settlement-detail .sr-ifc-btn:hover {
  background: linear-gradient(180deg, #047857 0%, #065f46 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   17. FAQ ACCORDION: SMOOTH
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail details {
  border-bottom: 1px solid #f1f5f9 !important;
}

body.page-settlement-detail details:last-of-type {
  border-bottom: none !important;
}

body.page-settlement-detail details summary {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  padding: 16px 0 !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  transition: color 0.15s ease !important;
}

body.page-settlement-detail details summary:hover {
  color: #059669 !important;
}

body.page-settlement-detail details[open] summary {
  color: #059669 !important;
}

body.page-settlement-detail details p {
  font-family: 'DM Sans', sans-serif !important;
  color: #334155 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  padding-bottom: 16px !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   18. PRO GATE OVERLAY: REFINED
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .pro-gate-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  backdrop-filter: blur(3px) !important;
  text-align: center !important;
  padding: 24px !important;
  border-radius: 16px !important;
}

body.page-settlement-detail .pro-gate-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2) !important;
}

body.page-settlement-detail .pro-gate-cta:hover {
  background: linear-gradient(180deg, #047857 0%, #065f46 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   19. CATEGORY BANNER: REFINED
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .detail-cat-banner {
  height: 160px !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  overflow: hidden !important;
  position: relative !important;
}

body.page-settlement-detail .detail-cat-banner-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom, transparent 30%, #ffffff 100%) !important;
}

body.page-settlement-detail .detail-cat-banner-label {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #047857 !important;
  letter-spacing: 0.1em !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid #d1fae5 !important;
  border-radius: 100px !important;
  padding: 4px 12px !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   20. ANIMATIONS: PREMIUM MOTION
   ══════════════════════════════════════════════════════════════════════════════ */

/* Subtle fade-in for sections */
@keyframes srPerfFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

body.page-settlement-detail .detail-section {
  animation: srPerfFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both !important;
}

body.page-settlement-detail .detail-section:nth-child(2) { animation-delay: 0.05s !important; }
body.page-settlement-detail .detail-section:nth-child(3) { animation-delay: 0.1s !important; }
body.page-settlement-detail .detail-section:nth-child(4) { animation-delay: 0.15s !important; }
body.page-settlement-detail .detail-section:nth-child(5) { animation-delay: 0.2s !important; }

@media (prefers-reduced-motion: reduce) {
  body.page-settlement-detail .detail-section {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   21. SIDEBAR RELATED CARD: CLEAN LIST
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .sidebar-related-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.page-settlement-detail .sidebar-related-card .sr-header {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.09em !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

body.page-settlement-detail .sidebar-related-card .sr-item {
  display: block !important;
  padding: 12px 16px !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background 0.15s ease !important;
}

body.page-settlement-detail .sidebar-related-card .sr-item:hover {
  background: #f8fafc !important;
}

body.page-settlement-detail .sidebar-related-card .sr-item:last-of-type {
  border-bottom: none !important;
}

body.page-settlement-detail .sidebar-related-card .sr-title {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin-bottom: 4px !important;
  transition: color 0.15s ease !important;
}

body.page-settlement-detail .sidebar-related-card .sr-item:hover .sr-title {
  color: #059669 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   22. DEADLINE URGENCY BAR: CLEAN
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .sr-deadline-urgency-bar {
  border-radius: 10px !important;
  padding: 10px 16px !important;
  margin: 16px 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   23. SOCIAL PROOF BARS: REFINED
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail .sr-lsp-bar {
  border-radius: 10px !important;
  margin: 0 0 20px !important;
  font-size: 13px !important;
}

body.page-settlement-detail .ssp-strip {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   24. GLOBAL: NO HORIZONTAL OVERFLOW
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-settlement-detail {
  overflow-x: hidden !important;
}

body.page-settlement-detail .detail-content,
body.page-settlement-detail .detail-inner,
body.page-settlement-detail .content-with-sidebar {
  overflow-x: hidden !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   25. RESPONSIVE: MOBILE (≤900px)
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  body.page-settlement-detail .content-with-sidebar {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 20px 16px 40px !important;
  }

  body.page-settlement-detail .sidebar {
    position: static !important;
    width: 100% !important;
  }

  body.page-settlement-detail .detail-inner {
    padding: 16px 16px 0 !important;
  }

  body.page-settlement-detail .detail-cat-banner {
    height: 100px !important;
  }

  body.page-settlement-detail .detail-header h1,
  body.page-settlement-detail .detail-header h1.sa-hero-anim {
    font-size: clamp(22px, 6vw, 36px) !important;
  }

  body.page-settlement-detail .sr-aeo-summary {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 16px !important;
    padding: 14px 16px !important;
  }

  body.page-settlement-detail .detail-section {
    padding: 20px 18px !important;
    margin-bottom: 20px !important;
  }
}

/* ── 600px — small tablet ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  body.page-settlement-detail .sr-aeo-summary {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 14px 16px !important;
  }

  body.page-settlement-detail .sd-key-facts > div {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 120px !important;
  }
}

/* ── 390px — small mobile (375px target) ────────────────────────────────── */
@media (max-width: 390px) {
  body.page-settlement-detail .detail-header h1,
  body.page-settlement-detail .detail-header h1.sa-hero-anim {
    font-size: 22px !important;
    letter-spacing: -0.02em !important;
  }

  body.page-settlement-detail .detail-inner {
    padding: 14px 14px 0 !important;
  }

  body.page-settlement-detail .content-with-sidebar {
    padding: 14px 14px 32px !important;
  }

  body.page-settlement-detail .detail-section {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }

  body.page-settlement-detail .detail-section h2 {
    font-size: 19px !important;
  }

  body.page-settlement-detail .hero-conv-block {
    border-radius: 14px !important;
  }

  /* CTA buttons are full-width and thumb-friendly */
  body.page-settlement-detail .sidebar-btn.sidebar-btn-xl,
  body.page-settlement-detail .sidebar-btn-xl,
  body.page-settlement-detail a.sidebar-btn-xl,
  body.page-settlement-detail .qec-cta-btn {
    min-height: 52px !important;
    font-size: 15px !important;
    padding: 16px 16px !important;
  }

  body.page-settlement-detail .qf-cta {
    font-size: 14px !important;
    padding: 14px 16px !important;
    min-height: 48px !important;
  }

  /* Quick facts items */
  body.page-settlement-detail .qf-item {
    padding: 10px 14px !important;
  }

  /* Breadcrumb smaller on tiny screens */
  body.page-settlement-detail .breadcrumb-nav {
    font-size: 12px !important;
    margin-bottom: 14px !important;
  }

  body.page-settlement-detail .breadcrumb-current {
    max-width: 200px !important;
  }

  /* Trust strip — wrap on small screens */
  body.page-settlement-detail .sr-detail-trust-strip {
    gap: 6px !important;
    padding: 8px 12px !important;
  }

  /* Key facts 2-column on small screens */
  body.page-settlement-detail .sd-key-facts > div {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 0 !important;
    padding: 12px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   26. DESKTOP: WIDE (≥1200px)
   ══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  body.page-settlement-detail .detail-inner {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  body.page-settlement-detail .content-with-sidebar {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   27. PRINT STYLES
   ══════════════════════════════════════════════════════════════════════════════ */
@media print {
  body.page-settlement-detail .sidebar {
    position: static !important;
  }
  body.page-settlement-detail .content-with-sidebar {
    grid-template-columns: 1fr !important;
  }
  body.page-settlement-detail .detail-section {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    break-inside: avoid !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   28. MISC CONTRAST & POLISH FIXES
   ══════════════════════════════════════════════════════════════════════════════ */

/* Ensure no dark-on-dark text */
body.page-settlement-detail .viewing-now-badge {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  color: #c2410c !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Settlement closed banner — clear contrast */
body.page-settlement-detail .settlement-closed-banner {
  background: #fef2f2 !important;
  border-bottom: 2px solid rgba(220, 38, 38, 0.25) !important;
  border-left: 4px solid #dc2626 !important;
  padding: 14px 24px !important;
  color: #991b1b !important;
}

/* Sidebar urgency countdown — clean contrast */
body.page-settlement-detail .sidebar-urgency-countdown {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
}

/* Social proof dots — pulsing red */
body.page-settlement-detail .view-dot {
  width: 7px !important;
  height: 7px !important;
  background: #ef4444 !important;
  border-radius: 50% !important;
  animation: srViewDotPulse 1.5s ease-in-out infinite !important;
  flex-shrink: 0 !important;
}

/* Sidebar share card */
body.page-settlement-detail .sidebar-share-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* No proof badge */
body.page-settlement-detail .no-proof-badge-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 100px !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
}

/* Focus-visible ring for keyboard users */
body.page-settlement-detail a:focus-visible,
body.page-settlement-detail button:focus-visible,
body.page-settlement-detail details summary:focus-visible {
  outline: 2px solid #059669 !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

/* Verified payout badge */
body.page-settlement-detail #pv-verified-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(5, 150, 105, 0.08) !important;
  border: 1px solid rgba(5, 150, 105, 0.25) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #047857 !important;
  margin-top: 8px !important;
}

/* Ensure white body background under everything */
body.page-settlement-detail {
  background: #ffffff !important;
}

body.page-settlement-detail main {
  background: #ffffff !important;
}
