/* Standalone support widget styles (used on the public landing page) */
.support-widget{--primary:#0d9488;--bg-card:#fff;--bg-soft:#f8fafc;--text:#0b1324;--text-muted:#64748b;--text-light:#94a3b8;--border:#e5e9f2;
  --grad-brand:linear-gradient(135deg,#0d9488 0%,#0891b2 55%,#2563eb 120%);--shadow-lg:0 20px 50px rgba(15,23,42,.18);--transition:.22s cubic-bezier(.4,0,.2,1);
  font-family:'Plus Jakarta Sans','Hind Siliguri',system-ui,sans-serif;}
[data-theme="dark"] .support-widget{--bg-card:#0e1626;--bg-soft:#0a1220;--text:#e8eefb;--text-muted:#8da0bd;--border:#1b2740;}
/* ============ Support toggle widget ============ */
/* container is only as big as the button and ignores taps; only the button + open panel receive them */
.support-widget { position: fixed; right: 20px; bottom: 20px; z-index: 600; display: flex; justify-content: flex-end; width: max-content; pointer-events: none; }
.sw-toggle {
  pointer-events: auto;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; color: #fff; position: relative;
  background: var(--grad-brand); box-shadow: 0 14px 34px rgba(13,148,136,.5);
  display: flex; align-items: center; justify-content: center; transition: transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.sw-toggle:hover { transform: scale(1.07); }
.sw-toggle::before { pointer-events: none; content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: swPulse 2.4s infinite; }
.support-widget.open .sw-toggle::before { animation: none; }
.sw-panel {
  position: absolute; right: 0; bottom: calc(100% + 14px); visibility: hidden;
  width: 300px; max-width: calc(100vw - 32px); background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.94); transform-origin: bottom right; pointer-events: none; transition: opacity .28s ease, transform .28s cubic-bezier(.2,.9,.3,1.2), visibility 0s linear .28s;
}
.support-widget.open .sw-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.sw-head { background: var(--grad-brand); color: #fff; padding: 18px 20px; position: relative; overflow: hidden; }
.sw-head::after { content: ''; position: absolute; width: 120px; height: 120px; right: -30px; top: -50px; border-radius: 50%; background: rgba(255,255,255,.14); }
.sw-head b { display: block; font-size: 1rem; font-weight: 800; position: relative; z-index: 1; }
.sw-head small { font-size: .76rem; opacity: .85; position: relative; z-index: 1; }
.sw-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sw-link { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 14px; text-decoration: none; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); transition: all var(--transition); }
.sw-link:hover { transform: translateX(-3px); border-color: currentColor; }
.sw-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.sw-ico svg { width: 21px; height: 21px; }
.sw-link b { display: block; font-size: .88rem; font-weight: 800; color: var(--text); }
.sw-link small { font-size: .72rem; color: var(--text-muted); }
.sw-link.whatsapp:hover { color: #25d366; } .sw-link.telegram:hover { color: #229ed9; } .sw-link.youtube:hover { color: #ff0000; } .sw-link.facebook:hover { color: #1877f2; }
.sw-ico.whatsapp { background: #25d366; } .sw-ico.telegram { background: #229ed9; } .sw-ico.youtube { background: #ff0000; } .sw-ico.facebook { background: #1877f2; }
.sw-arrow { margin-left: auto; color: var(--text-light); font-size: 14px; }

@keyframes swPulse{0%{transform:scale(1);opacity:.55}100%{transform:scale(1.75);opacity:0}}
@media (max-width:900px){.support-widget{right:14px;bottom:16px}.sw-toggle{width:54px;height:54px}}

/* toggle icon: always centred (default SVG or the logo uploaded in admin) */
.sw-toggle .ic-open, .sw-toggle .ic-close { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .3s ease, transform .3s ease; }
.sw-toggle svg { position: static !important; width: 28px; height: 28px; }
.sw-toggle .ic-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.support-widget.open .sw-toggle .ic-open { opacity: 0; transform: rotate(90deg) scale(.5); }
.support-widget.open .sw-toggle .ic-close { opacity: 1; transform: none; }
.sw-toggle.has-img { background: #fff; padding: 0; border: 3px solid #fff; overflow: visible; }
.sw-toggle.has-img .ic-open { border-radius: 50%; overflow: hidden; }
.sw-toggle.has-img .ic-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-toggle.has-img .ic-close { background: var(--grad-brand); border-radius: 50%; }
