:root {
  --pink: #ef8b9b;
  --pink-deep: #e96f85;
  --blue: #1c9edf;
  --blue-dark: #178ac6;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow-x: hidden; }

body {
  font-family: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  color: var(--pink);
}

/* ---------- Warm blurred background (from the avatar, like Beacons) ---------- */
.bg { position: fixed; inset: 0; z-index: -2; background: radial-gradient(circle at 50% 22%, #94584a 0%, #5b3328 46%, #2b1711 100%); }
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/avatar.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: blur(80px) saturate(1.15);
  transform: scale(1.5);
  opacity: 0.55;
}

/* ---------- Card ---------- */
.card {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  background: #fff;
  border-radius: 32px;
  padding: clamp(20px, 4.5vw, 44px);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0,0,0,0.4);
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.cover-wrap { position: relative; padding-bottom: 70px; }
.cover {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
.avatar {
  width: 134px; height: 134px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
}

/* ---------- Name + badges ---------- */
.name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.verify-wrap { position: relative; display: inline-flex; }
.verified {
  font-size: 0.42em;
  width: 1.5em; height: 1.5em;
  display: inline-flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(56,151,240,0.4);
  border-radius: 50%;
  overflow: hidden;
}

/* verified tooltip / popup */
.verify-pop {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%) translateX(-6px);
  width: min(220px, 70vw);
  background: #fff;
  color: #5a5a5a;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0,0,0,0.2);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}
.verify-pop strong { display: flex; align-items: center; color: #2a2a2a; font-weight: 700; font-size: 13.5px; margin-bottom: 5px; }
.verify-wrap:hover .verify-pop,
.verify-pop.open { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.verify-arrow {
  position: absolute; top: 50%; left: -6px;
  margin-top: -6px;
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid #eee; border-bottom: 1px solid #eee;
  transform: rotate(45deg);
}

.status {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #5fbf6a;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #43d65f;
  box-shadow: 0 0 0 0 rgba(67,214,95,0.7);
  animation: ping 1.8s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(67,214,95,0.6); }
  70% { box-shadow: 0 0 0 9px rgba(67,214,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(67,214,95,0); }
}

.nearby {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 16px 8px 10px;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #111;
  min-height: 0;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}
.nearby-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: #ffeaea;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.map-wrap {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  border: 1.5px solid #f5c0cb;
  position: relative;
  z-index: 0;
  isolation: isolate;
}
#map { height: 130px; width: 100%; background: #e8e8e8; }
.map-caption {
  font-size: 11px;
  color: #bbb;
  padding: 6px 0 2px;
  font-weight: 400;
}
.map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.map-marker-label {
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.2px;
}
.map-marker-dot {
  width: 18px; height: 18px;
  background: var(--pink-deep);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(233,111,133,0.7);
  position: relative;
  animation: dotBlink 1.2s ease-in-out infinite;
}
.map-marker-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(233,111,133,0.3);
  animation: dotRing 1.2s ease-out infinite;
}
@keyframes dotBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233,111,133,0.9); }
  50% { box-shadow: 0 0 0 8px rgba(233,111,133,0); }
}
@keyframes dotRing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.bio {
  font-weight: 500;
  font-size: clamp(15px, 2.6vw, 19px);
  margin-top: 14px;
}

