@import url('/fonts/cormorant-figtree.css');

/* ==========================================================================
 * 508 Ministry Homepage Luminous New Vibe + Social Share Upgrade
 * Covers:
 *   1. #mytrust-map (Trust Architecture / Visual Map section + Enlarge modal)
 *   2. #cm-vid-questionnaire (Questionnaire Video Card + Social Share Bar)
 *   3. #demos (Live Demos section + ultra-sharp 16:10 hero showcase cards)
 *   4. #c501-showcase-home (501(c)(3) Hero & Audio Guide Social Share Bar)
 * Self-hosted Cormorant + Figtree fonts only. Zero em dashes. Ad-safe copy.
 * ========================================================================== */

/* ---------- 1. #mytrust-map: FULL LUMINOUS NEW VIBE ---------- */
#mytrust-map.n5-sec,
#mytrust-map.n5-sec.n5-navy {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F8FE 55%, #E8F3FC 100%) !important;
  color: #0F1D3A !important;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif !important;
  padding: 68px 20px 76px !important;
  border-top: 1px solid #DCEAF8;
  border-bottom: 1px solid #D5E6F7;
}

#mytrust-map .n5-wrap {
  max-width: 1220px;
  margin: 0 auto;
}

#mytrust-map .n5-eyebrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 16px !important;
  margin: 0 0 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #FFE699 0%, #F5C242 100%) !important;
  border: 1px solid rgba(217, 155, 22, 0.4) !important;
  color: #0F1D3A !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 16px -6px rgba(217, 155, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

#mytrust-map .n5-eyebrow::before,
#mytrust-map .n5-eyebrow::after {
  display: none !important;
  content: none !important;
}

#mytrust-map .n5-h {
  font-family: 'Cormorant', Georgia, serif !important;
  font-size: clamp(36px, 4.1vw, 52px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
  color: #0F1D3A !important;
  margin: 0 0 14px !important;
}

#mytrust-map .n5-lead {
  color: #334155 !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.62 !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

#mytrust-map .tm5-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
  align-items: center;
}

@media (min-width: 920px) {
  #mytrust-map .tm5-grid {
    grid-template-columns: 1.04fr 0.96fr;
    gap: 44px;
  }
}

/* Bright sunlit white elevated diagram card */
#mytrust-map .tm5-mapbox {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FCFF 100%) !important;
  border: 1.5px solid #C8DDF2 !important;
  border-radius: 24px !important;
  padding: 20px 20px 18px !important;
  box-shadow:
    0 24px 60px -24px rgba(24, 72, 148, 0.18),
    0 0 36px rgba(147, 197, 253, 0.24),
    inset 0 1px 0 #FFFFFF !important;
}

#mytrust-map .tm5-mapbox > svg {
  display: block;
  width: 100%;
  height: auto;
  background: radial-gradient(circle at 50% 28%, rgba(254, 243, 199, 0.34) 0%, rgba(239, 246, 255, 0.65) 55%, #F7FBFF 100%);
  border: 1px solid #E1EEFA;
  border-radius: 16px;
}

/* Crisp luminous SVG nodes */
#mytrust-map .tm5-nd rect,
.fx3-lb-svg .tm5-nd rect {
  stroke-width: 2.2 !important;
  transition: filter 0.25s ease, transform 0.25s ease;
}

#mytrust-map .tm5-nd text,
.fx3-lb-svg .tm5-nd text {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif !important;
  text-anchor: middle;
}

#mytrust-map .tm5-nd .tm5-t1,
.fx3-lb-svg .tm5-nd .tm5-t1 {
  font-size: 18.5px !important;
  font-weight: 800 !important;
  fill: #0F1D3A !important;
  letter-spacing: -0.01em;
}

#mytrust-map .tm5-nd .tm5-t2,
.fx3-lb-svg .tm5-nd .tm5-t2 {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  fill: #475569 !important;
}

