/* LuxeChain · WhatsApp panel — floating launcher + name-first dialog.
 * Uses the public light-theme tokens (lc-light.css). WhatsApp green is kept
 * only for the launcher itself (it is the recognised affordance); everything
 * else follows the site's purple/ink system.
 * All contrast pairs are checked: white on #128C4A (~4.7:1) and ink on white.
 */
.wa-lux-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 18px));
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #128C4A;
  color: #fff;
  font: 600 14px/1 var(--font-sans, system-ui, sans-serif);
  cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(16, 60, 38, .45), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wa-lux-fab:hover { background: #0F7A40; transform: translateY(-1px); box-shadow: 0 16px 38px -10px rgba(16, 60, 38, .5), 0 3px 8px rgba(0, 0, 0, .14); }
.wa-lux-fab:active { transform: translateY(0); }
.wa-lux-fab:focus-visible { outline: 3px solid #0F7A40; outline-offset: 3px; }
.wa-lux-fab svg { width: 22px; height: 22px; flex: 0 0 auto; }
.wa-lux-fab .wa-lux-fab-label { white-space: nowrap; }

/* A small "online" pulse dot on the launcher, motion-safe. */
.wa-lux-fab .wa-lux-dot {
  position: absolute; top: 10px; right: 12px; width: 9px; height: 9px;
  border-radius: 50%; background: #34D399; box-shadow: 0 0 0 2px #128C4A;
}
@media (prefers-reduced-motion: no-preference) {
  .wa-lux-fab .wa-lux-dot { animation: wa-lux-pulse 2.4s ease-in-out infinite; }
}
@keyframes wa-lux-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* Very small screens: icon-only launcher so it never crowds content. */
@media (max-width: 560px) {
  .wa-lux-fab { height: 56px; width: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-lux-fab .wa-lux-fab-label { display: none; }
}

/* ---- dialog ---- */
.wa-lux-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(16, 18, 27, .44);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .18s ease;
}
.wa-lux-modal[hidden] { display: none; }
.wa-lux-modal.is-open { opacity: 1; }

.wa-lux-panel {
  width: min(420px, calc(100vw - 24px));
  margin: 0 12px max(12px, env(safe-area-inset-bottom, 12px));
  background: var(--lc-card, #fff);
  color: var(--lc-ink, #16181d);
  border: 1px solid var(--lc-line, #e6e8ee);
  border-radius: 20px;
  padding: 22px 22px 20px;
  box-shadow: 0 30px 70px -20px rgba(10, 15, 30, .45);
  transform: translateY(14px) scale(.985);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}
.wa-lux-modal.is-open .wa-lux-panel { transform: translateY(0) scale(1); }
@media (min-width: 640px) {
  .wa-lux-modal { align-items: center; }
  .wa-lux-panel { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-lux-modal, .wa-lux-panel, .wa-lux-fab { transition: none !important; }
  .wa-lux-panel { transform: none !important; }
}

.wa-lux-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.wa-lux-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; background: #128C4A;
}
.wa-lux-avatar svg { width: 24px; height: 24px; }
.wa-lux-head h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.wa-lux-head .wa-lux-sub { font-size: 12.5px; color: var(--lc-ink-3, #5b6270); display: flex; align-items: center; gap: 6px; }
.wa-lux-head .wa-lux-sub i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; display: inline-block; }
.wa-lux-close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--lc-line, #e6e8ee); background: transparent; color: var(--lc-ink-3, #5b6270);
  display: grid; place-items: center; cursor: pointer;
}
.wa-lux-close:hover { background: var(--lc-brand-soft, #f5f2ff); color: var(--lc-brand-ink, #6d28d9); }
.wa-lux-close svg { width: 18px; height: 18px; }

.wa-lux-msg {
  margin: 14px 0 16px; padding: 12px 14px;
  background: var(--lc-brand-soft, #f5f2ff);
  color: var(--lc-ink, #16181d);
  border-radius: 14px 14px 14px 4px;
  font-size: 14px; line-height: 1.55;
}
.wa-lux-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--lc-ink-2, #3a3f4a); margin-bottom: 6px; }
.wa-lux-input {
  width: 100%; height: 46px; padding: 0 14px; font: 15px/1 var(--font-sans, system-ui, sans-serif);
  color: var(--lc-ink, #16181d); background: #fff;
  border: 1px solid var(--lc-line-3, #d5d9e2); border-radius: 12px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wa-lux-input:focus { border-color: var(--lc-brand, #7c3aed); box-shadow: 0 0 0 3px var(--lc-brand-line, #e4dbff); }
.wa-lux-err { min-height: 16px; margin: 6px 0 8px; font-size: 12.5px; color: #B42318; }
.wa-lux-go {
  width: 100%; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: #128C4A; color: #fff; font: 600 14.5px/1 var(--font-sans, system-ui, sans-serif);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .16s ease, transform .16s ease;
}
.wa-lux-go:hover { background: #0F7A40; }
.wa-lux-go:active { transform: scale(.99); }
.wa-lux-go svg { width: 18px; height: 18px; }
.wa-lux-foot { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--lc-ink-4, #7b8190); text-align: center; }

/* Footer/contact inline link styled as a quiet WhatsApp affordance. */
.wa-lux-inline {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600;
  color: var(--lc-brand-ink, #6d28d9); text-decoration: none;
}
.wa-lux-inline svg { width: 16px; height: 16px; color: #128C4A; flex: 0 0 auto; }
.wa-lux-inline:hover { text-decoration: underline; }
