/* MTF Blog Sections - Clean Modern Design */
/* Brand-aligned layout system for Made To Fit blog posts */

:root {
  --mtf-bs-dark: #061C1C;
  --mtf-bs-dark-2: #112626;
  --mtf-bs-accent: #FFEAD5;
  --mtf-bs-sage: #8FA29A;
  --mtf-bs-accent-dark: #8FA29A; /* Sage - for light backgrounds where #FFEAD5 has poor contrast */
  --mtf-bs-white: #ffffff;
  --mtf-bs-light-gray: #F3F4F6;
  --mtf-bs-text-dark: #061C1C;
  --mtf-bs-text-body: #3d3d3d;
  --mtf-bs-text-muted: #555555;
  --mtf-bs-text-light: #ffffff;
  --mtf-bs-border: #D1D5DB;
  --mtf-bs-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mtf-bs-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mtf-bs-space-section: 120px;
  --mtf-bs-max-width: 1200px;
  --mtf-bs-text-width: 720px;
  --mtf-bs-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --mtf-bs-radius: 12px;
}

/* ========== BASE ========== */

.mtf-bs-wrapper {
  font-family: var(--mtf-bs-font-body);
  color: var(--mtf-bs-text-body);
  line-height: 1.8;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

.mtf-bs-section {
  padding: var(--mtf-bs-space-section) 32px;
  position: relative;
  overflow: visible;

  /* Full-width background breakout */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Keep overflow hidden on sections with bg images/overlays */
.mtf-bs-hero,
.mtf-bs-image-break,
.mtf-bs-depth-feature { overflow: hidden; }

.mtf-bs-container { max-width: var(--mtf-bs-max-width); margin: 0 auto; }

/* Eyebrow label */
.mtf-bs-eyebrow {
  display: block;
  font-family: var(--mtf-bs-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mtf-bs-accent);
  margin-bottom: 24px;
}

/* Section number - clean label */
.mtf-bs-section-number {
  display: block;
  font-family: var(--mtf-bs-font-heading);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--mtf-bs-accent);
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Heading styles */
.mtf-bs-heading {
  font-family: var(--mtf-bs-font-heading);
  font-size: calc(clamp(28px, 3vw, 44px) * var(--mtf-bs-heading-scale, 1));
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 28px 0;
  color: var(--mtf-bs-heading-color, var(--mtf-bs-text-dark));
  letter-spacing: -0.02em;
}

.mtf-bs-body {
  font-size: var(--mtf-bs-body-font-size, 18px);
  line-height: 1.85;
  color: var(--mtf-bs-text-body);
}

.mtf-bs-body p { margin: 0 0 20px 0; }
.mtf-bs-body p:last-child { margin-bottom: 0; }

/* Mood system */
[data-mood="dark"] { background: var(--mtf-bs-dark); color: var(--mtf-bs-white); }
[data-mood="dark"] .mtf-bs-heading { color: var(--mtf-bs-heading-color, var(--mtf-bs-white)); }
[data-mood="dark"] .mtf-bs-body { color: rgba(255,255,255,0.85); }
[data-mood="light"] { background: var(--mtf-bs-white); }
[data-mood="accent"] { background: var(--mtf-bs-dark); color: var(--mtf-bs-white); }
[data-mood="accent"] .mtf-bs-heading { color: var(--mtf-bs-heading-color, var(--mtf-bs-white)); }
[data-mood="accent"] .mtf-bs-body { color: rgba(255,255,255,0.85); }
[data-mood="accent"] .mtf-bs-card { background: var(--mtf-bs-card-bg, rgba(255,255,255,0.05)); border-color: var(--mtf-bs-card-border, rgba(255,255,255,0.08)); }
[data-mood="accent"] .mtf-bs-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
[data-mood="accent"] .mtf-bs-card-title { color: var(--mtf-bs-white); }
[data-mood="accent"] .mtf-bs-card-text { color: rgba(255,255,255,0.75); }
[data-mood="accent"] .mtf-bs-card-number { background: var(--mtf-bs-card-num-bg, rgba(255,234,213,0.15)); color: var(--mtf-bs-card-num-text, var(--mtf-bs-accent)); }
[data-mood="accent"] .mtf-bs-list-icon { background: var(--mtf-bs-list-icon-bg, var(--mtf-bs-accent)); color: var(--mtf-bs-list-icon-text, var(--mtf-bs-dark)); }
[data-mood="accent"] .mtf-bs-list-item { border-bottom-color: var(--mtf-bs-list-border, rgba(255,255,255,0.1)); }
[data-mood="accent"] .mtf-bs-list-text { color: rgba(255,255,255,0.85); }
[data-mood="accent"] .mtf-bs-split-col-heading { color: var(--mtf-bs-white); }
[data-mood="accent"] .mtf-bs-split-col-text { color: rgba(255,255,255,0.85); }
[data-mood="accent"] .mtf-bs-stat-number { color: var(--mtf-bs-stat-num, var(--mtf-bs-accent)); }
[data-mood="accent"] .mtf-bs-stat-label { color: var(--mtf-bs-white); }
[data-mood="accent"] .mtf-bs-stat-description { color: rgba(255,255,255,0.75); }
[data-mood="accent"] .mtf-bs-timeline-number { background: var(--mtf-bs-tl-badge-bg, var(--mtf-bs-accent)); color: var(--mtf-bs-tl-badge-text, var(--mtf-bs-dark)); }
[data-mood="accent"] .mtf-bs-timeline-title { color: var(--mtf-bs-white); }
[data-mood="accent"] .mtf-bs-timeline-description { color: rgba(255,255,255,0.75); }
[data-mood="accent"] .mtf-bs-testimonial-name { color: var(--mtf-bs-white); }
[data-mood="accent"] .mtf-bs-depth-heading { color: var(--mtf-bs-white); }
[data-mood="accent"] .mtf-bs-depth-text { color: rgba(255,255,255,0.85); }
[data-mood="accent"] .mtf-bs-faq-item { background: var(--mtf-bs-faq-item-bg, rgba(255,255,255,0.05)); border-color: var(--mtf-bs-faq-item-border, rgba(255,255,255,0.08)); }
[data-mood="accent"] .mtf-bs-faq-question { color: var(--mtf-bs-white); }
[data-mood="accent"] .mtf-bs-faq-answer { color: rgba(255,255,255,0.75); }
[data-mood="white"] { background: var(--mtf-bs-white); }

/* Light mood - use darker accent color for contrast */
[data-mood="light"] .mtf-bs-eyebrow { color: var(--mtf-bs-accent-dark); }
[data-mood="light"] .mtf-bs-section-number { color: var(--mtf-bs-accent-dark); }
[data-mood="light"] .mtf-bs-cta-button { background: var(--mtf-bs-cta-btn-bg, var(--mtf-bs-dark)); color: var(--mtf-bs-cta-btn-text, var(--mtf-bs-white)); border-color: var(--mtf-bs-cta-btn-border, var(--mtf-bs-dark)); }
[data-mood="light"] .mtf-bs-cta-button:hover { background: var(--mtf-bs-dark-2); border-color: var(--mtf-bs-dark-2); }
[data-mood="light"] .mtf-bs-depth-accent-text { color: var(--mtf-bs-accent-dark); }
[data-mood="light"] .mtf-bs-toc-link:hover { border-bottom-color: var(--mtf-bs-accent-dark); }
[data-mood="light"] .mtf-bs-blockquote::before { color: var(--mtf-bs-quote-mark, var(--mtf-bs-accent-dark)); opacity: 0.4; }
[data-mood="light"][data-variant="pullquote"] .mtf-bs-blockquote { border-left-color: var(--mtf-bs-quote-border, var(--mtf-bs-accent-dark)) !important; }

/* ========== HERO ========== */

.mtf-bs-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #061C1C 0%, #112626 45%, #0d2e2e 75%, #061C1C 100%);
  color: var(--mtf-bs-white);
  padding: 160px 40px 100px;
  opacity: 1;
  transform: none;
}

.mtf-bs-section-accent { display: none; }

.mtf-bs-hero .mtf-bs-container { max-width: 900px; position: relative; z-index: 1; }

.mtf-bs-hero .mtf-bs-eyebrow { color: var(--mtf-bs-accent); margin-bottom: 28px; }

.mtf-bs-hero-heading {
  font-family: var(--mtf-bs-font-heading);
  font-size: calc(clamp(36px, 5vw, 60px) * var(--mtf-bs-heading-scale, 1));
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 28px 0;
  color: var(--mtf-bs-white);
  letter-spacing: -0.03em;
}

.mtf-bs-hero-subheading {
  font-family: var(--mtf-bs-font-body);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin: 0;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero background image */
.mtf-bs-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mtf-bs-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(6,28,28,0.92) 0%, rgba(17,38,38,0.80) 50%, rgba(6,28,28,0.92) 100%); }