/* Grantor: Navy / Royal Blue */
#mytrust-map .tm5-nd.gr rect,
.fx3-lb-svg .tm5-nd.gr rect {
  fill: #EFF6FF !important;
  stroke: #2563EB !important;
}
#mytrust-map .tm5-nd.gr .tm5-t1,
.fx3-lb-svg .tm5-nd.gr .tm5-t1 { fill: #0F1D3A !important; }
#mytrust-map .tm5-nd.gr .tm5-t2,
.fx3-lb-svg .tm5-nd.gr .tm5-t2 { fill: #1D4ED8 !important; }

/* Ministry Trust Centerpiece: Warm Honey Gold */
#mytrust-map .tm5-nd.tr rect,
.fx3-lb-svg .tm5-nd.tr rect {
  fill: #FFFBEB !important;
  stroke: #D99B16 !important;
  filter: drop-shadow(0 6px 14px rgba(217, 155, 22, 0.26));
}
#mytrust-map .tm5-nd.tr .tm5-t1,
.fx3-lb-svg .tm5-nd.tr .tm5-t1 { fill: #0F1D3A !important; }
#mytrust-map .tm5-nd.tr .tm5-t2,
.fx3-lb-svg .tm5-nd.tr .tm5-t2 { fill: #92400E !important; }

/* Trustees: Crisp Emerald */
#mytrust-map .tm5-nd.te rect,
.fx3-lb-svg .tm5-nd.te rect {
  fill: #ECFDF5 !important;
  stroke: #059669 !important;
}
#mytrust-map .tm5-nd.te .tm5-t1,
.fx3-lb-svg .tm5-nd.te .tm5-t1 { fill: #064E3B !important; }
#mytrust-map .tm5-nd.te .tm5-t2,
.fx3-lb-svg .tm5-nd.te .tm5-t2 { fill: #047857 !important; }

/* Operating LLC / Property / Bank Account: Royal Indigo */
#mytrust-map .tm5-nd.en rect,
.fx3-lb-svg .tm5-nd.en rect {
  fill: #EEF2FF !important;
  stroke: #4F46E5 !important;
}
#mytrust-map .tm5-nd.en .tm5-t1,
.fx3-lb-svg .tm5-nd.en .tm5-t1 { fill: #1E1B4B !important; }
#mytrust-map .tm5-nd.en .tm5-t2,
.fx3-lb-svg .tm5-nd.en .tm5-t2 { fill: #4338CA !important; }

/* Beneficiaries: Warm Amber Gold */
#mytrust-map .tm5-nd.be rect,
.fx3-lb-svg .tm5-nd.be rect {
  fill: #FFF7ED !important;
  stroke: #D97706 !important;
}
#mytrust-map .tm5-nd.be .tm5-t1,
.fx3-lb-svg .tm5-nd.be .tm5-t1 { fill: #7C2D12 !important; }
#mytrust-map .tm5-nd.be .tm5-t2,
.fx3-lb-svg .tm5-nd.be .tm5-t2 { fill: #B45309 !important; }

/* Crisp dotted connectors on white/sky canvas */
#mytrust-map .tm5-edge,
.fx3-lb-svg .tm5-edge {
  stroke: #C4901E !important;
  stroke-width: 2.4 !important;
}
#mytrust-map .tm5-edge.g,
.fx3-lb-svg .tm5-edge.g { stroke: #059669 !important; }
#mytrust-map .tm5-edge.p,
.fx3-lb-svg .tm5-edge.p { stroke: #4F46E5 !important; }
#mytrust-map .tm5-edge.o,
.fx3-lb-svg .tm5-edge.o { stroke: #D97706 !important; }

@keyframes tm5hlLuminous {
  0%, 4% { filter: none; }
  10%, 30% { filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.38)) drop-shadow(0 4px 10px rgba(217, 155, 22, 0.35)); }
  36%, 100% { filter: none; }
}
#mytrust-map .tm5-hlA { animation: tm5hlLuminous 9s infinite !important; }
#mytrust-map .tm5-hlB { animation: tm5hlLuminous 9s 3s infinite !important; }
#mytrust-map .tm5-hlC { animation: tm5hlLuminous 9s 6s infinite !important; }

#mytrust-map .tm5-mapbox.is-manual .tm5-hlA,
#mytrust-map .tm5-mapbox.is-manual .tm5-hlB,
#mytrust-map .tm5-mapbox.is-manual .tm5-hlC,
#mytrust-map .tm5-mapbox.is-manual .tm5-lgA,
#mytrust-map .tm5-mapbox.is-manual .tm5-lgB,
#mytrust-map .tm5-mapbox.is-manual .tm5-lgC {
  animation: none !important;
}
#mytrust-map .tm5-mapbox.is-manual .tm5-nd.is-spotlight rect {
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.42)) drop-shadow(0 6px 14px rgba(217, 155, 22, 0.42)) !important;
  stroke-width: 3 !important;
}

/* Interactive legend pills */
#mytrust-map .tm5-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@keyframes tm5lgLuminous {
  0%, 4% { background: #F1F7FE; color: #1E3A5F; border-color: #C8DDF2; }
  10%, 30% { background: linear-gradient(180deg, #FFE699 0%, #F5C242 100%); color: #0F1D3A; border-color: #D99B16; box-shadow: 0 4px 12px rgba(217, 155, 22, 0.32); }
  36%, 100% { background: #F1F7FE; color: #1E3A5F; border-color: #C8DDF2; }
}

#mytrust-map .tm5-lg {
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  border: 1.5px solid #C8DDF2 !important;
  color: #1E3A5F !important;
  background: #F1F7FE !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#mytrust-map .tm5-lg:hover,
#mytrust-map .tm5-lg.is-active {
  background: linear-gradient(180deg, #FFE699 0%, #F5C242 100%) !important;
  color: #0F1D3A !important;
  border-color: #D99B16 !important;
  box-shadow: 0 5px 14px -4px rgba(217, 155, 22, 0.45) !important;
  transform: translateY(-1px);
}
#mytrust-map .tm5-lgA { animation: tm5lgLuminous 9s infinite !important; }
#mytrust-map .tm5-lgB { animation: tm5lgLuminous 9s 3s infinite !important; }
#mytrust-map .tm5-lgC { animation: tm5lgLuminous 9s 6s infinite !important; }

/* FIX OVERLAP BUG: Dedicated clean flex footer row separating caption & Enlarge button */
#mytrust-map .tm5-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #E2EEF9;
}

#mytrust-map .tm5-note {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #475569 !important;
  margin: 0 !important;
  flex: 1 1 220px;
}

/* Style the Enlarge image badge cleanly inside the footer row (no absolute overlap!) */
#mytrust-map .tm5-foot-row .fx3-badge,
#mytrust-map .tm5-enlarge-btn {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 8px 15px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #0F1D3A 0%, #1D3B72 100%) !important;
  border: 1.5px solid #D99B16 !important;
  color: #FFFFFF !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  box-shadow: 0 8px 18px -6px rgba(15, 29, 58, 0.35) !important;
  transition: transform 0.16s ease, filter 0.16s ease;
}

#mytrust-map .tm5-foot-row .fx3-badge:hover,
#mytrust-map .tm5-enlarge-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

#mytrust-map .tm5-foot-row .fx3-badge svg,
#mytrust-map .tm5-enlarge-btn svg {
  width: 15px;
  height: 15px;
  stroke: #F6D884 !important;
  fill: none;
  stroke-width: 2.2;
}

/* Fallback if JS hasn't moved fx3-badge yet */
#mytrust-map .tm5-mapbox:not(.has-foot-row) .tm5-note {
  padding-right: 150px;
}

/* Luminous Lightbox Modal styling when Enlarge image opens */
.fx3-lb {
  background: rgba(11, 25, 51, 0.84) !important;
  backdrop-filter: blur(8px);
}
.fx3-lb .fx3-lb-svg {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FF 100%) !important;
  border: 2px solid #C8DDF2 !important;
  border-radius: 22px !important;
  padding: 24px !important;
  box-shadow: 0 32px 80px -20px rgba(8, 22, 48, 0.55) !important;
}
.fx3-lb .fx3-lb-cap {
  color: #F8FBFF !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
}
.fx3-lb .fx3-lb-x {
  background: linear-gradient(135deg, #0F1D3A, #1D3B72) !important;
  border: 2px solid #F6D884 !important;
  color: #FFFDF8 !important;
}

/* Right column of #mytrust-map: Sunlit laptop bezel & typography */
#mytrust-map .tm5-lid {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF5FD 100%) !important;
  border: 1.5px solid #C8DDF2 !important;
  border-radius: 18px 18px 8px 8px !important;
  padding: 12px 12px 14px !important;
  box-shadow: 0 24px 56px -22px rgba(24, 72, 148, 0.22), inset 0 1px 0 #FFFFFF !important;
}
#mytrust-map .tm5-lid img {
  border-radius: 8px;
  border: 1px solid #D8E6F5;
}
#mytrust-map .tm5-base {
  height: 12px;
  margin: 0 2%;
  background: linear-gradient(180deg, #DDE9F7 0%, #B8CDE6 100%) !important;
  border-radius: 0 0 18px 18px;
}
#mytrust-map .tm5-txt h3 {
  font-family: 'Cormorant', Georgia, serif !important;
  color: #0F1D3A !important;
  font-size: clamp(28px, 2.8vw, 36px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  margin: 0 0 12px !important;
}
#mytrust-map .tm5-ticks li {
  color: #1E293B !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
}
#mytrust-map .tm5-ticks li::before {
  background-color: #F5C242 !important;
  box-shadow: 0 4px 10px -3px rgba(217, 155, 22, 0.45);
}
#mytrust-map .mts-sister-cta {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%) !important;
  border: 1.5px solid rgba(217, 155, 22, 0.45) !important;
  border-radius: 18px !important;
  padding: 18px 20px !important;
  box-shadow: 0 14px 32px -18px rgba(24, 72, 148, 0.18) !important;
}
#mytrust-map .mts-sister-cta p {
  color: #334155 !important;
  font-size: 14px !important;
}
#mytrust-map .mts-sister-cta p strong {
  color: #0F1D3A !important;
}

