/* ============================================================
   11 — WHATSAPP
   Konsep: undangan sebagai percakapan. Wallpaper doodle, bubble,
   voice note, reaction, pinned countdown, RSVP chat.
   ============================================================ */
:root {
  --wa-green: #008069;
  --wa-green-deep: #005c4b;
  --wa-bright: #25d366;
  --wa-teal: #00a884;
  --wa-bg: #efeae2;
  --wa-panel: #ffffff;
  --wa-text: #111b21;
  --wa-muted: #667781;
  --wa-faint: #8696a0;
  --wa-out: #d9fdd3;
  --wa-line: #e9edef;
  --wa-chip: #e6f2f5;
  --wa-blue-tick: #53bdeb;
  --wa-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.wa-body {
  font-family: var(--wa-font);
  color: var(--wa-text);
  background: #0b141a;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- STAGE ---------- */
.wa-stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 6vw, 90px);
  padding: 22px;
  background-color: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.2'%3E%3Cpath d='M30 34c-6-6-15 2-9 9l9 8 9-8c6-7-3-15-9-9Z'/%3E%3Ccircle cx='118' cy='32' r='8'/%3E%3Ccircle cx='118' cy='32' r='2.6'/%3E%3Cpath d='M44 110c0-8 10-8 10 0 0 8-10 8-10 0Z'/%3E%3Cpath d='M92 100l4 8 8 1-6 6 2 8-8-4-8 4 2-8-6-6 8-1Z'/%3E%3Cpath d='M128 92c8 4 8 17 0 21'/%3E%3Cpath d='M18 84l7 7m0-7-7 7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.wa-side {
  display: none;
  width: 280px;
  color: #e9edef;
  flex: 0 0 auto;
}
.wa-side__eyebrow {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(233, 237, 239, 0.5);
  margin-bottom: 14px;
}
.wa-side h2 {
  font-size: 46px;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.wa-side h2 span {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--wa-bright);
  font-size: 0.72em;
}
.wa-side__date {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 237, 239, 0.62);
  margin-top: 18px;
}
.wa-side__copy {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(233, 237, 239, 0.46);
  margin-top: 12px;
  max-width: 24ch;
}
.wa-side__back {
  display: inline-block;
  margin-top: 28px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 237, 239, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 237, 239, 0.2);
  padding-bottom: 3px;
}
.wa-side__back:hover { color: #fff; }

/* Phone / chat column */
.wa-phone {
  position: relative;
  width: min(440px, 100%);
  height: min(900px, 94svh);
  display: flex;
  flex-direction: column;
  background: var(--wa-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 34px 90px -22px rgba(0, 0, 0, 0.85);
}
.wa-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.995);
  transition: opacity 0.55s ease, visibility 0.55s, transform 0.55s var(--wa-ease);
}
.wa-app.is-live { opacity: 1; visibility: visible; transform: none; }