/* Hero variants */
.mtf-bs-hero[data-variant="cinematic"] { min-height: 90vh; }
.mtf-bs-hero[data-variant="editorial"] { min-height: 70vh; text-align: left; }
.mtf-bs-hero[data-variant="editorial"] .mtf-bs-hero-subheading { margin-left: 0; }
.mtf-bs-hero[data-variant="minimal"] { min-height: 60vh; background: var(--mtf-bs-light-gray); color: var(--mtf-bs-text-dark); }
.mtf-bs-hero[data-variant="minimal"] .mtf-bs-hero-heading { color: var(--mtf-bs-text-dark); }
.mtf-bs-hero[data-variant="minimal"] .mtf-bs-hero-subheading { color: var(--mtf-bs-text-muted); }

/* ========== TEXT + IMAGE ========== */

.mtf-bs-text-image { padding: var(--mtf-bs-space-section) 32px; }

.mtf-bs-grid { display: grid; gap: 60px; align-items: center; }
.mtf-bs-grid--editorial { grid-template-columns: 5fr 7fr; }
[data-img-position="left"] .mtf-bs-grid--editorial { grid-template-columns: 7fr 5fr; }
[data-img-position="left"] .mtf-bs-grid__text { order: 2; }
[data-img-position="left"] .mtf-bs-grid__media { order: 1; }

/* Overlap variant - clean (no negative margins) */
.mtf-bs-grid--overlap { grid-template-columns: 1fr 1fr; gap: 40px; }
.mtf-bs-grid--overlap .mtf-bs-grid__text { padding: 24px 0; }

/* Image frame - with rounded corners */
.mtf-bs-image-frame { position: relative; overflow: visible; border-radius: 16px; }

.mtf-bs-image-accent { display: none; }

.mtf-bs-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

/* No hover effect on image */
.mtf-bs-image-frame:hover .mtf-bs-image { transform: none; }

.mtf-bs-image-placeholder {
  aspect-ratio: 4/3;
  background: var(--mtf-bs-light-gray);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtf-bs-image-placeholder::after {
  content: 'MTF';
  font-family: var(--mtf-bs-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--mtf-bs-text-dark);
  opacity: 0.08;
  letter-spacing: 0.15em;
}

/* ========== FEATURES LIST ========== */

.mtf-bs-features {
  list-style: none;
  margin: 32px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mtf-bs-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Square icon with rounded corners */
.mtf-bs-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--mtf-bs-feat-icon-bg, var(--mtf-bs-light-gray));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

/* Default checkmark when icon is empty */
.mtf-bs-feature-icon:empty::after {
  content: '';
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--mtf-bs-feat-check, var(--mtf-bs-dark));
  border-bottom: 2.5px solid var(--mtf-bs-feat-check, var(--mtf-bs-dark));
  transform: rotate(-45deg);
  margin-bottom: 3px;
}

.mtf-bs-feature-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.mtf-bs-feature-title {
  font-family: var(--mtf-bs-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--mtf-bs-text-dark);
  line-height: 1.4;
}

.mtf-bs-feature-desc {
  font-size: 14px;
  color: var(--mtf-bs-text-muted);
  line-height: 1.5;
}

/* Features in card blocks (optional via data-feature-style="cards") */
[data-feature-style="cards"] .mtf-bs-features {
  gap: 12px;
}

