/* Button base */
.ma-audit-fab{
  position: fixed !important;
  inset: auto 24px 24px auto !important; /* top right bottom left */
  left: auto !important;
  top: auto !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 9999999 !important;
}
.ma-audit-fab .ma-audit-fab__btn{
  all: unset !important;
  box-sizing: border-box !important;

  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;

  padding: 16px 26px !important;

  /* controls */
  --bw: 3px;
  --r1: 40px;
  --r2: 12px;
  --flare-speed: 2.8s;

  border-radius: var(--r1) var(--r1) var(--r2) var(--r1) !important;

  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: .25px !important;
  text-transform: uppercase !important;

  color: #1f2a2e !important;
  cursor: pointer !important;

  background: #ffffff !important;

  isolation: isolate !important;
  overflow: hidden !important;

  box-shadow: 0 4px 84px rgba(50,66,18,0.20) !important;

  /* optional: base border always visible */
  outline: var(--bw) solid rgba(142,202,21,.35) !important;
  outline-offset: calc(var(--bw) * -1) !important;
}

/* force content above */
.ma-audit-fab .ma-audit-fab__btn > *{
  position: relative !important;
  z-index: 2 !important;
}

/* flare layer */
.ma-audit-fab .ma-audit-fab__btn::before{
  content: "" !important;
  position: absolute !important;
  inset: -35% !important;
  aspect-ratio: 1 !important;
  margin: auto !important;

  background-image: linear-gradient(
    90deg,
    transparent 35%,
    #8ECA15 46%,
    #F9FF58 50%,
    #0AADFF 54%,
    transparent 65%
  ) !important;

  background-color: rgba(142,202,21,0.08) !important;

  animation: ma-flare-rotate var(--flare-speed) linear infinite !important;
  filter: saturate(1.1) !important;

  z-index: 0 !important;           /* ✅ NOT negative */
  pointer-events: none !important;
}

/* inner cutout */
.ma-audit-fab .ma-audit-fab__btn::after{
  content: "" !important;
  position: absolute !important;

  /* prevent bleed (important on real sites) */
  inset: calc(var(--bw) + 1px) !important;

  background: #ffffff !important;

  border-radius:
    calc(var(--r1) * 0.92)
    calc(var(--r1) * 0.92)
    calc(var(--r2) * 0.92)
    calc(var(--r1) * 0.92) !important;

  z-index: 1 !important;           /* ✅ above flare */
  pointer-events: none !important;
}

@keyframes ma-flare-rotate{
  to { transform: rotate(360deg); }
}

/* ===========================
   MODAL (matches screenshot)
=========================== */
.ma-modal{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
}
.ma-modal.is-open{ display:block; }

.ma-modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
}

/* Center panel */
.ma-modal__panel{
  position: relative;
  width: min(720px, calc(100% - 28px));
  margin: 36px auto;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 34px 120px rgba(0,0,0,.38);
  outline: 0;
}

/* Top bar */
.ma-modal__topbar{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 18px;
  background: #E9FFC6; /* soft green like screenshot */
}

.ma-modal__brand-text{
  font-weight: 900;
  color: #27333A;
  font-size: 22px;
  letter-spacing: -.3px;
}
.ma-modal__brand-accent{
  color: #8AD000;
}

.ma-modal__min{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 0;
  cursor: pointer;
  color: #111;
}

/* ===========================
   SLIDER
=========================== */
.ma-slider{ overflow:hidden; background:#fff; }
.ma-slider__track{
  display:flex;
  width:100%;
  transform: translate3d(0,0,0);
  transition: transform .35s ease;
}

.ma-slide{
  width:100%;
  flex: 0 0 100%;
  background:#fff;
}

/* Image area */
.ma-slide__media{
  height: 330px;             /* closer to screenshot */
  background: #EAF2FF;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ma-slide__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Dark content area */
.ma-slide__body{
  background: #111111;
  padding: 22px 22px 22px;
}

/* Small pill */
.ma-pill{
  display: inline-flex;
  align-items:center;
  height: 34px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 14px;
}

/* Headline */
.ma-title{
  margin: 14px 0 10px;
  font-size: 44px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.8px;
  color: #ffffff;
}

/* Description */
.ma-copy{
  margin: 0 0 16px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.65;
}

/* Nav area: arrows left/right + dots centered */
.ma-slider__nav{
  display:grid;
  grid-template-columns: 56px 1fr 56px;
  align-items:center;
  gap: 12px;
  margin: 14px 0 18px;
}

.ma-arrow{
  width: 52px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.95);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size: 20px;
}

.ma-dots{
  display:flex;
  justify-content:center;
  gap: 10px;
}

.ma-dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  border: 0;
  padding: 0;
  cursor:pointer;
}
.ma-dot.is-active{
  background: rgba(255,255,255,.95);
}

/* CTA button (big white pill) */
.ma-cta{ margin-top: 6px; }

.ma-cta__btn{
  width: 100%;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 18px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #111;
  font-weight: 800;
  font-size: 20px;
  text-decoration:none;
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
}

.ma-cta__btn span{
  font-size: 20px;
}

/* Responsive */
@media (max-width: 480px){
  .ma-modal__panel{ margin: 18px auto; border-radius: 22px; }
  .ma-modal__topbar{ height: 58px; }
  .ma-slide__media{ height: 280px; }
  .ma-title{ font-size: 36px; }
  .ma-copy{ font-size: 16px; }
  .ma-cta__btn{ font-size: 18px; }
}

/* TEST: if you don't see a thick red border around the modal panel,
   your plugin CSS is NOT loading or is being overridden later. */
#maAuditModal .ma-modal__panel{ border: 12px solid red !important; }