/* Header */
.wa-head {
  flex: 0 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  background: var(--wa-green);
  color: #fff;
}
.wa-head__btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background 0.2s;
}
.wa-head__btn:hover { background: rgba(255, 255, 255, 0.12); }
.wa-head__btn svg { width: 20px; height: 20px; fill: currentColor; }
.wa-head__identity {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  color: #fff;
  text-align: left;
  padding: 3px 2px;
}
.wa-head__avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: #d1d7db; }
.wa-head__avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-head__name { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.wa-head__name strong {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-head__name em {
  font-style: normal;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  gap: 4px;
}
.wa-head__name i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aef5c4;
  box-shadow: 0 0 5px rgba(174, 245, 196, 0.8);
}
.wa-head__actions { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }

/* Pinned */
.wa-pinned {
  flex: 0 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 0;
  border-bottom: 1px solid var(--wa-line);
  background: #f0f2f5;
  color: var(--wa-muted);
  text-align: left;
  font-size: 10.5px;
  line-height: 1.3;
}
.wa-pinned:hover { background: #e9edef; }
.wa-pinned svg { width: 13px; height: 13px; fill: var(--wa-green); flex: 0 0 auto; }
.wa-pinned span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-pinned b { color: #3b4a54; font-weight: 600; margin-right: 3px; }

/* Chat canvas */
.wa-chat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 20, 26, 0.18) transparent;
  background-color: var(--wa-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%230b141a' stroke-opacity='.055' stroke-width='1.2'%3E%3Cpath d='M26 30c-5-5-13 2-8 8l8 7 8-7c5-6-3-13-8-8Z'/%3E%3Ccircle cx='104' cy='28' r='7'/%3E%3Ccircle cx='104' cy='28' r='2.4'/%3E%3Cpath d='M38 96c0-7 9-7 9 0 0 7-9 7-9 0Z'/%3E%3Cpath d='M80 88l3 7 7 1-5 5 2 7-7-3-7 3 2-7-5-5 7-1Z'/%3E%3Cpath d='M112 80c7 4 7 15 0 19'/%3E%3Cpath d='M16 72l6 6m0-6-6 6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.wa-chat::-webkit-scrollbar { width: 5px; }
.wa-chat::-webkit-scrollbar-thumb { background: rgba(11, 20, 26, 0.16); border-radius: 3px; }

/* System + date + dividers */
.wa-sys {
  align-self: center;
  max-width: 92%;
  background: #fdf3d7;
  color: #54656f;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
  padding: 5px 10px;
  border-radius: 7px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.12);
  margin: 2px 0;
}
.wa-sys span { margin-right: 2px; }
.wa-sys--last { background: #e7f3d9; color: #3b5a2a; }
.wa-date {
  align-self: center;
  background: var(--wa-chip);
  color: #5e7a86;
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 7px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.1);
  margin: 6px 0;
}
.wa-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 2px 5px;
  color: var(--wa-faint);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.wa-divider::before,
.wa-divider::after { content: ""; height: 1px; flex: 1; background: rgba(11, 20, 26, 0.1); }
.wa-divider span { white-space: nowrap; }

/* Messages */
.msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  position: relative;
  margin-bottom: 2px;
}
.msg--out { align-items: flex-end; }
.msg__bubble {
  position: relative;
  max-width: 84%;
  background: #fff;
  color: var(--wa-text);
  border-radius: 8px;
  padding: 6px 8px 7px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.msg__bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: #fff;
  border-right: 0;
}
.msg--out .msg__bubble { background: var(--wa-out); }
.msg--out .msg__bubble::before {
  left: auto;
  right: -6px;
  border-top-color: var(--wa-out);
  border-left: 0;
  border-right: 6px solid transparent;
}
.msg__bubble p { margin: 0 0 2px; }
.msg__bubble b { font-weight: 600; }
.msg__meta {
  display: block;
  text-align: right;
  font-size: 9.5px;
  line-height: 1.1;
  color: var(--wa-muted);
  margin-top: 2px;
  white-space: nowrap;
}
.wa-ticks { color: var(--wa-blue-tick); font-style: normal; letter-spacing: -2px; font-size: 10.5px; }
.msg__caption {
  font-size: 12.5px;
  line-height: 1.4;
  padding: 4px 4px 1px;
  margin: 0;
}
.msg__bubble--image { padding: 3px; max-width: 76%; }
.msg__bubble--image .msg__meta { padding-right: 5px; padding-bottom: 3px; }
.wa-photo { display: block; border-radius: 6px; overflow: hidden; background: #d1d7db; }
.wa-photo img { width: 100%; max-height: 270px; object-fit: cover; transition: transform 0.4s var(--wa-ease), filter 0.3s; }
.wa-photo:hover img { transform: scale(1.02); filter: brightness(0.92); }

/* Reactions */
.msg__reactions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border: 1px solid #f0f2f5;
  border-radius: 10px;
  padding: 1px 6px;
  margin: -4px 0 0 7px;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.12);
  font-size: 10px;
  color: var(--wa-muted);
  position: relative;
  z-index: 2;
}
.msg--out .msg__reactions { margin: -4px 7px 0 0; }
.msg__reactions span:first-child { font-size: 12px; }

/* Story messages */
.wa-story { display: flex; flex-direction: column; gap: 4px; }
.wa-story__date {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wa-green);
  font-weight: 600;
  margin-bottom: 2px;
}
.wa-story__title { font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 2px; }