[data-feature-style="cards"] .mtf-bs-feature {
  background: var(--mtf-bs-white);
  border: 1px solid var(--mtf-bs-border);
  border-radius: 12px;
  padding: 20px;
  gap: 16px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

[data-feature-style="cards"] .mtf-bs-feature:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

[data-feature-style="cards"] .mtf-bs-feature-icon {
  background: var(--mtf-bs-light-gray);
}

/* Features - dark mood */
[data-mood="dark"] .mtf-bs-feature-icon { background: var(--mtf-bs-feat-icon-bg, rgba(255,255,255,0.1)); }
[data-mood="dark"] .mtf-bs-feature-icon::after { border-color: var(--mtf-bs-feat-check, var(--mtf-bs-accent)); }
[data-mood="dark"] .mtf-bs-feature-title { color: #ffffff !important; }
[data-mood="dark"] .mtf-bs-feature-desc { color: rgba(255,255,255,0.8) !important; }

/* Features - accent mood (dark background) */
[data-mood="accent"] .mtf-bs-feature-icon { background: var(--mtf-bs-feat-icon-bg, rgba(255,255,255,0.15)); }
[data-mood="accent"] .mtf-bs-feature-icon::after { border-color: var(--mtf-bs-feat-check, var(--mtf-bs-accent)); }
[data-mood="accent"] .mtf-bs-feature-title { color: #ffffff !important; }
[data-mood="accent"] .mtf-bs-feature-desc { color: rgba(255,255,255,0.8) !important; }

/* Features cards in dark/accent mood */
[data-mood="dark"][data-feature-style="cards"] .mtf-bs-feature,
[data-mood="accent"][data-feature-style="cards"] .mtf-bs-feature {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

/* ========== IMAGE BADGES (Glassmorphism Stickers - Edge Positioned) ========== */

.mtf-bs-image-badges {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  pointer-events: none;
  z-index: 10;
}

.mtf-bs-image-badge {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  min-width: 160px;
  padding: 18px 22px;
  /* Glassmorphism effect */
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.4s var(--mtf-bs-ease);
  pointer-events: auto;
}

/* No hover effect on badges */

/* Badge positions - sticking out from edges */
.mtf-bs-image-badge[data-position="top-left"] { top: 0; left: -10px; }
.mtf-bs-image-badge[data-position="top-right"] { top: 0; right: -10px; }
.mtf-bs-image-badge[data-position="bottom-left"] { bottom: 0; left: -10px; }
.mtf-bs-image-badge[data-position="bottom-right"] { bottom: 0; right: -10px; }
.mtf-bs-image-badge[data-position="center-left"] { top: 50%; left: -10px; transform: translateY(-50%); }
.mtf-bs-image-badge[data-position="center-right"] { top: 50%; right: -10px; transform: translateY(-50%); }

/* Badge icon - square with rounded corners */
.mtf-bs-badge-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(120,120,120,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--mtf-bs-dark);
}

/* Badge text - title ABOVE subtitle (vertical stack) */
.mtf-bs-badge-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mtf-bs-badge-title {
  font-family: var(--mtf-bs-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--mtf-bs-dark);
  line-height: 1.2;
  display: block;
}

.mtf-bs-badge-subtitle {
  font-size: 14px;
  color: var(--mtf-bs-text-muted);
  line-height: 1.2;
  display: block;
  opacity: 0.8;
}

/* Badge - dark background images */
.mtf-bs-image-badge--dark,
[data-mood="dark"] .mtf-bs-image-badge,
[data-mood="accent"] .mtf-bs-image-badge {
  background: rgba(50,50,50,0.7);
  border-color: rgba(255,255,255,0.15);
}
.mtf-bs-image-badge--dark .mtf-bs-badge-icon,
[data-mood="dark"] .mtf-bs-badge-icon,
[data-mood="accent"] .mtf-bs-badge-icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.mtf-bs-image-badge--dark .mtf-bs-badge-title,
[data-mood="dark"] .mtf-bs-badge-title,
[data-mood="accent"] .mtf-bs-badge-title { color: #ffffff; }
.mtf-bs-image-badge--dark .mtf-bs-badge-subtitle,
[data-mood="dark"] .mtf-bs-badge-subtitle,
[data-mood="accent"] .mtf-bs-badge-subtitle { color: rgba(255,255,255,0.7); }

/* ========== TEXT SECTION ========== */

.mtf-bs-text { padding: var(--mtf-bs-space-section) 32px; }
.mtf-bs-text .mtf-bs-container { max-width: var(--mtf-bs-text-width); }

/* Dropcap variant */
[data-variant="dropcap"] .mtf-bs-body p:first-child::first-letter {
  font-family: var(--mtf-bs-font-heading);
  float: left;
  font-size: 68px;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--mtf-bs-text-dark);
  font-weight: 700;
}

/* ========== CARDS ========== */

.mtf-bs-cards { padding: var(--mtf-bs-space-section) 32px; }

.mtf-bs-cards .mtf-bs-heading {
  text-align: center;
  margin-bottom: 56px;
}

.mtf-bs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Dynamic symmetrical card layouts based on count */
.mtf-bs-card-grid[data-card-count="1"] { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
.mtf-bs-card-grid[data-card-count="2"] { grid-template-columns: repeat(2, 1fr); }
.mtf-bs-card-grid[data-card-count="3"] { grid-template-columns: repeat(3, 1fr); }
.mtf-bs-card-grid[data-card-count="4"] { grid-template-columns: repeat(2, 1fr); }
.mtf-bs-card-grid[data-card-count="5"] { grid-template-columns: repeat(3, 1fr); }
.mtf-bs-card-grid[data-card-count="6"] { grid-template-columns: repeat(3, 1fr); }
.mtf-bs-card-grid[data-card-count="7"] { grid-template-columns: repeat(4, 1fr); }
.mtf-bs-card-grid[data-card-count="8"] { grid-template-columns: repeat(4, 1fr); }
.mtf-bs-card-grid[data-card-count="9"] { grid-template-columns: repeat(3, 1fr); }

.mtf-bs-card {
  background: var(--mtf-bs-card-bg, var(--mtf-bs-white));
  border-radius: var(--mtf-bs-radius);
  padding: 40px 32px;
  border: 1px solid var(--mtf-bs-card-border, var(--mtf-bs-border));
  transition: box-shadow 0.3s var(--mtf-bs-ease), transform 0.3s var(--mtf-bs-ease);
  position: relative;
}

.mtf-bs-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.mtf-bs-card-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mtf-bs-card-num-bg, var(--mtf-bs-accent));
  font-family: var(--mtf-bs-font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--mtf-bs-card-num-text, var(--mtf-bs-text-dark));
  margin-bottom: 20px;
}

.mtf-bs-card-title {
  font-family: var(--mtf-bs-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: var(--mtf-bs-text-dark);
}

.mtf-bs-card-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mtf-bs-text-muted);
  margin: 0;
}

/* Dark cards */
[data-mood="dark"] .mtf-bs-card {
  background: var(--mtf-bs-card-bg, rgba(255,255,255,0.05));
  border-color: var(--mtf-bs-card-border, rgba(255,255,255,0.08));
}
[data-mood="dark"] .mtf-bs-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
[data-mood="dark"] .mtf-bs-card-title { color: var(--mtf-bs-white); }
[data-mood="dark"] .mtf-bs-card-text { color: rgba(255,255,255,0.75); }
[data-mood="dark"] .mtf-bs-card-number { background: var(--mtf-bs-card-num-bg, rgba(255,234,213,0.15)); color: var(--mtf-bs-card-num-text, var(--mtf-bs-accent)); }

/* ========== CTA ========== */

.mtf-bs-cta { text-align: center; padding: 100px 32px; }
.mtf-bs-cta .mtf-bs-container { max-width: 700px; }

.mtf-bs-cta-heading {
  font-family: var(--mtf-bs-font-heading);
  font-size: calc(clamp(30px, 4vw, 48px) * var(--mtf-bs-heading-scale, 1));
  font-weight: 800;
  margin: 0 0 20px 0;
  color: inherit;
  letter-spacing: -0.02em;
}

.mtf-bs-cta-text {
  font-size: 18px;
  margin: 0 0 40px 0;
  opacity: 0.85;
  line-height: 1.7;
}

.mtf-bs-cta-button {
  display: inline-block;
  padding: 16px 48px;
  background: var(--mtf-bs-cta-btn-bg, var(--mtf-bs-accent));
  color: var(--mtf-bs-cta-btn-text, var(--mtf-bs-dark));
  font-family: var(--mtf-bs-font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s var(--mtf-bs-ease);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--mtf-bs-cta-btn-border, var(--mtf-bs-accent));
}

.mtf-bs-cta-button:hover {
  background: transparent;
  color: var(--mtf-bs-accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,234,213,0.2);
}

[data-variant="elegant"] .mtf-bs-cta-button { background: transparent; color: var(--mtf-bs-accent); }
[data-variant="elegant"] .mtf-bs-cta-button:hover { background: var(--mtf-bs-accent); color: var(--mtf-bs-dark); }

/* ========== QUOTE ========== */

.mtf-bs-quote { padding: var(--mtf-bs-space-section) 32px; }
/* Quote defaults to dark mood if not specified */
.mtf-bs-quote:not([data-mood]) { background: var(--mtf-bs-dark); color: var(--mtf-bs-white); }
.mtf-bs-quote:not([data-mood]) .mtf-bs-quote-text { color: var(--mtf-bs-white); }
/* Quote light mood */
.mtf-bs-quote[data-mood="light"] { background: var(--mtf-bs-white); }
.mtf-bs-quote[data-mood="light"] .mtf-bs-quote-text { color: var(--mtf-bs-text-dark); }
.mtf-bs-quote[data-mood="light"] .mtf-bs-quote-author { color: var(--mtf-bs-quote-author, var(--mtf-bs-text-muted)); }
.mtf-bs-quote[data-mood="light"] .mtf-bs-blockquote::before { color: var(--mtf-bs-quote-mark, var(--mtf-bs-accent-dark)); opacity: 0.3; }
.mtf-bs-quote .mtf-bs-container { max-width: var(--mtf-bs-text-width); }

.mtf-bs-blockquote {
  margin: 0 !important;
  padding: 0 !important;
  border-left: none !important;
  border: none !important;
  background: transparent !important;
  text-align: center;
  position: relative;
}

.mtf-bs-blockquote::before {
  content: '\201C';
  display: block;
  font-size: 80px;
  color: var(--mtf-bs-quote-mark, var(--mtf-bs-accent));
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 0.5;
  margin-bottom: 24px;
}

.mtf-bs-quote-text {
  font-family: var(--mtf-bs-font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
  color: var(--mtf-bs-white);
  margin: 0 0 20px 0;
}

.mtf-bs-quote-author {
  font-family: var(--mtf-bs-font-body);
  font-size: 13px;
  color: var(--mtf-bs-quote-author, var(--mtf-bs-sage));
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  text-align: center;
}

/* Pullquote variant - left aligned on light bg */
[data-variant="pullquote"] .mtf-bs-blockquote { text-align: left; padding-left: 32px !important; border-left: 3px solid var(--mtf-bs-quote-border, var(--mtf-bs-accent)) !important; }
[data-variant="pullquote"] .mtf-bs-blockquote::before { display: none; }
[data-variant="pullquote"] .mtf-bs-quote-author { text-align: left; }

/* ========== LIST ========== */

.mtf-bs-list { padding: var(--mtf-bs-space-section) 32px; }
.mtf-bs-list .mtf-bs-container { max-width: var(--mtf-bs-text-width); }

.mtf-bs-list-items { list-style: none; padding: 0; margin: 0; }

.mtf-bs-list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--mtf-bs-list-border, var(--mtf-bs-border));
}

