/* Karşılama avatarı + mini destek menüsü (sağ alt). Renkler style.css :root değişkenlerinden. */
.support-widget {
  position: fixed; right: 20px; bottom: 20px; z-index: 1045;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

/* Avatar (her zaman görünür) */
.sw-avatar {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid #fff; padding: 0; overflow: visible; cursor: pointer;
  background: var(--gold-grad); box-shadow: 0 8px 24px rgba(35,58,33,.28);
  transition: transform .2s ease;
}
.sw-avatar:hover { transform: scale(1.06); }
.sw-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.sw-avatar-ico { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 26px; }
.sw-avatar-dot {
  position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #28c76f; border: 2px solid #fff;
}
/* Dikkat çeken nabız halkası (menü kapalıyken) */
.support-widget:not(.sw-open) .sw-avatar::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid #28c76f; animation: sw-pulse 2.2s ease-out infinite; pointer-events: none;
}
@keyframes sw-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }

/* Karşılama balonu */
.sw-greeting {
  position: relative; max-width: 240px; background: #fff;
  border-radius: 16px 16px 4px 16px; box-shadow: 0 10px 30px rgba(35,58,33,.18);
  padding: 14px 30px 14px 16px; font-size: 14px; color: #2a2622; line-height: 1.4;
  animation: sw-pop .3s ease;
}
.sw-greeting strong { display: block; margin-bottom: 2px; color: var(--brand); }
.sw-greeting-close {
  position: absolute; top: 6px; right: 8px; border: 0; background: transparent;
  color: #9a9088; font-size: 13px; cursor: pointer; line-height: 1;
}
.sw-greeting-close:hover { color: var(--brand); }

/* Mini menü */
.sw-menu {
  width: 280px; max-width: calc(100vw - 40px); background: #fff;
  border-radius: 16px; box-shadow: 0 16px 40px rgba(35,58,33,.22);
  overflow: hidden; animation: sw-pop .25s ease;
}
.sw-menu-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--gold-grad); color: #fff; }
.sw-menu-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }
.sw-menu-head-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 20px; }
.sw-menu-name { font-weight: 700; font-size: 15px; }
.sw-menu-role { font-size: 12px; opacity: .9; }
.sw-menu-actions { display: flex; flex-direction: column; padding: 8px; gap: 4px; }
.sw-action { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--brand); transition: background .15s ease; }
.sw-action:hover { background: var(--gold-050); color: var(--brand); }
.sw-action i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; color: #fff; flex: 0 0 auto; }
.sw-action-wa i { background: #25d366; }
.sw-action-call i { background: var(--brand); }
.sw-action-contact i { background: var(--gold-600); }

@keyframes sw-pop { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 480px) {
  .support-widget { right: 14px; bottom: 14px; }
  .sw-avatar { width: 56px; height: 56px; }
}
