/* ================================================
   M2M Unlocks – Modern Theme Enhancement Layer
   style-modern.css  |  v2.0
   ================================================ */

/* ── CSS Variables ─────────────────────────────── */
:root {
  --m2m-primary:    #2563eb;
  --m2m-primary-d:  #1d4ed8;
  --m2m-primary-l:  #3b82f6;
  --m2m-dark-bg:    #0f121f;
  --m2m-dark-card:  #151a27;
  --m2m-dark-nav:   #0a0c15;
  --m2m-radius:     14px;
  --m2m-radius-sm:  8px;
  --m2m-shadow:     0 8px 32px rgba(37,99,235,.18);
  --m2m-transition: all .3s cubic-bezier(.25,.8,.25,1);
  --m2m-font:       'Inter', 'Segoe UI', sans-serif;
  --m2m-glow:       0 0 20px rgba(37,99,235,.35);
}

/* ── Global Font & Smoothing ────────────────────── */
body {
  font-family: var(--m2m-font);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* ════════════════════════════════════════════════════
   LINK COLOR OVERRIDES
   theme15.css sets a { color: #1d4ed8 } globally — too
   aggressive. We scope blue to intentional accents only.
   ════════════════════════════════════════════════════ */

/* Light mode: most content links → dark neutral, not orange */
a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not([class*="m2m-"]) {
  color: #374151;
}
a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not([class*="m2m-"]):hover {
  color: var(--m2m-primary);
}

/* .text-muted should be gray, NOT orange */
.text-muted { color: #6b7280 !important; opacity: 1 !important; }

/* Dark mode: table links, content links → soft gray */
body.svg-dark a:not(.btn):not(.navbar-brand):not([class*="m2m-"]):not(.nav-link) {
  color: #94a3b8 !important;
}
body.svg-dark a:not(.btn):not(.navbar-brand):not([class*="m2m-"]):not(.nav-link):hover {
  color: #e2e8f0 !important;
}

/* Dark mode: nav links stay readable white */
body.svg-dark .nav-link,
body.svg-dark header .nav-link,
body.svg-dark .navbar-nav .nav-link { color: #d1d5db !important; }
body.svg-dark .navbar-nav .nav-link:hover,
body.svg-dark .navbar-nav .nav-link.active { color: var(--m2m-primary) !important; }

/* Dark mode: btn overrides — only btn-primary stays orange */
body.svg-dark .btn:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not([class*="m2m-"]) {
  background: #1e2a40 !important;
  color: #d1d5db !important;
  border-color: #2d3d55 !important;
}
body.svg-dark .btn:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not([class*="m2m-"]):hover {
  background: #283652 !important;
  color: #fff !important;
}

/* Keep btn-primary orange in both modes */
body.svg-dark .btn.btn-primary,
body.svg-dark button.btn-primary {
  background: var(--m2m-primary) !important;
  border-color: var(--m2m-primary-d) !important;
  color: #fff !important;
}

/* Logo brand always orange */
.navbar-brand,
.navbar-brand * { color: var(--m2m-primary) !important; }

/* Table order ID links in dark: a slightly brighter neutral */
body.svg-dark table a { color: #7dd3fc !important; }
body.svg-dark table a:hover { color: #bae6fd !important; }

/* Headings: not orange in dark */
body.svg-dark h1,
body.svg-dark h2,
body.svg-dark h3,
body.svg-dark h4,
body.svg-dark h5,
body.svg-dark h6 { color: #f1f5f9; }
body.svg-dark .text-muted { color: #64748b !important; }

/* ── Scroll Progress Bar ────────────────────────── */
#m2m-scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--m2m-primary), var(--m2m-primary-l));
  z-index: 999999;
  transition: width .1s linear;
  border-radius: 0 3px 3px 0;
}

/* ── Announcement Ticker Bar ────────────────────── */
#m2m-announce {
  background: #1a1e35;
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 600;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1100;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(37,99,235,.2);
}
.svg-dark #m2m-announce {
  background: #0d1020;
  border-bottom-color: rgba(37,99,235,.15);
}
#m2m-announce .ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 36px;
}
#m2m-announce .ticker-track {
  display: flex;
  gap: 0;
  animation: m2m-ticker 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
#m2m-announce .ticker-track span {
  padding: 0 40px;
  flex-shrink: 0;
}
#m2m-announce .ticker-track span i {
  margin-right: 6px;
  color: var(--m2m-primary);
}
#m2m-announce .m2m-close-bar {
  background: rgba(0,0,0,.2);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
  font-size: .85rem;
  transition: background .2s;
}
#m2m-announce .m2m-close-bar:hover { background: rgba(0,0,0,.4); }
@keyframes m2m-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Modern Header Shrink ───────────────────────── */
header {
  transition: box-shadow .35s, background .35s;
}
.page-index header.navbar-shrink {
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
}
body:not(.svg-dark) .page-index header.navbar-shrink {
  background: rgba(255,255,255,.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Mobile Hamburger ───────────────────────────── */
.navbar-toggler {
  border: none !important;
  padding: 8px 10px !important;
  border-radius: var(--m2m-radius-sm) !important;
  background: rgba(37,99,235,.1) !important;
  transition: var(--m2m-transition);
}
.navbar-toggler:hover {
  background: rgba(37,99,235,.2) !important;
}
.navbar-toggler i {
  font-size: 1.4rem;
  color: var(--m2m-primary);
}

/* ── Buttons ───────────────────────────────────── */
button.btn.btn-primary,
.wizard .actions li a,
.bg-secondary {
  border-radius: 50px !important;
  font-weight: 700 !important;
  letter-spacing: .3px;
  transition: var(--m2m-transition) !important;
  box-shadow: 0 4px 14px rgba(37,99,235,.3) !important;
}
button.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,.4) !important;
}

/* ── Stats Counter Section ──────────────────────── */
.m2m-stats-section {
  background: #1a1e35;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.svg-dark .m2m-stats-section {
  background: #0d1020;
}
.m2m-stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.m2m-stat-item {
  text-align: center;
  padding: 16px 20px;
  position: relative;
}
.m2m-stat-item + .m2m-stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.m2m-stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  letter-spacing: -1px;
  color: var(--m2m-primary);
  text-shadow: 0 0 30px rgba(37,99,235,.3);
}
.m2m-stat-label {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
}
@media (max-width: 768px) {
  .m2m-stats-section { padding: 32px 0; }
  .m2m-stat-item { padding: 12px 8px; }
  .m2m-stat-number { font-size: 2rem; }
  .m2m-stat-item + .m2m-stat-item::before { display: none; }
}