/* Small reaction trigger */
.msg__react {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 1px solid var(--wa-line);
  border-radius: 50%;
  background: #fff;
  color: var(--wa-faint);
  font-size: 11px;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.18s, transform 0.18s;
}
.msg:hover .msg__react, .msg:focus-within .msg__react, .msg__react:focus-visible {
  opacity: 1;
  transform: none;
}
.msg--out .msg__react { right: auto; left: -8px; }
.msg.is-flash .msg__bubble { box-shadow: 0 0 0 2px var(--wa-green), 0 1px 0.5px rgba(11, 20, 26, 0.13); }

/* Contact cards */
.msg__bubble--contacts { width: 300px; max-width: 88%; padding: 7px; }
.wa-label {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wa-faint);
  margin: 1px 2px 6px;
}
.wa-contact {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--wa-line);
  border-radius: 8px;
  background: #fff;
  padding: 7px;
  margin-bottom: 6px;
  text-align: left;
  transition: background 0.2s;
}
.wa-contact:last-of-type { margin-bottom: 4px; }
.wa-contact:hover { background: #f7f8fa; }
.wa-contact img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.wa-contact__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-contact__body strong { font-size: 12.5px; font-weight: 600; }
.wa-contact__body em { font-style: normal; font-size: 9.5px; color: var(--wa-green); margin-bottom: 2px; }
.wa-contact__body span { font-size: 10.5px; line-height: 1.35; color: var(--wa-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-contact__go { color: var(--wa-faint); font-size: 17px; padding-right: 3px; }

/* Voice note */
.msg__bubble--voice { width: 250px; max-width: 84%; display: flex; align-items: center; gap: 8px; padding: 5px 8px 6px 5px; flex-wrap: wrap; }
.wa-voice__play {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.wa-voice__play svg { width: 18px; height: 18px; fill: currentColor; }
.wa-voice__wave { flex: 1; display: flex; align-items: center; gap: 1.5px; height: 22px; min-width: 90px; }
.wa-voice__wave i {
  flex: 1;
  min-width: 1px;
  background: #a9b7bf;
  border-radius: 1px;
  transition: background 0.15s;
}
.wa-voice__wave i.is-played { background: var(--wa-green); }
.wa-voice__time { font-size: 9.5px; color: var(--wa-muted); }
.msg__bubble--voice .msg__meta { width: 100%; }

/* Countdown */
.msg__bubble--count { width: 268px; max-width: 86%; padding: 9px 10px 7px; }
.wa-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 3px 0 5px; }
.wa-count span {
  background: #f0f7f2;
  border-radius: 7px;
  padding: 6px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.wa-count b { font-size: 20px; font-weight: 600; color: var(--wa-green); font-variant-numeric: tabular-nums; }
.wa-count em { font-style: normal; font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wa-faint); }
.wa-count__meta { font-size: 9.5px; color: var(--wa-muted); line-height: 1.4; }

/* Location cards */
.msg__bubble--loc { width: 292px; max-width: 88%; padding: 4px; }
.wa-loc__map { height: 118px; border-radius: 6px; overflow: hidden; background: #e9ebe4; }
.wa-loc__map svg { width: 100%; height: 100%; display: block; }
.wa-loc__body { padding: 7px 5px 4px; }
.wa-loc__body .wa-label { margin-bottom: 2px; }
.wa-loc__body strong { display: block; font-size: 13px; font-weight: 600; }
.wa-loc__body em { display: block; font-style: normal; font-size: 10.5px; color: var(--wa-green); margin-top: 1px; }
.wa-loc__body span { display: block; font-size: 10.5px; line-height: 1.4; color: var(--wa-muted); margin-top: 3px; }
.wa-loc__actions { display: flex; gap: 5px; border-top: 1px solid var(--wa-line); margin-top: 5px; padding-top: 2px; }
.wa-loc__actions a, .wa-loc__actions button {
  flex: 1;
  border: 0;
  background: none;
  color: var(--wa-green);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 7px 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.wa-loc__actions a:hover, .wa-loc__actions button:hover { background: #f0f7f2; }

/* Document */
.msg__bubble--doc { width: 272px; max-width: 86%; padding: 6px; }
.wa-doc {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: #f7f8fa;
  border-radius: 7px;
  padding: 8px;
  text-align: left;
  transition: background 0.2s;
}
.wa-doc:hover { background: #eef1f3; }
.wa-doc__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.wa-doc__icon svg { width: 21px; height: 21px; fill: currentColor; }
.wa-doc__body { flex: 1; min-width: 0; }
.wa-doc__body strong { display: block; font-size: 12px; font-weight: 600; }
.wa-doc__body em { font-style: normal; font-size: 9.5px; color: var(--wa-muted); }
.wa-doc__go { color: var(--wa-faint); font-size: 17px; }

/* RSVP form bubble */
.msg__bubble--form { width: 306px; max-width: 92%; padding: 9px 9px 7px; }
.wa-form__lead { font-size: 11px; line-height: 1.5; color: var(--wa-muted); margin-bottom: 8px; }
.wa-form__lead b { color: var(--wa-text); }
.wa-form { display: flex; flex-direction: column; gap: 7px; }
.wa-field { display: block; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wa-faint); }
.wa-field input[type="text"], .wa-field select, .wa-field textarea {
  width: 100%;
  margin-top: 3px;
  border: 1px solid #d1d7db;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--wa-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wa-field input[type="text"]:focus, .wa-field select:focus, .wa-field textarea:focus {
  outline: none;
  border-color: var(--wa-green);
  box-shadow: 0 0 0 2px rgba(0, 168, 132, 0.12);
}
.wa-field--attend { border: 0; padding: 0; margin: 0; }
.wa-field--attend legend { padding: 0; margin-bottom: 3px; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wa-faint); }
.wa-field--attend { display: flex; flex-wrap: wrap; gap: 4px; }
.wa-field--attend legend { width: 100%; }
.wa-field--attend label { flex: 1; position: relative; min-width: 0; }
.wa-field--attend input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wa-field--attend label span {
  display: block;
  text-align: center;
  font-size: 10px;
  padding: 7px 3px;
  border: 1px solid #d1d7db;
  border-radius: 8px;
  background: #fff;
  color: var(--wa-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wa-field--attend input:checked + span { background: var(--wa-out); border-color: var(--wa-green); color: var(--wa-green-deep); font-weight: 600; }
.wa-field--attend input:focus-visible + span { outline: 2px solid var(--wa-green); outline-offset: 1px; }
.wa-form__submit {
  height: 37px;
  border: 0;
  border-radius: 8px;
  background: var(--wa-green);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1px;
  transition: background 0.2s;
}
.wa-form__submit:hover { background: var(--wa-green-deep); }

/* Quote + closing */
.msg__bubble--quote { max-width: 82%; }
.msg__bubble--quote p { font-style: italic; font-size: 12.5px; line-height: 1.55; }
.msg__bubble--closing { width: 278px; max-width: 88%; padding: 13px 12px 9px; text-align: center; }
.wa-closing__mono {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: #7a5c3e;
  letter-spacing: 0.05em;
}
.wa-closing__mono span { font-size: 0.7em; opacity: 0.7; }
.wa-closing__date { font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wa-faint); margin-top: 2px; }
.wa-closing__msg { font-size: 10.5px; line-height: 1.55; color: var(--wa-muted); margin-top: 9px; }
.wa-closing__thanks { font-size: 10px; line-height: 1.5; color: var(--wa-faint); margin-top: 5px; }
.wa-closing__hash { font-size: 9.5px; letter-spacing: 0.16em; color: var(--wa-green); margin-top: 9px; }
.wa-closing__back {
  display: inline-block;
  margin-top: 9px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wa-faint);
  text-decoration: none;
}
.wa-closing__back:hover { color: var(--wa-green); }

/* Typing indicator */
.wa-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: 8px 8px 8px 2px;
  padding: 9px 11px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  align-self: flex-start;
  margin-bottom: 4px;
}
.wa-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9aa7ae;
  animation: waTyping 1.2s infinite ease-in-out;
}
.wa-typing i:nth-child(2) { animation-delay: 0.15s; }
.wa-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes waTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Input */
.wa-input {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: #f0f2f5;
}
.wa-input__icon {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #54656f;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.wa-input__icon:hover { background: #e4e7e9; }
.wa-input__icon svg { width: 21px; height: 21px; fill: currentColor; }
.wa-input input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--wa-text);
  outline: none;
  transition: box-shadow 0.2s;
}
.wa-input input:focus { box-shadow: 0 0 0 1.5px rgba(0, 128, 105, 0.35); }
.wa-input input::placeholder { color: #8696a0; }
.wa-input__send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--wa-teal);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background 0.2s, transform 0.2s;
}
.wa-input__send:hover { background: var(--wa-green); transform: scale(1.04); }
.wa-input__send svg { width: 20px; height: 20px; fill: currentColor; }

/* Menu */
.wa-menu {
  position: absolute;
  top: 54px;
  right: 9px;
  z-index: 60;
  width: 190px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(11, 20, 26, 0.28);
  padding: 4px;
  display: flex;
  flex-direction: column;
  animation: waMenuIn 0.18s var(--wa-ease);
}
.wa-menu[hidden] { display: none; }
@keyframes waMenuIn { from { opacity: 0; transform: translateY(-4px); } }
.wa-menu button, .wa-menu a {
  border: 0;
  background: none;
  text-align: left;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12px;
  color: #3b4a54;
  text-decoration: none;
  border-radius: 5px;
}
.wa-menu button:hover, .wa-menu a:hover { background: #f5f6f6; }
.wa-menu button:last-child { color: #d9534f; }

/* Sheets */
.wa-sheet {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: var(--wa-bg);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.38s var(--wa-ease), visibility 0.38s;
}
.wa-sheet.is-open { transform: translateX(0); visibility: visible; }
.wa-sheet__head {
  flex: 0 0 auto;
  min-height: 60px;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}
.wa-sheet__title { display: flex; flex-direction: column; line-height: 1.2; padding-left: 2px; }
.wa-sheet__title strong { font-size: 14.5px; font-weight: 600; }
.wa-sheet__title em { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, 0.75); }
.wa-sheet__body { flex: 1; overflow-y: auto; padding: 12px; scrollbar-width: thin; }
.wa-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.wa-gal { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: #d1d7db; }
.wa-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--wa-ease), filter 0.3s; }
.wa-gal:hover img { transform: scale(1.05); filter: brightness(0.88); }
.wa-gallery__hint { font-size: 10.5px; color: var(--wa-muted); text-align: center; margin-top: 12px; }

/* Profile sheet */
.wa-profile { padding: 14px 14px 24px; }
.wa-profile__person {
  background: #fff;
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.1);
}
.wa-profile__person img { width: 100%; height: 210px; object-fit: cover; object-position: 50% 25%; border-radius: 8px; margin-bottom: 10px; }
.wa-profile__person h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.wa-profile__parents { font-size: 10.5px; line-height: 1.45; color: var(--wa-muted); margin-top: 2px; }
.wa-profile__bio { font-size: 11.5px; line-height: 1.55; color: var(--wa-text); margin-top: 7px; }
.wa-profile__ig { display: inline-block; margin-top: 7px; font-size: 11px; color: var(--wa-green); text-decoration: none; }
.wa-profile__quote {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.6;
  color: var(--wa-muted);
  text-align: center;
  padding: 12px 16px;
}
.wa-profile__chat {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 21px;
  background: var(--wa-green);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
}