.mtf-bs-list-item:last-child { border-bottom: none; }

.mtf-bs-list-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mtf-bs-list-icon-bg, var(--mtf-bs-dark));
  color: var(--mtf-bs-list-icon-text, var(--mtf-bs-white));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.mtf-bs-list-icon::after { content: '\2713'; }

[data-mood="dark"] .mtf-bs-list-icon { background: var(--mtf-bs-list-icon-bg, var(--mtf-bs-accent)); color: var(--mtf-bs-list-icon-text, var(--mtf-bs-dark)); }
[data-mood="dark"] .mtf-bs-list-item { border-bottom-color: var(--mtf-bs-list-border, rgba(255,255,255,0.1)); }

.mtf-bs-list-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--mtf-bs-text-dark);
}

[data-mood="dark"] .mtf-bs-list-text { color: rgba(255,255,255,0.8); }

/* ========== FAQ ========== */

.mtf-bs-faq { padding: var(--mtf-bs-space-section) 32px; }
.mtf-bs-faq .mtf-bs-heading { text-align: center; margin-bottom: 48px; }
.mtf-bs-faq .mtf-bs-container { max-width: var(--mtf-bs-text-width); }

.mtf-bs-faq-items { display: flex; flex-direction: column; gap: 8px; }

.mtf-bs-faq-item {
  background: var(--mtf-bs-faq-item-bg, var(--mtf-bs-white));
  border: 1px solid var(--mtf-bs-faq-item-border, var(--mtf-bs-border));
  border-radius: var(--mtf-bs-radius);
  overflow: hidden;
}

.mtf-bs-faq-question {
  padding: 22px 28px;
  font-family: var(--mtf-bs-font-heading);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mtf-bs-text-dark);
  transition: background 0.2s;
}

.mtf-bs-faq-question::-webkit-details-marker { display: none; }
.mtf-bs-faq-question::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--mtf-bs-faq-toggle, var(--mtf-bs-sage)); transition: transform 0.2s; }
.mtf-bs-faq-item[open] .mtf-bs-faq-question::after { transform: rotate(45deg); }
.mtf-bs-faq-question:hover { background: rgba(143,162,154,0.06); }

.mtf-bs-faq-answer { padding: 0 28px 22px; font-size: 17px; line-height: 1.75; color: var(--mtf-bs-text-body); }
.mtf-bs-faq-answer p { margin: 0 0 12px 0; }
.mtf-bs-faq-answer p:last-child { margin-bottom: 0; }

/* ========== IMAGE BREAK ========== */

.mtf-bs-image-break {
  min-height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 32px;
}

.mtf-bs-image-break-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

[data-variant="parallax"] .mtf-bs-image-break-bg { background-attachment: fixed; }

.mtf-bs-image-break-overlay { position: absolute; inset: 0; }

[data-variant="static"] .mtf-bs-image-break-overlay { background: rgba(6,28,28,0.3); }
[data-variant="gradient-left"] .mtf-bs-image-break-overlay { background: linear-gradient(90deg, rgba(6,28,28,0.85) 0%, rgba(6,28,28,0.3) 60%, transparent 100%); }
[data-variant="gradient-right"] .mtf-bs-image-break-overlay { background: linear-gradient(270deg, rgba(6,28,28,0.85) 0%, rgba(6,28,28,0.3) 60%, transparent 100%); }
[data-variant="parallax"] .mtf-bs-image-break-overlay { background: rgba(6,28,28,0.4); }

.mtf-bs-image-break-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

[data-variant="gradient-left"] .mtf-bs-image-break-content { text-align: left; margin-right: auto; margin-left: 0; }
[data-variant="gradient-right"] .mtf-bs-image-break-content { text-align: right; margin-left: auto; margin-right: 0; }

.mtf-bs-image-break-heading {
  font-family: var(--mtf-bs-font-heading);
  font-size: calc(clamp(28px, 4vw, 48px) * var(--mtf-bs-heading-scale, 1));
  font-weight: 800;
  color: var(--mtf-bs-white);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mtf-bs-image-break-subtext {
  font-size: clamp(16px, 1.5vw, 20px);
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.65;
}

.mtf-bs-image-break--placeholder { background: linear-gradient(135deg, var(--mtf-bs-dark) 0%, var(--mtf-bs-dark-2) 100%); }
.mtf-bs-image-break-suggestion { display: none; }

/* ========== STATS ========== */

.mtf-bs-stats { padding: var(--mtf-bs-space-section) 32px; }
.mtf-bs-stats .mtf-bs-container { max-width: var(--mtf-bs-max-width); }

.mtf-bs-stat-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}

[data-variant="inline"] .mtf-bs-stat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
[data-variant="stacked"] .mtf-bs-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
[data-variant="highlight"] .mtf-bs-stat:first-child { grid-column: 1 / -1; }
[data-variant="highlight"] .mtf-bs-stat:first-child .mtf-bs-stat-number { font-size: clamp(64px, 8vw, 100px); }

.mtf-bs-stat-number {
  font-family: var(--mtf-bs-font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  color: var(--mtf-bs-stat-num, var(--mtf-bs-accent));
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

[data-mood="light"] .mtf-bs-stat-number { color: var(--mtf-bs-stat-num, var(--mtf-bs-dark)); }
[data-mood="dark"] .mtf-bs-stat-number { color: var(--mtf-bs-stat-num, var(--mtf-bs-accent)); }

.mtf-bs-stat-label {
  font-family: var(--mtf-bs-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--mtf-bs-text-dark);
  margin-bottom: 8px;
}

[data-mood="dark"] .mtf-bs-stat-label { color: var(--mtf-bs-white); }

.mtf-bs-stat-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mtf-bs-text-muted);
}

[data-mood="dark"] .mtf-bs-stat-description { color: rgba(255,255,255,0.75); }

/* ========== TESTIMONIAL ========== */

.mtf-bs-testimonial { padding: var(--mtf-bs-space-section) 32px; }
.mtf-bs-testimonial .mtf-bs-container { max-width: var(--mtf-bs-text-width); text-align: center; }

.mtf-bs-testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 28px;
  overflow: hidden;
  background: var(--mtf-bs-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtf-bs-testimonial-photo img { width: 100%; height: 100%; object-fit: cover; }
[data-mood="dark"] .mtf-bs-testimonial-photo { background: rgba(255,255,255,0.1); }

.mtf-bs-testimonial-quote {
  font-family: var(--mtf-bs-font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 28px 0;
  position: relative;
}

.mtf-bs-testimonial-quote::before {
  content: '\201C';
  display: block;
  font-size: 60px;
  color: var(--mtf-bs-test-mark, var(--mtf-bs-accent));
  opacity: 0.25;
  font-family: Georgia, serif;
  line-height: 0.5;
  margin-bottom: 20px;
}

.mtf-bs-testimonial-name {
  font-family: var(--mtf-bs-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--mtf-bs-text-dark);
  margin-bottom: 4px;
}

[data-mood="dark"] .mtf-bs-testimonial-name { color: var(--mtf-bs-white); }

.mtf-bs-testimonial-role {
  font-size: 14px;
  color: var(--mtf-bs-test-role, var(--mtf-bs-sage));
  letter-spacing: 0.05em;
}

/* Card variant */
[data-variant="card"] .mtf-bs-container {
  background: var(--mtf-bs-white);
  border: 1px solid var(--mtf-bs-border);
  border-radius: var(--mtf-bs-radius);
  padding: 48px 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

[data-mood="dark"][data-variant="card"] .mtf-bs-container {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

/* Minimal variant */
[data-variant="minimal"] .mtf-bs-testimonial-photo { display: none; }
[data-variant="minimal"] .mtf-bs-testimonial-quote::before { display: none; }

/* ========== GALLERY ========== */

.mtf-bs-gallery { padding: var(--mtf-bs-space-section) 32px; }

.mtf-bs-gallery-grid { display: grid; gap: 16px; }

[data-variant="grid-2"] .mtf-bs-gallery-grid { grid-template-columns: repeat(2, 1fr); }
[data-variant="grid-3"] .mtf-bs-gallery-grid { grid-template-columns: repeat(3, 1fr); }

[data-variant="masonry"] .mtf-bs-gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
}
[data-variant="masonry"] .mtf-bs-gallery-item:nth-child(odd) { grid-row: span 2; }

.mtf-bs-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--mtf-bs-radius);
  background: var(--mtf-bs-light-gray);
}

.mtf-bs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mtf-bs-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(transparent, rgba(6,28,28,0.7));
  color: var(--mtf-bs-white);
  font-size: 14px;
  font-weight: 500;
}