/* ---------- 2. #cm-vid-questionnaire: SOCIAL POST HEADER + SHARE FOOTER ---------- */
#cm-vid-questionnaire.cm-vid-card {
  border: 1.5px solid rgba(212, 175, 55, 0.42) !important;
  box-shadow: 0 24px 60px -22px rgba(8, 22, 52, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
  overflow: hidden !important;
}

#cm-vid-questionnaire.cm-vid-card > .cm-vid-stage,
#cm-vid-questionnaire.cm-vid-card > .cm-vid-meta,
.cm-vid-card > .cm-vid-stage,
.cm-vid-card > .cm-vid-meta {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#cm-vid-questionnaire.cm-vid-card .cm-vid-stage.is-playing,
#cm-vid-questionnaire.cm-vid-card .bb-stage.bb-playing,
.cm-vid-card .cm-vid-stage.is-playing,
.cm-vid-card .bb-stage.bb-playing {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: center !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}

#cm-vid-questionnaire.cm-vid-card .cm-vid-stage video,
.cm-vid-card .cm-vid-stage video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

#cm-vid-questionnaire.cm-vid-card .bb-stage:not(.bb-playing) > video,
.cm-vid-card .bb-stage:not(.bb-playing) > video {
  height: 100% !important;
}

.m508-vibe-social-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(37, 99, 235, 0.14) 100%);
  border: 1px solid rgba(191, 219, 254, 0.25);
  margin-bottom: 4px;
}

