.msw{
  --bg: rgba(16, 18, 24, 0.60);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --shadow: 0 18px 50px rgba(0,0,0,0.50);
  --radius: 18px;

  --wa: #25D366;
  --tg: #229ED9;
  --mail: #EA4335;
  --call: #7C3AED;
  --max: #FF4D00;

  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 9999;
}

/* FAB */
.msw-fab{
  display:flex; align-items:center; gap:10px;
  padding:12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgb(1 25 4 / 96%);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor:pointer;
}
.msw-fab:hover{ transform: translateY(-1px); }

.msw-ico{
  width:34px; height:34px;
  display:grid; place-items:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.msw-label{ display:grid; gap:2px; text-align:left; }
.msw-title{ font-size:13.5px; font-weight:800; line-height:1.1; }
.msw-sub{ font-size:12px; color: var(--muted); line-height:1.1; }

/* Glow dot */
.msw-dot{
  width:10px; height:10px; border-radius:999px;
  background:#22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.55);
  animation: mswPulse 1.2s infinite;
}
.msw-dot--small{ width:8px; height:8px; }
@keyframes mswPulse{
  0% { box-shadow:0 0 0 0 rgba(34,197,94,0.55); }
  70%{ box-shadow:0 0 0 10px rgba(34,197,94,0); }
  100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); }
}

/* Backdrop + modal hidden by default */
.msw-backdrop,
.msw-modal{
  display:none;
}

.msw.is-open .msw-backdrop{
  display:block;
  position:fixed; inset:0;
  background: rgba(0,0,0,0.55);
}

.msw.is-open .msw-modal{
  display:block;
  position:fixed;
  right:16px;
  bottom:86px;
  width: min(380px, calc(100vw - 32px));
}

.msw-card{
  background: rgb(0 0 0 / 95%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.msw-head{
  display:flex; justify-content:space-between; gap:12px;
  padding:14px 14px 10px 14px;
}
.msw-online{ display:inline-flex; align-items:center; gap:8px; font-weight:800; color:var(--text); }
.msw-desc{ margin-top:6px; font-size:12.5px; color:var(--muted); line-height:1.35; }

.msw-close{
  width:36px; height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
}

.msw-grid{ display:grid; gap:10px; padding:10px 14px 14px 14px; }

.msw-btn{
  display:flex; align-items:center; gap:12px;
  padding:12px;
  border-radius:16px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.msw-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.08); }

.msw-icon{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  flex: 0 0 44px;
  font-size:20px;
}

.msw-icon--max{
  font-weight:900; font-size:14px; letter-spacing:.6px;
  font-family: Arial, sans-serif;
  color: var(--max);
}

.msw-text{ display:grid; gap:2px; min-width:0; }
.msw-name{ font-size:14.5px; font-weight:800; line-height:1.1; }
.msw-note{ font-size:12.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.msw-ext{ margin-left:auto; opacity:.75; }

/* brand colors */
.msw-btn--wa .msw-icon i{ color: var(--wa); }
.msw-btn--tg .msw-icon i{ color: var(--tg); }
.msw-btn--mail .msw-icon i{ color: var(--mail); }
.msw-btn--call .msw-icon i{ color: var(--call); }

@media (max-width:360px){
  .msw-note{ display:none; }
}