/* ── Features / Why-Us Section ──────────────────── */
.m2m-features-section {
  padding: 60px 0;
  background: #f8f9fa;
}
.svg-dark .m2m-features-section {
  background: #0d1120;
}
.m2m-features-section .section-title {
  text-align: center;
  margin-bottom: 40px;
}
.m2m-features-section .section-title h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.m2m-features-section .section-title p {
  color: #666;
  font-size: 1rem;
}
.svg-dark .m2m-features-section .section-title p { color: #9ca3af; }

.m2m-feat-card {
  background: #fff;
  border-radius: var(--m2m-radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--m2m-transition);
  border: 1.5px solid #f0f0f0;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.svg-dark .m2m-feat-card {
  background: var(--m2m-dark-card);
  border-color: rgba(37,99,235,.12);
  color: #e5e7eb;
}
.m2m-feat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--m2m-shadow);
  border-color: var(--m2m-primary);
}
.m2m-feat-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(37,99,235,.05);
  transition: var(--m2m-transition);
}
.m2m-feat-card:hover::before {
  background: rgba(37,99,235,.1);
  transform: scale(1.3);
}
.m2m-feat-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(37,99,235,.06));
  color: var(--m2m-primary);
  transition: var(--m2m-transition);
}
.m2m-feat-card:hover .m2m-feat-icon {
  background: linear-gradient(135deg, var(--m2m-primary), var(--m2m-primary-d));
  color: #fff;
  transform: scale(1.08);
  box-shadow: var(--m2m-glow);
}
.m2m-feat-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.m2m-feat-card p {
  font-size: .9rem;
  color: #777;
  margin: 0;
  line-height: 1.6;
}
.svg-dark .m2m-feat-card p { color: #9ca3af; }
@media (max-width: 768px) {
  .m2m-features-section { padding: 40px 0; }
}

/* ── Partner / Tools Marquee ────────────────────── */
.m2m-tools-section {
  padding: 40px 0;
  background: #fff;
  overflow: hidden;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.svg-dark .m2m-tools-section {
  background: var(--m2m-dark-card);
  border-color: rgba(255,255,255,.06);
}
.m2m-tools-section .tools-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
  margin-bottom: 22px;
}
.m2m-logo-track-wrapper {
  position: relative;
  overflow: hidden;
}
.m2m-logo-track-wrapper::before,
.m2m-logo-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 120px;
  z-index: 2;
}
.m2m-logo-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.m2m-logo-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}
.svg-dark .m2m-logo-track-wrapper::before {
  background: linear-gradient(to right, var(--m2m-dark-card) 0%, transparent 100%);
}
.svg-dark .m2m-logo-track-wrapper::after {
  background: linear-gradient(to left, var(--m2m-dark-card) 0%, transparent 100%);
}
.m2m-logo-track {
  display: flex;
  gap: 0;
  animation: m2m-logos 22s linear infinite;
  width: max-content;
}
.m2m-logo-track:hover { animation-play-state: paused; }
.m2m-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  flex-shrink: 0;
  filter: grayscale(100%) opacity(.5);
  transition: filter .3s;
}
.m2m-logo-item:hover { filter: grayscale(0%) opacity(1); }
.m2m-logo-item img {
  height: 40px;
  max-width: 130px;
  object-fit: contain;
}
@keyframes m2m-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Text-based tool pills for marquee (no images needed) */
.m2m-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  border-radius: 50px;
  background: #f3f4f6;
  color: #444;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--m2m-transition);
}
.m2m-tool-pill i { color: var(--m2m-primary); font-size: .9rem; }
.svg-dark .m2m-tool-pill { background: rgba(255,255,255,.07); color: #d1d5db; }
.m2m-logo-item:hover .m2m-tool-pill {
  background: linear-gradient(135deg, var(--m2m-primary), var(--m2m-primary-d));
  color: #fff;
}
.m2m-logo-item:hover .m2m-tool-pill i { color: #fff; }

/* ── Floating Quick-Access Button ───────────────── */
#m2m-fab {
  position: fixed;
  right: 24px;
  bottom: 80px;
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, var(--m2m-primary), var(--m2m-primary-d));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 8px 24px rgba(37,99,235,.45);
  border: none;
  transition: var(--m2m-transition);
  animation: m2m-fab-pulse 2.5s infinite;
}
#m2m-fab:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 12px 30px rgba(37,99,235,.55);
}
#m2m-fab i { color: #fff; font-size: 1.5rem; transition: transform .3s; }
#m2m-fab.open i { transform: rotate(45deg); }
#m2m-fab .m2m-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  border: 2px solid #fff;
  white-space: nowrap;
  letter-spacing: .3px;
}
@keyframes m2m-fab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,.6); }
  70%  { box-shadow: 0 0 0 16px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

/* FAB Menu Panel */
#m2m-fab-menu {
  position: fixed;
  right: 20px;
  bottom: 150px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s cubic-bezier(.25,.8,.25,1);
}
#m2m-fab-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.m2m-fab-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}
.m2m-fab-item-label {
  background: #1e2738;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.m2m-fab-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .25s;
  flex-shrink: 0;
}
.m2m-fab-item:hover .m2m-fab-item-icon { transform: scale(1.12); }
.m2m-fab-item-icon.orange  { background: linear-gradient(135deg, var(--m2m-primary), var(--m2m-primary-d)); }
.m2m-fab-item-icon.green   { background: linear-gradient(135deg, #22c55e, #16a34a); }
.m2m-fab-item-icon.blue    { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.m2m-fab-item-icon.teal    { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.m2m-fab-item-icon.purple  { background: linear-gradient(135deg, #a855f7, #7c3aed); }

/* FAB Overlay */
#m2m-fab-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(3px);
}
#m2m-fab-overlay.open { opacity: 1; pointer-events: all; }

/* ── Back To Top ─────────────────────────────────── */
#m2m-back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  background: rgba(37,99,235,.15);
  border: 2px solid var(--m2m-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9996;
  color: var(--m2m-primary);
  font-size: 1.1rem;
  transition: var(--m2m-transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
#m2m-back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#m2m-back-top:hover {
  background: var(--m2m-primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--m2m-glow);
}

/* ── Modern Footer ───────────────────────────────── */
footer {
  display: block !important; /* override d-none d-lg-block */
  background: linear-gradient(180deg, #0f121f 0%, #080b14 100%);
  color: #c8cdd8;
  position: relative;
  overflow: hidden;
}
footer .footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}
footer .footer-wave svg {
  width: 100%;
  height: 60px;
}
footer .footer-top {
  background: transparent !important;
  padding: 80px 0 40px !important;
  border-top: none !important;
}
footer .footer-top .link-heading {
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}
footer .footer-top .link-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--m2m-primary) !important;
  border-radius: 2px;
}
footer .footer-navbar .nav .nav-item a.nav-link {
  color: #9ca3af !important;
  padding: 5px 0;
  font-size: .9rem;
  transition: var(--m2m-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
footer .footer-navbar .nav .nav-item a.nav-link::before {
  content: '\f054';
  font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: .55rem;
  color: var(--m2m-primary);
  opacity: 0;
  transition: opacity .2s;
}
footer .footer-navbar .nav .nav-item a.nav-link:hover {
  color: var(--m2m-primary) !important;
  padding-left: 6px;
}
footer .footer-navbar .nav .nav-item a.nav-link:hover::before { opacity: 1; }
.footer-bottom {
  background: #05070f !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
  padding: 16px 0 !important;
}
.footer-bottom small { color: #6b7280; font-size: .82rem; }
.footer-bottom img { opacity: .65; filter: brightness(0) invert(.7); max-height: 28px; }
.social-icons .nav-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: var(--m2m-transition);
  margin-right: 6px;
  color: #9ca3af !important;
}
.social-icons .nav-link:hover {
  background: var(--m2m-primary);
  color: #fff !important;
  transform: translateY(-3px);
}

/* ── Footer newsletter button modernize ─────────── */
.btn-newsletter {
  border-radius: 50px !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  border: 2px solid rgba(37,99,235,.5) !important;
  color: var(--m2m-primary) !important;
  background: transparent !important;
  transition: var(--m2m-transition) !important;
}
.btn-newsletter:hover {
  background: var(--m2m-primary) !important;
  color: #fff !important;
  border-color: var(--m2m-primary) !important;
}

/* ── Card Product Modern Hover ───────────────────── */
.card-product {
  transition: var(--m2m-transition) !important;
  border-radius: var(--m2m-radius) !important;
}
.card-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1) !important;
}

/* ── Custom Scrollbar (desktop) ─────────────────── */
@media (min-width: 992px) {
  ::-webkit-scrollbar { width: 7px; height: 7px; }
  ::-webkit-scrollbar-track { background: #f1f1f1; }
  ::-webkit-scrollbar-thumb { background: var(--m2m-primary); border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--m2m-primary-d); }
}

/* ── Dark mode overrides for new components ─────── */
.svg-dark #m2m-announce {
  background: linear-gradient(90deg, #0a1f5e 0%, #001233 100%);
  border-bottom: 1px solid rgba(37,99,235,.2);
}
.svg-dark .m2m-stats-section {
  background: linear-gradient(135deg, #0a1f5e 0%, #001233 100%);
}
.svg-dark #m2m-back-top {
  background: rgba(37,99,235,.1);
  border-color: rgba(37,99,235,.6);
}
.svg-dark footer .footer-top .link-heading::after {
  background: var(--m2m-primary) !important;
}

/* ── Mobile & Responsive ─────────────────────────── */
@media (max-width: 991px) {
  #m2m-announce .ticker-track span { padding: 0 24px; }
  footer .footer-top { padding: 60px 0 30px !important; }
  .m2m-logo-item { padding: 0 24px; }
  #m2m-fab { right: 16px; bottom: 70px; width: 52px; height: 52px; }
  #m2m-fab i { font-size: 1.3rem; }
  #m2m-fab-menu { right: 14px; bottom: 132px; }
  #m2m-back-top { right: 16px; bottom: 18px; width: 40px; height: 40px; }
}
@media (max-width: 576px) {
  .m2m-stat-number { font-size: 1.5rem; }
  .m2m-feat-card { padding: 24px 18px; }
  footer .footer-top { padding: 50px 16px 28px !important; }
}

/* ── Ensure footer visible on all devices ────────── */
@media (max-width: 991px) {
  footer { display: block !important; }
}

/* ── WOW animation performance ───────────────────── */
.wow { visibility: hidden; }

/* ══════════════════════════════════════════════════
   DIRECT SOURCE / AUTOMATION SECTION
   ══════════════════════════════════════════════════ */
.m2m-automation-section {
  padding: 80px 0 60px;
  background: var(--bg-light, #f8f9fc);
  position: relative;
  overflow: hidden;
}
.m2m-automation-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Flow row */
.m2m-flow-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}
.m2m-flow-step {
  flex: 1 1 200px;
  max-width: 230px;
  text-align: center;
  position: relative;
}
.m2m-flow-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(37,99,235,.28);
}
.m2m-flow-icon i {
  font-size: 1.6rem;
  color: #fff;
}
.m2m-flow-connector {
  position: absolute;
  top: 35px;
  right: -20px;
  color: var(--m2m-primary, #2563eb);
  font-size: 1.1rem;
  opacity: .5;
  z-index: 1;
}
.m2m-flow-step h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark, #1a1a2e);
}
.m2m-flow-step p {
  font-size: .86rem;
  color: var(--text-muted, #6c757d);
  line-height: 1.6;
}

/* Badge pills */
.m2m-automation-badges { gap: 12px; }
.m2m-badge-pill {
  background: #fff;
  border: 1.5px solid rgba(37,99,235,.22);
  color: var(--m2m-primary, #2563eb);
  border-radius: 40px;
  padding: 9px 20px;
  font-size: .88rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 10px rgba(37,99,235,.08);
  transition: var(--m2m-transition);
  white-space: nowrap;
}
.m2m-badge-pill:hover {
  background: var(--m2m-primary, #2563eb);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--m2m-shadow);
}

/* Dark mode */
body.svg-dark .m2m-automation-section { background: #0d1120; }
body.svg-dark .m2m-flow-step h5 { color: #f0f4ff; }
body.svg-dark .m2m-flow-step p  { color: #8892a4; }
body.svg-dark .m2m-badge-pill   { background: #151a27; border-color: rgba(37,99,235,.3); }
body.svg-dark .m2m-badge-pill:hover { background: var(--m2m-primary); color: #fff; }

/* Mobile */
@media (max-width: 768px) {
  .m2m-flow-connector { display: none !important; }
  .m2m-flow-step { max-width: 160px; }
  .m2m-flow-icon { width: 58px; height: 58px; }
  .m2m-flow-icon i { font-size: 1.3rem; }
}
@media (max-width: 576px) {
  .m2m-automation-badges { flex-direction: column; align-items: center; }
  .m2m-badge-pill { width: 100%; max-width: 280px; justify-content: center; }
}


/* ══════════════════════════════════════════════════
   TRUSTPILOT SECTION
   ══════════════════════════════════════════════════ */
.m2m-reviews-section {
  background: var(--card-bg, #fff);
  border-top: 1px solid rgba(0,0,0,.06);
}
.m2m-reviews-section .section-title h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-dark, #1a1a2e);
}
.m2m-reviews-section .section-title p {
  color: var(--text-muted, #6c757d);
  font-size: 1rem;
}

/* CTA button – Trustpilot green accent */
.m2m-tp-cta-btn {
  background: #00b67a;
  color: #fff;
  border-color: #00b67a;
  border-radius: 40px;
  padding: 12px 32px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 4px 20px rgba(0,182,122,.3);
  transition: var(--m2m-transition);
}
.m2m-tp-cta-btn:hover {
  background: #00a06b;
  border-color: #00a06b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,182,122,.4);
}

/* Light widget visible by default, dark hidden */
.m2m-tp-dark-widget { display: none; }
.m2m-tp-light-widget { display: block; }

/* Flip when dark mode active */
body.svg-dark .m2m-tp-light-widget { display: none; }
body.svg-dark .m2m-tp-dark-widget  { display: block; }

/* Dark mode section background */
body.svg-dark .m2m-reviews-section {
  background: var(--m2m-dark-card);
  border-top-color: rgba(255,255,255,.06);
}
body.svg-dark .m2m-reviews-section .section-title h2 { color: #fff; }
body.svg-dark .m2m-reviews-section .section-title p { color: #a0aec0; }

/* ── Copy indicator ── */
.copy-value, [data-copy] { cursor: pointer; }
.copy-value:hover, [data-copy]:hover { opacity: .8; }