.m508-vibe-sh-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.m508-vibe-emblem {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFF3C4, #D99B16 75%);
  border: 1.5px solid rgba(255, 244, 204, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(217, 155, 22, 0.35);
}
.m508-vibe-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m508-vibe-handle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.m508-vibe-handle {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.m508-vibe-verified {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
  flex-shrink: 0;
}

.m508-vibe-official-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #DBEAFE;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.m508-vibe-sh-sub {
  font-size: 12px;
  color: #B8CEEA;
  margin-top: 2px;
}

.m508-vibe-earn-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE699 0%, #F5C242 100%);
  color: #0F1D3A;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px -6px rgba(245, 194, 66, 0.55);
}

/* Shared Social Action Footer Bar (used on #cm-vid-questionnaire AND #c501-showcase-home) */
.m508-social-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(11, 25, 51, 0.88) 0%, rgba(20, 44, 88, 0.92) 100%);
  border: 1.5px solid rgba(246, 216, 132, 0.44);
  box-shadow: 0 12px 28px -12px rgba(4, 12, 28, 0.55);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}

.m508-social-bar--501 {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(20, 15, 10, 0.88) 0%, rgba(16, 33, 66, 0.92) 100%);
  border-color: rgba(246, 216, 132, 0.52);
}

.m508-sb-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.m508-sb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #FCE6A6;
}

