/* ✅ assets/wa-chat.css — WhatsApp Clean Pro (Flat / Modern / FA icons) */

:root{
  --wa2-green:#25D366;
  --wa2-bg:#0b0f14;
  --wa2-card:#0f151d;
  --wa2-stroke: rgba(255,255,255,.10);
  --wa2-text: rgba(255,255,255,.92);
  --wa2-muted: rgba(255,255,255,.62);
  --wa2-shadow: 0 10px 28px rgba(0,0,0,.32); /* light, modern */
  --wa2-radius: 16px;
}

.wa2-fab, .wa2 *{
  box-sizing:border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* ===== Floating Button ===== */
.wa2-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:99999;

  height:52px;
  padding:0 14px;
  border-radius:14px;

  border:1px solid rgba(255,255,255,.12);
  background: rgba(15,21,29,.92);
  color: var(--wa2-text);

  display:flex;
  align-items:center;
  gap:10px;

  box-shadow: var(--wa2-shadow);
  cursor:pointer;

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.wa2-fab:hover{
  transform: translateY(-1px);
  background: rgba(15,21,29,.98);
  border-color: rgba(37,211,102,.35);
}
.wa2-fab:active{ transform: translateY(0); }

.wa2-fab__fa{
  font-size:22px;
  color: var(--wa2-green);
  line-height:1;
}
.wa2-fab__text{
  font-weight:900;
  letter-spacing:.2px;
  font-size:13px;
}

/* ===== Overlay wrapper ===== */
.wa2{
  position:fixed;
  inset:0;
  z-index:99998;
  pointer-events:none;
  opacity:0;
  transition: opacity .18s ease;
}
.wa2.is-open{
  opacity:1;
  pointer-events:auto;
}

/* Backdrop */
.wa2__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Panel */
.wa2__panel{
  position:absolute;
  right:18px;
  bottom:86px;
  width:360px;

  border-radius: 18px;
  background: rgba(15,21,29,.96);
  border:1px solid var(--wa2-stroke);
  box-shadow: var(--wa2-shadow);
  overflow:hidden;

  transform: translateY(12px) scale(.985);
  opacity:0;
  transition: .18s ease;
  transform-origin: bottom right;
}
.wa2.is-open .wa2__panel{
  transform: translateY(0) scale(1);
  opacity:1;
}

/* Header */
.wa2__head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.wa2__avatar{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.wa2__avatarIcon{
  font-size:18px;
  color: var(--wa2-green);
}

.wa2__meta{ flex:1; min-width:0; }
.wa2__title{
  color: var(--wa2-text);
  font-weight:900;
  font-size:14px;
}
.wa2__sub{
  margin-top:3px;
  color: var(--wa2-muted);
  font-weight:700;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:8px;
}

.wa2__dot{
  width:8px;height:8px;border-radius:999px;
  background: var(--wa2-green);
}

.wa2__x{
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--wa2-text);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: .15s ease;
}
.wa2__x:hover{ background: rgba(255,255,255,.07); transform: translateY(-1px); }
.wa2__x:active{ transform: translateY(0); }

/* Body */
.wa2__body{
  padding:14px;
}
.wa2__bubble{
  display:inline-block;
  max-width:92%;
  padding:12px 12px;
  border-radius:16px;
  border-top-left-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--wa2-text);
  font-weight:700;
  font-size:13px;
  line-height:1.35;
}

.wa2__chips{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.wa2__chip{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  padding:9px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  transition: .15s ease;
}
.wa2__chip:hover{
  border-color: rgba(37,211,102,.35);
  background: rgba(37,211,102,.06);
}

/* Footer */
.wa2__foot{
  padding:12px;
  display:flex;
  gap:10px;
  align-items:center;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.wa2__input{
  flex:1;
  height:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--wa2-text);
  outline:none;
  padding: 0 12px;
  font-weight:700;
  font-size:13px;
  transition: .15s ease;
}
.wa2__input::placeholder{ color: rgba(255,255,255,.45); }
.wa2__input:focus{
  border-color: rgba(37,211,102,.35);
}

.wa2__send{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(37,211,102,.10);
  text-decoration:none;
  transition: .15s ease;
}
.wa2__send:hover{
  background: rgba(37,211,102,.16);
  border-color: rgba(37,211,102,.30);
  transform: translateY(-1px);
}
.wa2__send:active{ transform: translateY(0); }
.wa2__sendFa{
  color: var(--wa2-green);
  font-size:16px;
}

/* ===== Mobile ===== */
@media (max-width: 520px){
  .wa2-fab{ right:14px; bottom:14px; }
  .wa2__panel{
    left:12px;
    right:12px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    width:auto;
    transform-origin: bottom center;
  }
}