/* WhatsApp (iOS look) */
.wa, .wa-chat { position: absolute; inset: 0; background: #fff; color: #111; display: flex; flex-direction: column; }
.wa-scroll { flex: 1; overflow-y: auto; padding: 54px 16px 96px; scrollbar-width: none; }
.wa-scroll::-webkit-scrollbar, .wa-msgs::-webkit-scrollbar { display: none; }
.wa-actions { display: flex; align-items: center; gap: 10px; height: 40px; }
.wa-actions span { flex: 1; }
.wa-ib { border: 0; background: none; color: #111; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; padding: 0; }
.wa-ghost { background: #f0f0f0; }
.wa-green { background: #25D366; color: #fff; width: 32px; height: 32px; }
.wa-green svg { width: 20px; height: 20px; }
.wa-h1 { font-size: 33px; font-weight: 800; margin: 2px 0 8px; letter-spacing: -.5px; }
.wa-search { width: 100%; border: 0; border-radius: 11px; background: #f0f0f0; padding: 9px 12px; font-size: 16px; outline: none; -webkit-appearance: none; }
.wa-chips { display: flex; gap: 7px; overflow-x: auto; padding: 11px 0 6px; scrollbar-width: none; }
.wa-chips::-webkit-scrollbar { display: none; }
.wa-chip { border: 0; border-radius: 16px; background: #f0f0f0; color: #555; padding: 6px 13px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.wa-chip.on { background: #D9FDD3; color: #15603E; }
.wa-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 8px 0; text-align: start; color: inherit; cursor: pointer; }
.wa-row.static { cursor: default; }
.wa-row:active:not(.static) { background: #f3f3f3; }
.wa-av { border-radius: 50%; overflow: hidden; flex-shrink: 0; display: block; }
.wa-av svg, .wa-av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wa-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; border-bottom: .5px solid #e5e5ea; padding-bottom: 10px; }
.wa-l1, .wa-l2 { display: flex; align-items: center; gap: 8px; }
.wa-l1 b { flex: 1; font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-l1 b.missed { color: #FF3B30; }
.wa-time { font-size: 13.5px; color: #8a8a8e; white-space: nowrap; }
.wa-time.on { color: #1DAA61; font-weight: 600; }
.wa-prev { flex: 1; font-size: 14.5px; color: #8a8a8e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.wa-unread { min-width: 21px; height: 21px; border-radius: 11px; background: #25D366; color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.wa-tick { display: inline-flex; vertical-align: -1px; color: #8a8a8e; }
.wa-tick.read { color: #53BDEB; }
.wa-empty { text-align: center; color: #8a8a8e; padding: 40px 10px; font-size: 15px; line-height: 1.7; }
.wa-foot { text-align: center; color: #a0a0a5; font-size: 12px; margin: 18px 0 0; }
.wa-sec { font-size: 19px; font-weight: 700; margin: 12px 0 4px; }
.wa-card { background: #f6f6f6; border-radius: 14px; padding: 4px 12px; margin: 10px 0; }
.wa-set { display: flex; justify-content: space-between; padding: 13px 2px; border-bottom: .5px solid #e2e2e6; font-size: 16px; }
.wa-set:last-child { border: 0; }
.wa-set span { color: #b0b0b5; }
.wa-tabs { position: absolute; bottom: 0; left: 0; right: 0; height: 84px; padding: 6px 4px 26px; display: flex; background: #f9f9f9f2;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: .5px solid #d8d8dc; }
.wa-tabs button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #3c3c43; font-size: 10.5px; font-weight: 600; position: relative; }
.wa-tabs button.on { color: #111; }
.wa-tabs button.on svg path, .wa-tabs button.on svg circle { stroke-width: 2.4; }
.wa-tabs i { position: absolute; top: -2px; left: 50%; margin-left: 4px; min-width: 19px; height: 19px; border-radius: 10px; background: #25D366; color: #fff; font-style: normal; font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; }

/* chat */
.wa-head { display: flex; align-items: center; gap: 8px; padding: 52px 8px 8px; background: #F6F6F6; border-bottom: .5px solid #d8d8dc; z-index: 2; }
.wa-back { border: 0; background: none; color: #111; display: flex; align-items: center; gap: 4px; padding: 6px 4px; font-size: 16px; }
.wa-back span { font-size: 15px; font-weight: 600; }
.wa-who-h { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.wa-who-h b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-who-h span { font-size: 12px; color: #8a8a8e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-who-h span.typing { color: #1DAA61; }
.wa-msgs { flex: 1; overflow-y: auto; padding: 8px 12px 10px; display: flex; flex-direction: column; align-items: flex-start;
  background-color: #EFEAE2;
  background-image: radial-gradient(#00000009 1.2px, transparent 1.3px), radial-gradient(#00000007 1.2px, transparent 1.3px);
  background-size: 26px 26px, 26px 26px; background-position: 0 0, 13px 13px; user-select: text; -webkit-user-select: text; touch-action: pan-y; }
.wa-sys { align-self: center; background: #FFF5C4; color: #54656F; font-size: 12px; border-radius: 8px; padding: 6px 10px; text-align: center; margin: 4px 10px 6px; max-width: 290px; line-height: 1.5; }
.wa-day { align-self: center; margin: 10px 0 4px; }
.wa-day span { display: inline-block; background: #fff; color: #54656F; font-size: 12.5px; font-weight: 600; border-radius: 8px; padding: 4px 10px; box-shadow: 0 1px .5px #0000001a; }
.wa-newdiv { align-self: stretch; text-align: center; background: #ffffffb3; color: #54656F; font-size: 12.5px; padding: 4px; margin: 8px -12px; }
.wa-b { position: relative; max-width: 78%; padding: 6px 9px 7px; margin-top: 2px; border-radius: 8px; font-size: 15.5px; line-height: 1.42; box-shadow: 0 1px .5px #0000001f; word-wrap: break-word; }
.wa-b.first { margin-top: 7px; }
.wa-b.in { align-self: flex-start; background: #fff; }
.wa-b.out { align-self: flex-end; background: #D9FDD3; }
.wa-b.in.first { border-top-right-radius: 0; }
.wa-b.out.first { border-top-left-radius: 0; }
.wa-b.in.first::before, .wa-b.out.first::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.wa-b.in.first::before { right: -7px; background: linear-gradient(225deg, transparent 50%, #fff 50%); }
.wa-b.out.first::before { left: -7px; background: linear-gradient(135deg, transparent 50%, #D9FDD3 50%); }
.wa-b.has-r { margin-bottom: 15px; }
.wa-who { display: block; font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.wa-t { white-space: pre-wrap; }
.wa-meta { float: left; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #667781; margin: 7px 8px -4px 0; direction: ltr; white-space: nowrap; }
.wa-meta { direction: rtl; }
.wa-mention { color: #027EB5; }
.wa-img { display: block; width: 240px; max-width: 100%; border-radius: 6px; margin: 0 -4px 4px; width: calc(100% + 8px); max-height: 300px; object-fit: cover; cursor: zoom-in; }
.wa-b:has(.wa-img) { width: 250px; }
.wa-link { display: flex; flex-direction: column; background: #0000000d; border-radius: 6px; padding: 8px 10px; margin-bottom: 4px; border-inline-start: 3px solid #25D366; }
.wa-link b { font-size: 14px; }
.wa-link span { font-size: 12px; color: #667781; }
.wa-r { position: absolute; bottom: -15px; right: 8px; background: #fff; border-radius: 12px; padding: 1px 6px; font-size: 13px; box-shadow: 0 1px 3px #0003; display: flex; align-items: center; gap: 2px; direction: ltr; }
.wa-b.out .wa-r { right: auto; left: 8px; }
.wa-r i { font-style: normal; font-size: 11.5px; color: #667781; }
.wa-rbar { position: absolute; top: -48px; right: 0; display: flex; gap: 2px; background: #fff; border-radius: 26px; padding: 5px 7px; box-shadow: 0 4px 18px #0003; z-index: 5; animation: alertin .2s; }
.wa-b.out .wa-rbar { right: auto; left: 0; }
.wa-rbar button { border: 0; background: none; font-size: 24px; padding: 2px 4px; border-radius: 50%; }
.wa-rbar button:hover { background: #f0f0f0; }
.wa-typing { display: flex; gap: 4px; padding: 12px 14px; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ab; animation: wadot 1.2s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .2s; } .wa-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes wadot { 0%, 60%, 100% { transform: none; opacity: .5 } 30% { transform: translateY(-4px); opacity: 1 } }
.wa-compose { display: flex; align-items: center; gap: 6px; padding: 7px 8px 30px; background: #F6F6F6; border-top: .5px solid #d8d8dc; }
.wa-compose input { flex: 1; min-width: 0; border: .5px solid #d8d8dc; border-radius: 18px; padding: 7px 12px; font-size: 16px; outline: none; background: #fff; }
.wa-send { display: none; border: 0; width: 34px; height: 34px; border-radius: 50%; background: #25D366; place-items: center; padding: 0; }
.wa-compose.has-text .wa-send { display: grid; }
.wa-compose.has-text .wa-mic, .wa-compose.has-text .wa-cam { display: none; }

/* full-screen photo viewer (shared) */
.viewer { position: absolute; inset: 0; z-index: 50; background: #000; display: grid; place-items: center; animation: fade .2s; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-x { position: absolute; top: 56px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ffffff2b; color: #fff; font-size: 16px; z-index: 2; }

.wa-msgs.wa-plain { background-image: none; }
button.wa-link { width: 100%; border: 0; text-align: start; cursor: pointer; }

.wa-members-link { border: 0; background: none; color: inherit; text-align: start; padding: 0; cursor: pointer; }
.wa-members-link > * { max-width: 100%; }
.wa-members { padding: 16px; }
.wa-members h1 { margin: 0 0 12px; }
.wa-members h2 { font-size: 17px; }
.wa-members ul { list-style: none; padding: 0; }
.wa-members li { padding: 10px 0; border-bottom: 1px solid #ddd; }