.m508-sb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.85);
  flex-shrink: 0;
}

.m508-sb-ref-pill {
  font-size: 11px;
  font-weight: 700;
  color: #DBEAFE;
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(147, 197, 253, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
}

.m508-sb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.m508-sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
  white-space: nowrap;
}

.m508-sb-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.m508-sb-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.m508-sb-btn--primary {
  background: linear-gradient(135deg, #FFE699 0%, #E5AE32 100%);
  color: #0B1933 !important;
  border-color: #FFF2C2;
  box-shadow: 0 6px 16px -6px rgba(229, 174, 50, 0.58);
}

.m508-sb-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: #FFFFFF !important;
}

.m508-sb-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.m508-sb-btn.is-copied {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border-color: #6EE7B7 !important;
  color: #FFFFFF !important;
}

.m508-sb-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.m508-sb-ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F1F5F9 !important;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.m508-sb-ch:hover {
  background: rgba(246, 216, 132, 0.22);
  border-color: #F6D884;
  color: #FFFDF8 !important;
  transform: translateY(-1px);
}

/* Luminous Share Modal */
.m508-vshare-bg {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(11, 25, 51, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}
.m508-vshare-bg[hidden] {
  display: none !important;
}
.m508-vshare-modal {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FF 100%);
  border: 1.5px solid #C8DDF2;
  border-radius: 22px;
  padding: 24px;
  color: #0F1D3A;
  box-shadow: 0 30px 70px -18px rgba(8, 22, 48, 0.55);
}
.m508-vshare-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.m508-vshare-head h3 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #0F1D3A;
  margin: 0;
  line-height: 1.1;
}
.m508-vshare-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F1D3A;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.m508-vshare-url {
  padding: 11px 13px;
  border-radius: 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  font-size: 12.5px;
  font-weight: 700;
  word-break: break-all;
  margin: 10px 0 12px;
}
.m508-vshare-cap {
  padding: 11px 13px;
  border-radius: 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #451A03;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.m508-vshare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.m508-vshare-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1.5px solid #C8DDF2;
  color: #0F1D3A !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
.m508-vshare-link:hover {
  background: #EFF6FF;
  border-color: #2563EB;
}
.m508-vshare-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 3. #demos: LIVE DEMOS FULL LUMINOUS NEW VIBE + ULTRA-SHARP HERO SHOTS ---------- */
#demos.n5-sec,
#demos.n5-sec.n5-navy {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F8FE 54%, #E7F3FC 100%) !important;
  color: #0F1D3A !important;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif !important;
  padding: 72px 20px 80px !important;
  border-top: 1px solid #DCEAF8;
  border-bottom: 1px solid #D5E6F7;
}

#demos .n5-wrap {
  max-width: 1240px;
  margin: 0 auto;
}

#demos .n5-eyebrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 16px !important;
  margin: 0 0 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #FFE699 0%, #F5C242 100%) !important;
  border: 1px solid rgba(217, 155, 22, 0.4) !important;
  color: #0F1D3A !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 16px -6px rgba(217, 155, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

#demos .n5-eyebrow::before,
#demos .n5-eyebrow::after {
  display: none !important;
  content: none !important;
}

#demos .n5-h {
  font-family: 'Cormorant', Georgia, serif !important;
  font-size: clamp(36px, 4.2vw, 54px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
  color: #0F1D3A !important;
  margin: 0 0 14px !important;
}

