.sfab-section{
  position:relative;
}

.sfab-fab{
  position:absolute;
  bottom:4px;
  right:-70px;
  width:60px;
  height:60px;
  border-radius:50%;
  background:var(--accent, #5b4fff);
  color:#fff;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(91,79,255,.45);
  z-index:1090;
  font-size:26px;
  transition:transform .25s ease;
  animation:sfabPulse 1.8s ease-in-out infinite;
}
.sfab-fab:hover{ transform:scale(1.08); }
.sfab-fab.sfab-hide{ opacity:0; pointer-events:none; }
@keyframes sfabPulse{
  0%,100%{ box-shadow:0 6px 18px rgba(91,79,255,.45), 0 0 0 0 rgba(255,217,61,.6); }
  50%{ box-shadow:0 6px 18px rgba(91,79,255,.45), 0 0 0 10px rgba(255,217,61,0); }
}

.sfab-sparkle{
  position:absolute;
  bottom:4px;
  right:-70px;
  width:60px;
  height:60px;
  z-index:1090;
  pointer-events:none;
}
.sfab-sparkle .sfab-dot{
  position:absolute;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#ffd93d;
  box-shadow:0 0 6px 2px rgba(255,217,61,.9);
  animation:sfabDotOrbit 2.2s ease-in-out infinite;
}
@keyframes sfabDotOrbit{
  0%,100%{ opacity:0; transform:translate(0,0) scale(.5); }
  50%{ opacity:1; transform:var(--orbit) scale(1.1); }
}

.sfab-blast-circle{
  position:absolute;
  bottom:4px;
  right:-70px;
  width:60px;
  height:60px;
  border-radius:50%;
  background:var(--accent, #5b4fff);
  z-index:1089;
  transform:scale(1);
  pointer-events:none;
}
.sfab-blast-circle.sfab-animate{
  animation:sfabBlastExpand .6s cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes sfabBlastExpand{
  0%{ transform:scale(1); opacity:1; }
  60%{ opacity:1; }
  100%{ transform:scale(45); opacity:1; }
}

.sfab-panel-overlay{
  position:fixed;
  inset:0;
  z-index:1091;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.sfab-panel-overlay.sfab-show{ display:flex; }

.sfab-panel{
  position:relative;
  z-index:1092;
  background:linear-gradient(160deg, #ded7ff 0%, #ffffff 45%, #d6ecff 100%);
  border-radius:24px;
  width:100%;
  max-width:560px;
  max-height:85vh;
  overflow:hidden;
  padding:36px;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
  transform:scale(.85);
  opacity:0;
  transition:transform .35s cubic-bezier(.2,.9,.3,1),opacity .35s ease;
}
.sfab-panel.sfab-show{ transform:scale(1); opacity:1; }

.sfab-panel-body{
  max-height:calc(80vh - 48px);
  overflow-y:auto;
}

.sfab-sparkle-layer{
  position:fixed;
  inset:0;
  z-index:1091;
  pointer-events:none;
  overflow:hidden;
}
.sfab-sparkle-layer .sfab-sparkle-dot{
  position:absolute;
  width:5px;
  height:5px;
  background:#ffd93d;
  border-radius:50%;
  box-shadow:0 0 8px 3px rgba(255,217,61,.85);
  animation:sfabSparkleTwinkle 1.6s ease-in-out infinite;
}
@keyframes sfabSparkleTwinkle{
  0%,100%{ opacity:0; transform:scale(.4); }
  50%{ opacity:1; transform:scale(1.2); }
}

.sfab-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
}
.sfab-panel-header h2{
  margin:0;
  font-size:24px;
  color:var(--text-primary, #1a1a2e);
}
.sfab-close-btn{
  background:none;
  border:none;
  font-size:26px;
  cursor:pointer;
  color:var(--text-secondary, #6b6b80);
  line-height:1;
}

.sfab-cat-card{
  display:block;
  padding:22px;
  border-radius:16px;
  border:1px solid #d6cbff;
  background:linear-gradient(135deg, #ffffff 0%, #ede8ff 100%);
  margin-bottom:10px;
  cursor:pointer;
  text-decoration:none;
  transition:background .2s ease,border-color .2s ease;
}
.sfab-cat-card:hover{
  background:linear-gradient(135deg, #ede8ff 0%, #d9cfff 100%);
  border-color:var(--accent, #5b4fff);
}
.sfab-info-block h3{
  margin:0 0 8px;
  font-size:20px;
  color:var(--text-primary, #1a1a2e);
}
.sfab-info-block .sfab-highlight{
  margin:0 0 14px;
  font-size:18px;
  font-weight:600;
  color:var(--accent, #5b4fff);
}
.sfab-info-block ul{
  margin:0 0 16px;
  padding-left:20px;
}
.sfab-info-block li{
  font-size:15px;
  color:var(--text-secondary, #6b6b80);
  margin-bottom:9px;
}
.sfab-info-block .sfab-cta{
  display:inline-block;
  margin:6px 0 0;
  font-size:15px;
  font-weight:600;
  padding:11px 22px;
  border-radius:24px;
  background:linear-gradient(135deg, var(--accent, #5b4fff), #7c6fff);
  color:#fff;
}
.sfab-tag{
  display:inline-block;
  font-weight:600;
  font-size:15px;
  padding:3px 10px;
  border-radius:20px;
  background:#eef0ff;
  color:var(--accent-dark, #3d33cc);
}
.sfab-tag-price{
  background:#e3fbe8;
  color:#1b8a3a;
}

/* =========================================================
   TABLET (≤ 1024px)
   The FAB was originally placed off-canvas (right:-70px), which
   only makes sense next to a fixed-width desktop layout element.
   On tablet we pull it fully on-screen and anchor it as a
   standard corner FAB, and trim the panel down a little.
   ========================================================= */
@media (max-width: 1024px){
  .sfab-fab,
  .sfab-sparkle,
  .sfab-blast-circle{
    right:12px;
    bottom:-36px;
  }

  .sfab-fab{
    width:56px;
    height:56px;
    font-size:24px;
  }

  .sfab-sparkle,
  .sfab-blast-circle{
    width:56px;
    height:56px;
  }

  .sfab-panel{
    max-width:480px;
    padding:28px;
  }

  .sfab-panel-header h2{
    font-size:22px;
  }

  .sfab-cat-card{
    padding:18px;
  }
}

/* =========================================================
   MOBILE (≤ 600px)
   Smaller FAB, tighter safe-area corner spacing, full-height
   bottom-sheet style panel instead of a centered modal, and
   reduced type scale so the info blocks stay readable.
   ========================================================= */
@media (max-width: 600px){
  .sfab-fab,
  .sfab-sparkle,
  .sfab-blast-circle{
    right:8px;
    bottom:-48px;
  }

  .sfab-fab{
    width:50px;
    height:50px;
    font-size:22px;
  }

  .sfab-sparkle,
  .sfab-blast-circle{
    width:50px;
    height:50px;
  }

  .sfab-blast-circle.sfab-animate{
    animation-name:sfabBlastExpandMobile;
  }
  @keyframes sfabBlastExpandMobile{
    0%{ transform:scale(1); opacity:1; }
    60%{ opacity:1; }
    100%{ transform:scale(30); opacity:1; }
  }

  .sfab-panel-overlay{
    align-items:flex-end;
    padding:0;
  }

  .sfab-panel{
    max-width:100%;
    width:100%;
    max-height:90vh;
    border-radius:20px 20px 0 0;
    padding:22px 18px;
    transform:translateY(30px);
  }
  .sfab-panel.sfab-show{
    transform:translateY(0);
  }

  .sfab-panel-body{
    max-height:calc(90vh - 40px);
  }

  .sfab-panel-header{
    margin-bottom:16px;
  }
  .sfab-panel-header h2{
    font-size:19px;
  }

  .sfab-cat-card{
    padding:16px;
    margin-bottom:8px;
  }

  .sfab-info-block h3{
    font-size:18px;
  }
  .sfab-info-block .sfab-highlight{
    font-size:16px;
    margin-bottom:10px;
  }
  .sfab-info-block li{
    font-size:14px;
    margin-bottom:7px;
  }
  .sfab-info-block .sfab-cta{
    display:block;
    text-align:center;
    padding:12px 18px;
  }

  .sfab-tag{
    font-size:13px;
    padding:2px 8px;
  }
}