.mtf-bs-gallery-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtf-bs-gallery-placeholder::after {
  content: 'MTF';
  font-family: var(--mtf-bs-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--mtf-bs-text-dark);
  opacity: 0.08;
  letter-spacing: 0.15em;
}

/* ========== SPLIT ========== */

.mtf-bs-split { padding: var(--mtf-bs-space-section) 32px; }

.mtf-bs-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

[data-variant="comparison"] .mtf-bs-split-grid { gap: 40px; position: relative; }

[data-variant="comparison"] .mtf-bs-split-grid::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--mtf-bs-split-divider, var(--mtf-bs-border));
  transform: translateX(-50%);
}

[data-mood="dark"][data-variant="comparison"] .mtf-bs-split-grid::after { background: var(--mtf-bs-split-divider, rgba(255,255,255,0.12)); }
[data-variant="highlight"] .mtf-bs-split-grid { grid-template-columns: 3fr 2fr; }

.mtf-bs-split-col-heading {
  font-family: var(--mtf-bs-font-heading);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--mtf-bs-text-dark);
  letter-spacing: -0.02em;
}

[data-mood="dark"] .mtf-bs-split-col-heading { color: var(--mtf-bs-white); }

.mtf-bs-split-col-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--mtf-bs-text-body);
}

.mtf-bs-split-col-text p { margin: 0 0 16px 0; }
.mtf-bs-split-col-text p:last-child { margin-bottom: 0; }

[data-mood="dark"] .mtf-bs-split-col-text { color: rgba(255,255,255,0.85); }

/* ========== TIMELINE ========== */

.mtf-bs-timeline { padding: var(--mtf-bs-space-section) 32px; }
.mtf-bs-timeline .mtf-bs-container { max-width: 800px; }

.mtf-bs-timeline-items { position: relative; padding-left: 48px; }

.mtf-bs-timeline-items::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--mtf-bs-tl-line, var(--mtf-bs-accent));
  opacity: 0.3;
}

.mtf-bs-timeline-item { position: relative; padding-bottom: 48px; }
.mtf-bs-timeline-item:last-child { padding-bottom: 0; }

.mtf-bs-timeline-number {
  position: absolute;
  left: -48px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mtf-bs-tl-badge-bg, var(--mtf-bs-accent));
  color: var(--mtf-bs-tl-badge-text, var(--mtf-bs-dark));
  font-family: var(--mtf-bs-font-heading);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

[data-mood="dark"] .mtf-bs-timeline-number { background: var(--mtf-bs-tl-badge-bg, var(--mtf-bs-accent)); color: var(--mtf-bs-tl-badge-text, var(--mtf-bs-dark)); }

.mtf-bs-timeline-title {
  font-family: var(--mtf-bs-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--mtf-bs-text-dark);
}

[data-mood="dark"] .mtf-bs-timeline-title { color: var(--mtf-bs-white); }

.mtf-bs-timeline-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mtf-bs-text-muted);
  margin: 0;
}

[data-mood="dark"] .mtf-bs-timeline-description { color: rgba(255,255,255,0.75); }

/* Compact variant */
[data-variant="compact"] .mtf-bs-timeline-items { padding-left: 36px; }
[data-variant="compact"] .mtf-bs-timeline-items::before { left: 14px; }
[data-variant="compact"] .mtf-bs-timeline-number { width: 28px; height: 28px; font-size: 12px; left: -36px; }
[data-variant="compact"] .mtf-bs-timeline-item { padding-bottom: 32px; }

/* ========== DEPTH FEATURE ========== */

.mtf-bs-depth-feature { padding: 0; position: relative; }
.mtf-bs-depth-feature .mtf-bs-container { max-width: none; padding: 0; }

.mtf-bs-depth-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 70vh;
  position: relative;
}

.mtf-bs-depth-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--mtf-bs-dark);
}

.mtf-bs-depth-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Overlay on depth media */
.mtf-bs-depth-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,28,28,0.7) 0%, rgba(6,28,28,0.4) 50%, rgba(6,28,28,0.6) 100%);
  z-index: 1;
}

.mtf-bs-depth-card {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 80px auto;
  padding: 48px 44px;
  border-radius: var(--mtf-bs-radius);
}

[data-mood="dark"] .mtf-bs-depth-card { box-shadow: 0 16px 48px rgba(0,0,0,0.3); }

/* Variants for card positioning */
[data-variant="left-offset"] .mtf-bs-depth-card { margin-left: 8%; margin-right: auto; }
[data-variant="right-offset"] .mtf-bs-depth-card { margin-right: 8%; margin-left: auto; }
[data-variant="center-float"] .mtf-bs-depth-card { margin: 80px auto; }

.mtf-bs-depth-accent-text {
  font-family: var(--mtf-bs-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mtf-bs-accent);
  margin-bottom: 20px;
  display: block;
}

.mtf-bs-depth-heading {
  font-family: var(--mtf-bs-font-heading);
  font-size: calc(clamp(26px, 3vw, 40px) * var(--mtf-bs-heading-scale, 1));
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: var(--mtf-bs-text-dark);
  letter-spacing: -0.02em;
}

[data-mood="dark"] .mtf-bs-depth-heading { color: var(--mtf-bs-white); }

.mtf-bs-depth-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--mtf-bs-text-body);
}

[data-mood="dark"] .mtf-bs-depth-text { color: rgba(255,255,255,0.85); }

/* ========== BANNER ========== */

.mtf-bs-banner { padding: 56px 32px; text-align: center; }
.mtf-bs-banner .mtf-bs-container { max-width: 800px; }

[data-variant="accent"].mtf-bs-banner { background: var(--mtf-bs-accent); }
[data-variant="dark"].mtf-bs-banner { background: var(--mtf-bs-dark); color: var(--mtf-bs-white); }

.mtf-bs-banner-text {
  font-family: var(--mtf-bs-font-heading);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: inherit;
  letter-spacing: -0.02em;
}

[data-variant="accent"] .mtf-bs-banner-text { color: var(--mtf-bs-dark); }
[data-variant="dark"] .mtf-bs-banner-text { color: var(--mtf-bs-accent); }