.audio-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.audio-warning {
  font-size: 11px;
  font-weight: 500;
  color: #bbb;
  letter-spacing: 0.2px;
}
.voice-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f0f0f0;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px 10px 10px;
  cursor: pointer;
  max-width: 280px;
  width: 100%;
  box-sizing: border-box;
  transition: background .15s ease;
}
.voice-note:active { background: #e8e8e8; }
.voice-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f5c0cb;
}
.voice-play {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pink);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(233,111,133,0.4);
}
.voice-play .icon-play  { display: block; fill: #fff; }
.voice-play .icon-pause { display: none;  fill: #fff; }
.voice-note.playing .voice-play .icon-play  { display: none; }
.voice-note.playing .voice-play .icon-pause { display: block; }
.voice-waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  flex: 1;
  height: 28px;
}
.voice-waveform span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #c0c0c0;
  transition: background 0.15s ease;
}
.voice-waveform span:nth-child(1)  { height: 6px; }
.voice-waveform span:nth-child(2)  { height: 12px; }
.voice-waveform span:nth-child(3)  { height: 20px; }
.voice-waveform span:nth-child(4)  { height: 8px; }
.voice-waveform span:nth-child(5)  { height: 24px; }
.voice-waveform span:nth-child(6)  { height: 14px; }
.voice-waveform span:nth-child(7)  { height: 10px; }
.voice-waveform span:nth-child(8)  { height: 22px; }
.voice-waveform span:nth-child(9)  { height: 16px; }
.voice-waveform span:nth-child(10) { height: 6px; }
.voice-waveform span:nth-child(11) { height: 26px; }
.voice-waveform span:nth-child(12) { height: 12px; }
.voice-waveform span:nth-child(13) { height: 18px; }
.voice-waveform span:nth-child(14) { height: 8px; }
.voice-waveform span:nth-child(15) { height: 22px; }
.voice-waveform span:nth-child(16) { height: 10px; }
.voice-waveform span:nth-child(17) { height: 16px; }
.voice-waveform span:nth-child(18) { height: 20px; }
.voice-waveform span:nth-child(19) { height: 6px; }
.voice-waveform span:nth-child(20) { height: 24px; }
.voice-waveform span:nth-child(21) { height: 14px; }
.voice-waveform span:nth-child(22) { height: 10px; }
.voice-waveform span:nth-child(23) { height: 18px; }
.voice-waveform span:nth-child(24) { height: 12px; }
.voice-waveform span:nth-child(25) { height: 6px; }
.voice-note.playing .voice-waveform span {
  background: var(--pink);
  animation: waveBar 0.7s ease-in-out infinite alternate;
}
.voice-note.playing .voice-waveform span:nth-child(2n)   { animation-delay: 0.1s; }
.voice-note.playing .voice-waveform span:nth-child(3n)   { animation-delay: 0.2s; }
.voice-note.playing .voice-waveform span:nth-child(5n)   { animation-delay: 0.35s; }
@keyframes waveBar {
  from { transform: scaleY(0.6); opacity: 0.7; }
  to   { transform: scaleY(1.3); opacity: 1; }
}
.voice-duration {
  font-size: 11px;
  color: #999;
  font-family: "Poppins", sans-serif;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 28px;
}

.inclusive {
  margin-top: 12px;
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 400;
  color: #999;
  line-height: 1.55;
  padding: 0 4px;
}

.social-proof strong { color: var(--pink-deep); }

.social-proof {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff0f4, #ffe4ed);
  border: 1.5px solid #f5c0cb;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #c0546a;
  letter-spacing: 0.1px;
}
.social-proof::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--pink-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(233,111,133,0.6);
  animation: ping 1.4s infinite;
}


.label {
  font-weight: 500;
  font-size: clamp(13px, 2.2vw, 16px);
  margin-top: 10px;
  margin-bottom: 16px;
  color: #bbb;
}