/* Reaction picker */
.wa-reactions {
  position: absolute;
  z-index: 85;
  display: flex;
  gap: 2px;
  background: #fff;
  border-radius: 24px;
  padding: 5px 7px;
  box-shadow: 0 8px 24px rgba(11, 20, 26, 0.28);
  animation: waMenuIn 0.18s var(--wa-ease);
}
.wa-reactions[hidden] { display: none; }
.wa-reactions button {
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  border-radius: 50%;
  transition: transform 0.15s;
}
.wa-reactions button:hover { transform: scale(1.22); }

/* Toast */
.wa-toast {
  position: absolute;
  z-index: 90;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  background: #323232;
  color: #fff;
  font-size: 11.5px;
  padding: 8px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  max-width: calc(100% - 30px);
  text-align: center;
  animation: waToast 0.22s var(--wa-ease);
}
.wa-toast[hidden] { display: none; }
@keyframes waToast { from { opacity: 0; transform: translate(-50%, 6px); } }

/* ---------- GATE ---------- */
.wa-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: #0b141a;
  transition: opacity 0.55s ease, visibility 0.55s;
}
.wa-gate.is-closed { opacity: 0; visibility: hidden; pointer-events: none; }
.wa-gate__pattern {
  position: absolute;
  inset: 0;
  background-color: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1.2'%3E%3Cpath d='M30 34c-6-6-15 2-9 9l9 8 9-8c6-7-3-15-9-9Z'/%3E%3Ccircle cx='118' cy='32' r='8'/%3E%3Ccircle cx='118' cy='32' r='2.6'/%3E%3Cpath d='M44 110c0-8 10-8 10 0 0 8-10 8-10 0Z'/%3E%3Cpath d='M92 100l4 8 8 1-6 6 2 8-8-4-8 4 2-8-6-6 8-1Z'/%3E%3Cpath d='M128 92c8 4 8 17 0 21'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.wa-gate__pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 35%, rgba(0, 128, 105, 0.35), transparent 70%);
}
.wa-gate__card {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 26px 24px 20px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  animation: waGateIn 0.6s var(--wa-ease);
}
@keyframes waGateIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.wa-gate__logo {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(0, 128, 105, 0.7);
}
.wa-gate__logo svg { width: 26px; height: 26px; fill: currentColor; }
.wa-gate__eyebrow {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wa-green);
  font-weight: 600;
}
.wa-gate__title {
  font-size: 31px;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-top: 4px;
  color: var(--wa-text);
}
.wa-gate__title span {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--wa-green);
  font-size: 0.72em;
}
.wa-gate__avatar {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 16px auto 12px;
}
.wa-gate__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--wa-green), 0 12px 24px -10px rgba(0, 0, 0, 0.35);
}
.wa-gate__online {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wa-bright);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 9px;
  border: 1.5px solid #fff;
  white-space: nowrap;
}
.wa-gate__guest { font-size: 11.5px; color: var(--wa-muted); margin-top: 4px; }
.wa-gate__guest b { color: var(--wa-text); font-weight: 600; }
.wa-gate__copy { font-size: 12px; line-height: 1.65; color: var(--wa-muted); margin-top: 10px; padding: 0 4px; }
.wa-gate__open {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 24px;
  background: var(--wa-green);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 24px -12px rgba(0, 128, 105, 0.8);
  transition: background 0.2s, transform 0.2s;
}
.wa-gate__open:hover { background: var(--wa-green-deep); transform: translateY(-1px); }
.wa-gate__meta { font-size: 9.5px; color: var(--wa-faint); margin-top: 10px; }
.wa-gate__back {
  display: block;
  margin-top: 12px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wa-faint);
  text-decoration: none;
}
.wa-gate__back:hover { color: var(--wa-green); }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 1000px) {
  .wa-side { display: block; }
}
@media (max-width: 700px) {
  .wa-stage { padding: 0; display: block; }
  .wa-phone {
    width: 100%;
    height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }
  .wa-head {
    min-height: calc(58px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
  .wa-head__actions .wa-head__btn:not(#menuBtn) { display: none; }
  .wa-gate__card { padding: 24px 20px 18px; }
  .wa-gate__title { font-size: 28px; }
}
@media (max-width: 380px) {
  .wa-head__btn { width: 32px; height: 32px; }
  .wa-head__avatar { width: 34px; height: 34px; }
  .wa-head__name strong { font-size: 13px; }
  .wa-chat { padding: 8px 8px 14px; }
  .msg__bubble { font-size: 13px; }
  .msg__bubble--contacts, .msg__bubble--loc, .msg__bubble--form { max-width: 94%; }
  .wa-count b { font-size: 18px; }
  .wa-gate__card { padding: 22px 17px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-typing i { animation: none !important; }
  .wa-app, .wa-gate, .wa-sheet, .wa-menu, .wa-toast { transition-duration: 0.01ms !important; animation: none !important; }
  .wa-photo img, .wa-gal img { transition: none; }
}