#demos .n5-lead {
  color: #334155 !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  max-width: 660px !important;
  margin: 0 auto !important;
}

#demos .n5-demos {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 40px !important;
}

@media (max-width: 960px) {
  #demos .n5-demos {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}

#demos .n5-demo {
  display: flex !important;
  flex-direction: column !important;
  background: #FFFFFF !important;
  border: 1.5px solid #C8DDF2 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  box-shadow:
    0 20px 50px -24px rgba(24, 72, 148, 0.2),
    0 0 28px rgba(147, 197, 253, 0.18) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

#demos .n5-demo:hover {
  transform: translateY(-5px) !important;
  border-color: #60A5FA !important;
  box-shadow:
    0 28px 60px -22px rgba(24, 72, 148, 0.28),
    0 0 34px rgba(96, 165, 250, 0.28) !important;
}

/* Sleek luminous browser-frame bezel wrapping ultra-sharp 16:10 hero shot */
#demos .n5-shot {
  position: relative !important;
  background: #F4F9FF !important;
  padding: 0 !important;
  border-bottom: 1px solid #DCEAF8 !important;
  overflow: hidden !important;
}

#demos .n5-shot > span {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 14px !important;
  background: linear-gradient(180deg, #F8FBFF 0%, #EDF5FD 100%) !important;
  border-bottom: 1px solid #D9E8F7 !important;
}

#demos .n5-shot > span i {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  display: inline-block !important;
}
#demos .n5-shot > span i:nth-child(1) { background: #F87171 !important; }
#demos .n5-shot > span i:nth-child(2) { background: #FBBF24 !important; }
#demos .n5-shot > span i:nth-child(3) { background: #34D399 !important; }

#demos .n5-shot > span::after {
  content: attr(data-url);
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid #D5E4F4;
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.4;
}

#demos .n5-shot img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 0.35s ease !important;
}

#demos .n5-demo:hover .n5-shot img {
  transform: scale(1.03) !important;
}

#demos .n5-demo-b {
  padding: 22px 22px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  background: #FFFFFF !important;
}

#demos .n5-demo-b h3 {
  font-family: 'Cormorant', Georgia, serif !important;
  font-size: 27px !important;
  font-weight: 700 !important;
  color: #0F1D3A !important;
  line-height: 1.15 !important;
  margin: 0 0 8px !important;
}

#demos .n5-demo-b p {
  color: #475569 !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  margin: 0 0 18px !important;
  flex: 1 1 auto !important;
}

#demos .n5-demo-b em {
  font-style: normal !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  gap: 6px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #1E40AF 0%, #0F1D3A 100%) !important;
  color: #FFFDF8 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px -6px rgba(30, 64, 175, 0.42) !important;
  transition: background 0.16s ease, transform 0.16s ease !important;
}

#demos .n5-demo:hover .n5-demo-b em {
  background: linear-gradient(135deg, #FFE699 0%, #E5AE32 100%) !important;
  color: #0F1D3A !important;
}

#demos .n5-demos-foot {
  margin-top: 34px !important;
  text-align: center !important;
}

#demos .n5-demos-foot .n5-btn.n5-btn-line {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 13px 28px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  border: 2px solid #0F1D3A !important;
  color: #0F1D3A !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px -12px rgba(15, 29, 58, 0.25) !important;
  transition: all 0.16s ease !important;
}

#demos .n5-demos-foot .n5-btn.n5-btn-line:hover {
  background: #0F1D3A !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Mobile polish */
@media (max-width: 640px) {
  #mytrust-map.n5-sec,
  #demos.n5-sec {
    padding: 48px 14px 56px !important;
  }
  #mytrust-map .tm5-mapbox {
    padding: 14px !important;
    border-radius: 18px !important;
  }
  #mytrust-map .tm5-foot-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .m508-vibe-social-head {
    padding: 10px 12px;
  }
  .m508-social-bar {
    padding: 12px;
  }
  .m508-sb-btn {
    font-size: 12px;
    padding: 7px 11px;
  }
  .m508-vshare-grid {
    grid-template-columns: 1fr;
  }
}