.mtf-bs-banner-button {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 40px;
  font-family: var(--mtf-bs-font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s var(--mtf-bs-ease);
  border: 2px solid currentColor;
}

[data-variant="accent"] .mtf-bs-banner-button { color: var(--mtf-bs-dark); border-color: var(--mtf-bs-dark); }
[data-variant="accent"] .mtf-bs-banner-button:hover { background: var(--mtf-bs-dark); color: var(--mtf-bs-accent); }
[data-variant="dark"] .mtf-bs-banner-button { color: var(--mtf-bs-accent); border-color: var(--mtf-bs-accent); }
[data-variant="dark"] .mtf-bs-banner-button:hover { background: var(--mtf-bs-accent); color: var(--mtf-bs-dark); }
[data-variant="minimal"] .mtf-bs-banner-text { color: var(--mtf-bs-text-dark); }
[data-variant="minimal"] .mtf-bs-banner-button { color: var(--mtf-bs-dark); border-color: var(--mtf-bs-dark); }

/* ========== MAX-WIDTH ENFORCEMENT ========== */

.mtf-bs-split .mtf-bs-container,
.mtf-bs-gallery .mtf-bs-container { max-width: var(--mtf-bs-max-width); }

/* ========== GLASSMORPHISM DEPTH FEATURE ========== */
/* Frosted glass card overlapping background image */

.mtf-bs-depth-card {
  background: var(--mtf-bs-depth-card-bg, rgba(255,255,255,0.08)) !important;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

[data-mood="light"] .mtf-bs-depth-card {
  background: var(--mtf-bs-depth-card-bg, rgba(6,28,28,0.7)) !important;
  border-color: rgba(255,255,255,0.08);
}

[data-mood="light"] .mtf-bs-depth-heading { color: var(--mtf-bs-white); }
[data-mood="light"] .mtf-bs-depth-text { color: rgba(255,255,255,0.85); }
[data-mood="light"] .mtf-bs-depth-accent-text { color: var(--mtf-bs-accent); }

/* ========== IMAGE HOVER INTERACTIONS ========== */
/* Disabled - no hover effects on images or backgrounds */
.mtf-bs-gallery-caption { z-index: 2; }

/* Image placeholder improved styling */
.mtf-bs-image-placeholder {
  background: linear-gradient(135deg, var(--mtf-bs-light-gray) 0%, #e5e7eb 100%);
  position: relative;
}

[data-mood="dark"] .mtf-bs-image-placeholder,
[data-mood="accent"] .mtf-bs-image-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}

[data-mood="dark"] .mtf-bs-image-placeholder::after,
[data-mood="accent"] .mtf-bs-image-placeholder::after { color: rgba(255,255,255,0.08); }

/* ========== STATS CARD STYLE ========== */
/* Stat items as frosted cards with visual weight */

.mtf-bs-stat {
  padding: 28px 24px;
  border-radius: var(--mtf-bs-radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--mtf-bs-ease), box-shadow 0.3s var(--mtf-bs-ease);
}

.mtf-bs-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

[data-mood="light"] .mtf-bs-stat {
  background: var(--mtf-bs-white);
  border-color: var(--mtf-bs-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

[data-mood="light"] .mtf-bs-stat:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* ========== TOC (Table of Contents) ========== */

.mtf-bs-toc { padding: var(--mtf-bs-space-section) 32px; }
.mtf-bs-toc .mtf-bs-container { max-width: var(--mtf-bs-max-width); }

.mtf-bs-toc-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}

[data-variant="sidebar-right"] .mtf-bs-toc-grid { grid-template-columns: 1fr 200px; }
[data-variant="sidebar-right"] .mtf-bs-toc-sidebar { order: 2; }
[data-variant="sidebar-right"] .mtf-bs-toc-content { order: 1; }

.mtf-bs-toc-sidebar {
  position: sticky;
  top: 120px;
}

.mtf-bs-toc-label {
  font-family: var(--mtf-bs-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mtf-bs-text-muted);
  margin-bottom: 20px;
}

[data-mood="dark"] .mtf-bs-toc-label { color: rgba(255,255,255,0.5); }

.mtf-bs-toc-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mtf-bs-toc-link {
  display: block;
  font-size: 15px;
  color: var(--mtf-bs-text-body);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mtf-bs-toc-link:hover {
  color: var(--mtf-bs-text-dark);
  border-bottom-color: var(--mtf-bs-accent);
}

[data-mood="dark"] .mtf-bs-toc-link { color: rgba(255,255,255,0.7); }
[data-mood="dark"] .mtf-bs-toc-link:hover { color: var(--mtf-bs-white); }

.mtf-bs-toc-heading {
  font-family: var(--mtf-bs-font-heading);
  font-size: calc(clamp(32px, 4vw, 52px) * var(--mtf-bs-heading-scale, 1));
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 32px 0;
  color: var(--mtf-bs-text-dark);
  letter-spacing: -0.02em;
}

[data-mood="dark"] .mtf-bs-toc-heading { color: var(--mtf-bs-white); }

.mtf-bs-toc-text {
  font-size: 18px;
  line-height: 1.85;
  color: var(--mtf-bs-text-body);
}

.mtf-bs-toc-text p { margin: 0 0 20px 0; }
.mtf-bs-toc-text p:last-child { margin-bottom: 0; }

[data-mood="dark"] .mtf-bs-toc-text { color: rgba(255,255,255,0.85); }

/* ========== IMAGE SPLIT ========== */

.mtf-bs-image-split { padding: 0; }
.mtf-bs-image-split .mtf-bs-container { max-width: none; padding: 0; }

.mtf-bs-image-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

[data-variant="left-large"] .mtf-bs-image-split-grid { grid-template-columns: 6fr 4fr; }
[data-variant="right-large"] .mtf-bs-image-split-grid { grid-template-columns: 4fr 6fr; }

.mtf-bs-image-split-item {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.mtf-bs-image-split-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.mtf-bs-image-split-placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,28,28,0.9) 0%, rgba(17,38,38,0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtf-bs-image-split-placeholder::after {
  content: 'MTF';
  font-family: var(--mtf-bs-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.2em;
}

.mtf-bs-image-split-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  z-index: 2;
}

.mtf-bs-image-split-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}

.mtf-bs-image-split-title {
  font-family: var(--mtf-bs-font-heading);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--mtf-bs-white);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.mtf-bs-image-split-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 400px;
}

/* ========== PRODUCT SHOWCASE ========== */

.mtf-bs-product-showcase { padding: var(--mtf-bs-space-section) 32px; }
.mtf-bs-product-showcase .mtf-bs-container { max-width: var(--mtf-bs-max-width); }

.mtf-bs-product-header {
  text-align: center;
  margin-bottom: 56px;
}

.mtf-bs-product-eyebrow {
  display: block;
  font-family: var(--mtf-bs-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mtf-bs-accent);
  margin-bottom: 20px;
}

.mtf-bs-product-heading {
  font-family: var(--mtf-bs-font-heading);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px 0;
  color: var(--mtf-bs-text-dark);
  letter-spacing: -0.02em;
}

[data-mood="dark"] .mtf-bs-product-heading { color: var(--mtf-bs-white); }

.mtf-bs-product-subheading {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mtf-bs-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

[data-mood="dark"] .mtf-bs-product-subheading { color: rgba(255,255,255,0.7); }

.mtf-bs-product-grid {
  display: grid;
  gap: 32px;
}

[data-variant="grid-2"] .mtf-bs-product-grid { grid-template-columns: repeat(2, 1fr); }
[data-variant="grid-3"] .mtf-bs-product-grid { grid-template-columns: repeat(3, 1fr); }
[data-variant="grid-4"] .mtf-bs-product-grid { grid-template-columns: repeat(4, 1fr); }

.mtf-bs-product-card {
  display: flex;
  flex-direction: column;
}

.mtf-bs-product-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--mtf-bs-radius);
  overflow: hidden;
  background: var(--mtf-bs-light-gray);
  margin-bottom: 20px;
}

[data-mood="dark"] .mtf-bs-product-image-wrap { background: rgba(255,255,255,0.06); }

.mtf-bs-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mtf-bs-product-title {
  font-family: var(--mtf-bs-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--mtf-bs-text-dark);
  margin: 0 0 8px 0;
}

[data-mood="dark"] .mtf-bs-product-title { color: var(--mtf-bs-white); }

.mtf-bs-product-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mtf-bs-text-muted);
  margin: 0 0 14px 0;
}

[data-mood="dark"] .mtf-bs-product-description { color: rgba(255,255,255,0.7); }

.mtf-bs-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mtf-bs-product-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mtf-bs-text-muted);
}

[data-mood="dark"] .mtf-bs-product-tag {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

[data-mood="light"] .mtf-bs-product-tag {
  background: var(--mtf-bs-light-gray);
  border-color: var(--mtf-bs-border);
  color: var(--mtf-bs-text-muted);
}

/* ========== DATA STATS ========== */

.mtf-bs-data-stats { padding: var(--mtf-bs-space-section) 32px; }
.mtf-bs-data-stats .mtf-bs-container { max-width: var(--mtf-bs-max-width); }

.mtf-bs-data-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.mtf-bs-data-stat {
  padding: 20px 16px;
}

.mtf-bs-data-stat-value {
  font-family: var(--mtf-bs-font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--mtf-bs-text-dark);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

[data-mood="dark"] .mtf-bs-data-stat-value { color: var(--mtf-bs-white); }
[data-mood="accent"] .mtf-bs-data-stat-value { color: var(--mtf-bs-accent); }

.mtf-bs-data-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--mtf-bs-text-muted);
  letter-spacing: 0.01em;
}