.cta-timer {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(135deg, #c8960c, #f0c040, #c8960c);
  color: #3a2800;
  font-family: "Poppins", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.1px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px rgba(200,150,12,0.5);
  z-index: 10;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  background: linear-gradient(135deg, #29a9e6, var(--blue) 60%, var(--blue-dark));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 18px 56px;
  box-shadow: 0 12px 30px rgba(28,158,223,0.45);
  animation: bob 2.6s ease-in-out infinite;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta:hover { box-shadow: 0 16px 38px rgba(28,158,223,0.6); }
.cta:active { transform: scale(0.985); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* moving shine sweep */
.shine {
  position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg);
  animation: sweep 3.4s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -60%; } 55%,100% { left: 130%; } }

.cta-text { display: flex; flex-direction: column; line-height: 1.15; }
.cta-main { font-weight: 600; font-size: clamp(18px, 3vw, 21px); }
.cta-sub  { font-weight: 400; font-size: 12.5px; opacity: 0.95; letter-spacing: .3px; }

/* animated tapping finger on the CTA */
.cta-wrap { position: relative; }
.tap-hand {
  position: absolute;
  right: 16px; bottom: 11px;
  width: 30px; height: 30px;
  pointer-events: none;
  transform-origin: 60% 0%;
  animation: tap 1.5s ease-in-out infinite;
}
.tap-hand svg { display: block; fill: #fff; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.28)); }
@keyframes tap {
  0%, 38%, 72%, 100% { transform: translateY(0) rotate(-6deg); }
  55% { transform: translateY(6px) rotate(-6deg); }
}
.ripple {
  position: absolute;
  left: 56%; top: 64%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transform: scale(0);
  animation: ripple 1.5s ease-out infinite;
}
@keyframes ripple {
  0%, 48% { transform: scale(0); opacity: 0.75; }
  100% { transform: scale(3.4); opacity: 0; }
}

.reassure {
  margin-top: 16px;
  font-weight: 500;
  font-size: 14px;
  color: var(--pink);
}

.footer {
  margin-top: 22px;
  font-size: 11px;
  font-weight: 400;
  color: #cfcfcf;
}

/* ---------- Chat bubble ---------- */
.chat-bubble {
  position: fixed;
  bottom: 16px;
  right: 16px;
  transform: translateY(120px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 20px;
  padding: 10px 14px 10px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  cursor: pointer;
  z-index: 100;
  max-width: 300px;
  width: auto;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.chat-bubble.show { transform: translateY(0); }

.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f5c0cb;
}
.chat-content { flex: 1; min-width: 0; }
.chat-name {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 3px;
}
.chat-msg {
  font-size: 13px;
  font-weight: 400;
  color: #555;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 20px;
}
.typing-dot {
  width: 7px; height: 7px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); background: #ccc; }
  30% { transform: translateY(-5px); background: var(--pink); }
}
.chat-overlay {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: calc(100vw - 32px);
  max-width: 320px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.chat-overlay.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-overlay-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.chat-overlay-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f5c0cb;
}
.chat-overlay-name { font-size: 14px; font-weight: 700; color: #111; }
.chat-overlay-status { font-size: 11px; color: #5fbf6a; font-weight: 500; }
.chat-overlay-close {
  margin-left: auto;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
}
.chat-overlay-body { padding: 16px; }
.chat-overlay-msg {
  background: #f0f0f0;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #222;
  display: inline-block;
  max-width: 85%;
  line-height: 1.45;
}
.chat-overlay-reply {
  padding: 12px 16px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-overlay-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 10px 16px;
  color: #aaa;
  font-size: 13px;
}
.chat-overlay-lock { font-size: 14px; }
.chat-overlay-hint { font-size: 12.5px; color: #bbb; }
.chat-overlay-cta {
  background: linear-gradient(135deg, #29a9e6, var(--blue));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 14px rgba(28,158,223,0.4);
}

.chat-arrow {
  position: fixed;
  bottom: 102px;
  right: 28px;
  font-size: 22px;
  animation: tapBounce 0.8s ease-in-out infinite;
  z-index: 101;
  pointer-events: none;
}

.chat-tap-arrow {
  display: inline-block;
  animation: tapBounce 0.8s ease-in-out infinite;
  font-size: 13px;
}
@keyframes tapBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chat-close {
  background: none;
  border: none;
  font-size: 13px;
  color: #bbb;
  cursor: pointer;
  padding: 0 0 0 6px;
  flex-shrink: 0;
  line-height: 1;
}
.chat-close:hover { color: #888; }

@media (prefers-reduced-motion: reduce) {
  .card, .cta, .dot, .shine, .tap-hand, .ripple { animation: none; }
}