[data-mood="dark"] .mtf-bs-data-stat-label { color: rgba(255,255,255,0.6); }

/* Bordered variant - vertical dividers */
[data-variant="bordered"] .mtf-bs-data-stat {
  border-right: 1px solid var(--mtf-bs-border);
}

[data-variant="bordered"] .mtf-bs-data-stat:last-child { border-right: none; }

[data-mood="dark"][data-variant="bordered"] .mtf-bs-data-stat { border-right-color: rgba(255,255,255,0.1); }

/* Highlight-first variant */
[data-variant="highlight-first"] .mtf-bs-data-stats-grid {
  grid-template-columns: 2fr repeat(3, 1fr);
}

[data-variant="highlight-first"] .mtf-bs-data-stat:first-child .mtf-bs-data-stat-value {
  font-size: clamp(48px, 7vw, 80px);
  color: var(--mtf-bs-accent);
}


/* ========== STAGGER ANIMATIONS (text/elements only, NOT images/backgrounds) ========== */

/* Initial hidden state for TEXT elements only */
.mtf-bs-eyebrow,
.mtf-bs-section-number,
.mtf-bs-heading,
.mtf-bs-hero-heading,
.mtf-bs-cta-heading,
.mtf-bs-toc-heading,
.mtf-bs-product-heading,
.mtf-bs-body,
.mtf-bs-hero-subheading,
.mtf-bs-cta-text,
.mtf-bs-toc-text,
.mtf-bs-quote-text,
.mtf-bs-testimonial-quote,
.mtf-bs-banner-text,
.mtf-bs-card,
.mtf-bs-feature,
.mtf-bs-list-item,
.mtf-bs-stat,
.mtf-bs-data-stat,
.mtf-bs-product-card,
.mtf-bs-image-split-overlay,
.mtf-bs-timeline-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--mtf-bs-ease), transform 0.6s var(--mtf-bs-ease);
}

/* Reveal TEXT elements when section visible */
.mtf-bs-section.is-visible .mtf-bs-eyebrow,
.mtf-bs-section.is-visible .mtf-bs-section-number { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }

.mtf-bs-section.is-visible .mtf-bs-heading,
.mtf-bs-section.is-visible .mtf-bs-hero-heading,
.mtf-bs-section.is-visible .mtf-bs-cta-heading,
.mtf-bs-section.is-visible .mtf-bs-toc-heading,
.mtf-bs-section.is-visible .mtf-bs-product-heading,
.mtf-bs-section.is-visible .mtf-bs-quote-text { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }

.mtf-bs-section.is-visible .mtf-bs-body,
.mtf-bs-section.is-visible .mtf-bs-hero-subheading,
.mtf-bs-section.is-visible .mtf-bs-cta-text,
.mtf-bs-section.is-visible .mtf-bs-toc-text,
.mtf-bs-section.is-visible .mtf-bs-testimonial-quote,
.mtf-bs-section.is-visible .mtf-bs-banner-text { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }

.mtf-bs-section.is-visible .mtf-bs-card,
.mtf-bs-section.is-visible .mtf-bs-feature,
.mtf-bs-section.is-visible .mtf-bs-list-item,
.mtf-bs-section.is-visible .mtf-bs-stat,
.mtf-bs-section.is-visible .mtf-bs-data-stat,
.mtf-bs-section.is-visible .mtf-bs-product-card,
.mtf-bs-section.is-visible .mtf-bs-image-split-overlay,
.mtf-bs-section.is-visible .mtf-bs-timeline-item { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  :root { --mtf-bs-space-section: 80px; }
  /* Reset full-width breakout on tablet */
  .mtf-bs-section {
    width: 100%;
    margin-left: 0;
  }
  .mtf-bs-grid--editorial { grid-template-columns: 1fr; gap: 40px; }
  .mtf-bs-grid--overlap { grid-template-columns: 1fr; }
  .mtf-bs-split-grid { grid-template-columns: 1fr; }
  [data-variant="comparison"] .mtf-bs-split-grid::after { display: none; }
  .mtf-bs-depth-layout { grid-template-columns: 1fr; }
  [data-variant="left-offset"] .mtf-bs-depth-card,
  [data-variant="right-offset"] .mtf-bs-depth-card { transform: none; }
  [data-variant="right-offset"] .mtf-bs-depth-card { order: unset; }
  [data-variant="masonry"] .mtf-bs-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  /* TOC */
  .mtf-bs-toc-grid { grid-template-columns: 1fr; gap: 40px; }
  .mtf-bs-toc-sidebar { position: static; }
  .mtf-bs-toc-links { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  /* Image Split */
  .mtf-bs-image-split-grid { grid-template-columns: 1fr; }
  .mtf-bs-image-split-item { min-height: 400px; }
  [data-variant="left-large"] .mtf-bs-image-split-grid,
  [data-variant="right-large"] .mtf-bs-image-split-grid { grid-template-columns: 1fr; }
  /* Product Showcase */
  [data-variant="grid-4"] .mtf-bs-product-grid { grid-template-columns: repeat(3, 1fr); }
  /* Data Stats */
  .mtf-bs-data-stats-grid { grid-template-columns: repeat(2, 1fr); }
  [data-variant="highlight-first"] .mtf-bs-data-stats-grid { grid-template-columns: repeat(2, 1fr); }
  /* Fix specificity: highlight split stays 1-col on tablet */
  [data-variant="highlight"] .mtf-bs-split-grid { grid-template-columns: 1fr; }
  /* Fix specificity: TOC sidebar-right stays 1-col on tablet */
  [data-variant="sidebar-right"] .mtf-bs-toc-grid { grid-template-columns: 1fr; }
  /* Card grid: 3+ cols → 2 cols on tablet */
  .mtf-bs-card-grid[data-card-count="3"],
  .mtf-bs-card-grid[data-card-count="5"],
  .mtf-bs-card-grid[data-card-count="6"],
  .mtf-bs-card-grid[data-card-count="7"],
  .mtf-bs-card-grid[data-card-count="8"],
  .mtf-bs-card-grid[data-card-count="9"] { grid-template-columns: repeat(2, 1fr); }
  /* Reduce grid gaps on tablet */
  .mtf-bs-grid { gap: 40px; }
  .mtf-bs-split-grid { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --mtf-bs-space-section: 64px; }
  .mtf-bs-hero { min-height: 70vh; padding: 120px 24px 80px; }
  .mtf-bs-hero-heading { font-size: 32px; }
  .mtf-bs-section {
    padding: var(--mtf-bs-space-section) 24px;
    /* Reset full-width breakout on mobile */
    width: 100%;
    margin-left: 0;
  }
  /* Fix: Card grid med data-card-count → 1 kolonne på mobil */
  .mtf-bs-card-grid,
  .mtf-bs-card-grid[data-card-count="2"],
  .mtf-bs-card-grid[data-card-count="3"],
  .mtf-bs-card-grid[data-card-count="4"],
  .mtf-bs-card-grid[data-card-count="5"],
  .mtf-bs-card-grid[data-card-count="6"],
  .mtf-bs-card-grid[data-card-count="7"],
  .mtf-bs-card-grid[data-card-count="8"],
  .mtf-bs-card-grid[data-card-count="9"] { grid-template-columns: 1fr; }
  /* Card grid gap */
  .mtf-bs-card-grid { gap: 20px; }
  /* Card internal padding reduceret */
  .mtf-bs-card { padding: 32px 24px; }
  .mtf-bs-card-number { width: 38px; height: 38px; font-size: 14px; }
  [data-img-position="left"] .mtf-bs-grid__text,
  [data-img-position="left"] .mtf-bs-grid__media { order: unset; }
  [data-variant="grid-3"] .mtf-bs-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  [data-variant="stacked"] .mtf-bs-stat-grid { grid-template-columns: 1fr; }
  .mtf-bs-image-break { min-height: 40vh; }
  [data-variant="parallax"] .mtf-bs-image-break-bg { background-attachment: scroll; }
  /* CTA padding reduceret */
  .mtf-bs-cta { padding: 64px 24px; }
  /* Depth card */
  .mtf-bs-depth-card { padding: 36px 28px; margin: 60px auto; }
  [data-variant="left-offset"] .mtf-bs-depth-card,
  [data-variant="right-offset"] .mtf-bs-depth-card { margin-left: auto; margin-right: auto; }
  /* Testimonial card */
  [data-variant="card"] .mtf-bs-container { padding: 36px 28px; }
  /* Grid/split gaps */
  .mtf-bs-grid { gap: 32px; }
  .mtf-bs-split-grid { gap: 32px; }
  .mtf-bs-stat-grid { gap: 24px; }
  /* Timeline */
  .mtf-bs-timeline-items { padding-left: 40px; }
  .mtf-bs-timeline-number { left: -40px; width: 36px; height: 36px; font-size: 14px; }
  .mtf-bs-timeline-items::before { left: 17px; }
  .mtf-bs-timeline-item { padding-bottom: 36px; }
  /* Product Showcase */
  [data-variant="grid-3"] .mtf-bs-product-grid,
  [data-variant="grid-4"] .mtf-bs-product-grid { grid-template-columns: repeat(2, 1fr); }
  /* Image Split */
  .mtf-bs-image-split-item { min-height: 350px; }
  .mtf-bs-image-split-overlay { padding: 40px 24px 24px; }
}

@media (max-width: 480px) {
  :root { --mtf-bs-space-section: 48px; }
  .mtf-bs-hero { min-height: 60vh; padding: 100px 16px 60px; }
  .mtf-bs-hero-heading { font-size: 28px; }
  .mtf-bs-section { padding: var(--mtf-bs-space-section) 16px; }
  .mtf-bs-cta-button { padding: 16px 36px; }
  [data-variant="grid-2"] .mtf-bs-gallery-grid { grid-template-columns: 1fr; }
  .mtf-bs-banner { padding: 40px 16px; }
  /* Product Showcase */
  [data-variant="grid-2"] .mtf-bs-product-grid,
  [data-variant="grid-3"] .mtf-bs-product-grid,
  [data-variant="grid-4"] .mtf-bs-product-grid { grid-template-columns: 1fr; }
  /* Data Stats */
  .mtf-bs-data-stats-grid { grid-template-columns: 1fr; }
  [data-variant="highlight-first"] .mtf-bs-data-stats-grid { grid-template-columns: 1fr; }
  [data-variant="bordered"] .mtf-bs-data-stat { border-right: none; }
  /* Image Split */
  .mtf-bs-image-split-item { min-height: 300px; }
  /* Card padding strammere */
  .mtf-bs-card { padding: 24px 20px; }
  .mtf-bs-card-number { width: 34px; height: 34px; font-size: 13px; margin-bottom: 16px; }
  .mtf-bs-card-title { font-size: 18px; }
  /* CTA strammere */
  .mtf-bs-cta { padding: 48px 16px; }
  .mtf-bs-cta-text { font-size: 16px; margin-bottom: 32px; }
  /* Depth card */
  .mtf-bs-depth-card { padding: 28px 20px; margin: 40px auto; }
  /* Testimonial */
  [data-variant="card"] .mtf-bs-container { padding: 28px 20px; }
  /* Gallery → 1 col */
  [data-variant="masonry"] .mtf-bs-gallery-grid { grid-template-columns: 1fr; }
  [data-variant="grid-3"] .mtf-bs-gallery-grid { grid-template-columns: 1fr; }
  /* Timeline strammere */
  .mtf-bs-timeline-items { padding-left: 36px; }
  .mtf-bs-timeline-number { left: -36px; width: 32px; height: 32px; font-size: 13px; }
  .mtf-bs-timeline-items::before { left: 15px; }
  .mtf-bs-timeline-item { padding-bottom: 28px; }
  /* Gaps minimal */
  .mtf-bs-grid { gap: 24px; }
  .mtf-bs-split-grid { gap: 24px; }
  /* Font sizes */
  .mtf-bs-card-title { font-size: 17px; margin-bottom: 10px; }
  .mtf-bs-timeline-title { font-size: 18px; }
  /* Dropcap */
  .mtf-bs-dropcap::first-letter { font-size: 52px; }
}

/* ========== CHAT SIDEBAR ========== */

.mtf-chat-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-left: 1px solid #e2e8f0;
}

.mtf-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.mtf-chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.mtf-chat-header-title span:first-child {
  font-size: 20px;
}

.mtf-chat-header-actions {
  display: flex;
  gap: 4px;
}

.mtf-chat-header-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  color: #64748b;
  transition: all 0.15s ease;
}

.mtf-chat-header-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.mtf-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mtf-chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: chatFadeIn 0.2s ease;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mtf-chat-message--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.mtf-chat-message--ai {
  align-self: flex-start;
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 4px;
}

.mtf-chat-message--loading {
  background: #f8fafc;
  color: #64748b;
}

.mtf-chat-message--loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #94a3b8;
  border-right-color: transparent;
  border-radius: 50%;
  animation: chatSpin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes chatSpin {
  to { transform: rotate(360deg); }
}

.mtf-chat-message-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 12px;
  color: #64748b;
}

.mtf-chat-action-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 6px;
  margin-top: 6px;
  font-size: 12px;
}

.mtf-chat-action-preview-icon {
  font-size: 14px;
}

.mtf-chat-quick-actions {
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mtf-chat-quick-btn {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mtf-chat-quick-btn:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}

.mtf-chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}

.mtf-chat-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.mtf-chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  resize: none;
  outline: none;
  min-height: 44px;
  max-height: 120px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.mtf-chat-input:focus {
  border-color: #0ea5e9;
}

.mtf-chat-send-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.mtf-chat-send-btn:hover {
  transform: scale(1.05);
}

.mtf-chat-send-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

/* ========== CHAT BUBBLE (Minimized) ========== */

.mtf-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.mtf-chat-bubble-btn {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  transition: all 0.2s ease;
}

.mtf-chat-bubble-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(14, 165, 233, 0.5);
}

.mtf-chat-bubble-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  background: #ef4444;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  animation: bubblePulse 2s ease infinite;
}

@keyframes bubblePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Floating chat popup */
.mtf-chat-popup {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  animation: popupSlideUp 0.25s ease;
}

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

/* ========== TEXT SELECTION MENU ========== */

.mtf-selection-menu {
  position: fixed;
  background: #1e293b;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  gap: 2px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  z-index: 10000;
  animation: selectionPop 0.15s ease;
}

@keyframes selectionPop {
  from { opacity: 0; transform: translateX(-50%) scale(0.9); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

.mtf-selection-menu::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #1e293b;
}

.mtf-selection-btn {
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mtf-selection-btn:hover {
  background: rgba(255,255,255,0.15);
}

.mtf-selection-btn-icon {
  font-size: 14px;
}

.mtf-selection-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  margin: 4px 2px;
}

/* Selection menu loading state */
.mtf-selection-menu--loading {
  pointer-events: none;
}

.mtf-selection-menu--loading .mtf-selection-btn {
  opacity: 0.5;
}

/* ========== CHAT RESPONSIVE ========== */

@media (max-width: 768px) {
  .mtf-chat-popup {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 88px;
    height: 60vh;
  }

  .mtf-chat-bubble {
    bottom: 16px;
    right: 16px;
  }

  .mtf-chat-bubble-btn {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .mtf-selection-menu {
    flex-wrap: wrap;
    max-width: calc(100vw - 32px);
    justify-content: center;
  }
}
