/* Anti-inspect */
body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;}
input,textarea{-webkit-user-select:text;-moz-user-select:text;user-select:text;}
* { margin: 0; padding: 0; box-sizing: border-box; }


* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

/* LANDING */
#app-landing { display: flex; overflow-y: auto; min-height: 100vh; }

.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease;
  text-align: center;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px var(--accent-40));
}
.hero-logo .ghost-icon {
  display: inline-block;
  width: 0.85em; height: 1.02em;
  vertical-align: -0.18em;
  margin-right: 0.25em;
  background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240'%3E%3Cpath fill-rule='evenodd' d='M100 10C50 10 20 55 20 100L20 185C20 185 20 210 42 210C55 210 55 185 67 185C79 185 79 210 100 210C121 210 121 185 133 185C145 185 145 210 158 210C180 210 180 185 180 185L180 100C180 55 150 10 100 10Z M74 76A14 19 0 0 0 74 114A14 19 0 0 0 74 76Z M126 76A14 19 0 0 0 126 114A14 19 0 0 0 126 76Z' fill='white'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240'%3E%3Cpath fill-rule='evenodd' d='M100 10C50 10 20 55 20 100L20 185C20 185 20 210 42 210C55 210 55 185 67 185C79 185 79 210 100 210C121 210 121 185 133 185C145 185 145 210 158 210C180 210 180 185 180 185L180 100C180 55 150 10 100 10Z M74 76A14 19 0 0 0 74 114A14 19 0 0 0 74 76Z M126 76A14 19 0 0 0 126 114A14 19 0 0 0 126 76Z' fill='white'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px; padding: 0.45rem 1rem;
  font-size: 0.82rem; color: var(--text);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 16%, transparent);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.1; margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary); max-width: 420px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-start {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.5rem; border-radius: 100px;
  font-size: 1.05rem; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
  background: var(--gradient); color: var(--btn-text, white);
  box-shadow: 0 0 40px var(--accent-25);
  animation: fadeInUp 0.6s ease 0.4s both, btn-pulse 2.8s ease-in-out 1s infinite;
}
@keyframes btn-pulse {
  0%   { box-shadow: 0 0 30px var(--accent-25), 0 0 0px 0px var(--accent-25); transform: scale(1); }
  50%  { box-shadow: 0 0 55px var(--accent-40), 0 0 30px 10px var(--accent-20); transform: scale(1.09); }
  100% { box-shadow: 0 0 30px var(--accent-25), 0 0 0px 0px var(--accent-25); transform: scale(1); }
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 0 60px var(--accent-40), 0 0 36px 12px var(--accent-20); }
.btn-start:active { transform: scale(0.98); }
.btn-start svg { width: 18px; height: 18px; }

.hero-meta {
  display: flex; gap: 2rem; margin-top: 3rem;
  animation: fadeInUp 0.6s ease 0.5s both;
}
.hero-meta-item {
  font-size: 0.75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.4rem;
}

/* CONNECTING */
#app-connecting {
  display: none; min-height: 100vh; min-height: 100dvh;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  background: var(--bg);
}

.conn-spinner {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--surface3); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  margin-bottom: 2rem;
}

.conn-text { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.conn-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.conn-city { color: var(--accent); font-size: 0.95rem; }
.conn-interest { color: var(--text-secondary); font-size: 0.8rem; margin-top: 0.5rem; }
.conn-steps {
  margin-top: 2rem; text-align: left; max-width: 260px;
}
.conn-step {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: var(--text-muted);
  padding: 0.4rem 0; transition: all 0.4s;
}
.conn-step.active { color: var(--accent); }
.conn-step.done { color: var(--green); }
.conn-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  transition: all 0.4s;
}
.conn-step.active .conn-step-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.conn-step.done .conn-step-dot { background: var(--green); }

.conn-facts {
  margin-top: 2.5rem; color: var(--text-muted); font-size: 0.8rem;
  max-width: 280px; line-height: 1.6;
}

/* CHAT */
#app-chat {
  display: none;
  background: var(--bg);
  position: fixed; inset: 0;
  height: 100%; height: 100dvh;
  flex-direction: column;
}
#app-chat.visible { display: flex; }
#chatHeaderFixed {
  flex-shrink: 0;
  z-index: 30;
}
#chatBody {
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 0px;
}

.chat-header {
  padding: 0.875rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0;
}

.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-subtle); border: 1px solid var(--accent-20);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.chat-info { flex: 1; }
.chat-name { font-weight: 600; font-size: 0.95rem; }

.chat-status-line {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--green);
}
.chat-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite;
}
#chatStatusText { transition: all 0.3s; }

.chat-header-actions {
  display: flex; align-items: center; gap: 0.25rem;
}

.header-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-size: 1rem;
}
.header-btn:hover { background: var(--surface2); color: var(--text); }
.header-btn svg { width: 18px; height: 18px; }
.header-btn.text-btn {
  width: auto; border-radius: 100px;
  padding: 0.35rem 0.75rem; font-size: 0.75rem;
  font-family: inherit; font-weight: 500;
}
.header-btn.report-btn { color: var(--red); opacity: 0.7; }
.header-btn.report-btn:hover { background: rgba(239,68,68,0.1); color: var(--red); opacity: 1; }

.chat-online-badge {
  font-size: 0.65rem; color: var(--text-muted);
  background: var(--surface2); border: 1px solid var(--border);
  padding: 0.2rem 0.5rem; border-radius: 100px;
  margin-right: 0.25rem;
}

.messages {
  flex: 1; overflow-y: auto; padding: 0.25rem 1rem 1.25rem 1rem; margin-top: 6px;
  display: flex; flex-direction: column; gap: 0.5rem;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.system-msg {
  text-align: center; font-size: 0.75rem; color: var(--text-muted);
  padding: 0.5rem; animation: fadeIn 0.3s ease;
}

.msg-group { display: flex; flex-direction: column; gap: 0.25rem; }
.msg-group.them { align-items: flex-start; }
.msg-group.me { align-items: flex-end; }

.msg {
  max-width: 75%; padding: 0.65rem 1rem;
  font-size: 0.9rem; line-height: 1.5;
  animation: msgIn 0.3s ease;
}

.msg.them {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 1.1rem 1.1rem 1.1rem 0.25rem;
  color: var(--text);
}

.msg.me {
  background: var(--gradient); color: var(--btn-text, white);
  border-radius: 1.1rem 1.1rem 0.25rem 1.1rem;
}

.msg-time {
  font-size: 0.65rem; color: var(--text-muted);
  padding: 0 0.5rem; margin-top: 0.15rem;
}

  font-size: 0.6rem; color: var(--accent); padding: 0 0.5rem;
}

.typing-indicator {
  align-self: flex-start;
  padding: 0.75rem 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 1.1rem 1.1rem 1.1rem 0.25rem;
  display: none;
}
.typing-indicator span {
  display: inline-block; width: 7px; height: 7px;
  background: var(--text-muted); border-radius: 50%;
  margin: 0 1.5px; animation: typingDot 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.typing-label {
  font-size: 0.7rem; color: var(--text-muted);
  padding: 0.15rem 0.5rem; display: none;
  animation: fadeIn 0.2s ease;
}

.input-area {
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; gap: 0.5rem; align-items: center;
  flex-shrink: 0;
}

.input-area input {
  flex: 1; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 0.75rem 1.25rem; color: var(--text);
  font-size: 0.9rem; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.input-area input:focus { border-color: var(--accent); }
.input-area input::placeholder { color: var(--text-muted); }

.send-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); border: none; color: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.send-btn:hover { transform: scale(1.05); }
.send-btn:active { transform: scale(0.95); }
.send-btn svg { width: 18px; height: 18px; }

/* USER REVEAL BUTTON */
.user-reveal-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 500; font-family: inherit;
  background: var(--gradient); border: none;
  color: white; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.user-reveal-btn:hover { transform: scale(1.03); box-shadow: 0 0 20px var(--accent-25); }
.user-reveal-btn:active { transform: scale(0.97); }
.user-reveal-btn.revealed { background: var(--green); pointer-events: none; opacity: 0.8; }
.user-reveal-btn svg { width: 14px; height: 14px; }

/* USER REVEAL MODAL */
.reveal-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  z-index: 150; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.reveal-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2rem 1.75rem; max-width: 360px; width: 100%;
  animation: slideUp 0.3s ease;
}
.reveal-form h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.reveal-form .sub { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 1.25rem; }
.reveal-form .platform-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.reveal-form .platform-tab {
  flex: 1; padding: 0.85rem 1rem; border-radius: 14px;
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
  font-family: inherit; cursor: pointer; text-align: center;
  transition: all 0.2s;
}
.reveal-form .platform-tab.active { border-color: var(--text-muted); color: var(--text); background: var(--surface3); }
.reveal-form .platform-tab:hover { border-color: var(--text-muted); }
.reveal-form input[type="text"] {
  width: 100%; padding: 0.7rem 1rem; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.9rem; font-family: inherit;
  outline: none; margin-bottom: 1rem; transition: border-color 0.2s;
}
.reveal-form input[type="text"]:focus { border-color: var(--accent); }
.reveal-form input[type="text"]::placeholder { color: var(--text-muted); }
.reveal-form .submit-reveal {
  width: 100%; padding: 1rem; border-radius: 14px;
  font-size: 1.05rem; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; background: var(--accent); color: white;
  transition: all 0.2s;
}
.reveal-form .submit-reveal:hover { transform: scale(1.02); }
.reveal-form .submit-reveal:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.reveal-form .cancel-reveal {
  width: 100%; padding: 0.5rem; margin-top: 0.5rem;
  background: transparent; border: none; color: var(--text-muted);
  font-size: 0.8rem; font-family: inherit; cursor: pointer;
}

/* TOAST */
.toast {
  position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.6rem 1.25rem;
  font-size: 0.8rem; color: var(--text-secondary);
  z-index: 200; animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
  white-space: nowrap;
}

/* DISCONNECTED BANNER */
.disconnect-banner {
  display: none; text-align: center; padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}
.disconnect-banner p {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem;
}
.disconnect-banner .red { color: var(--red); }
.btn-new-chat {
  padding: 0.7rem 1.5rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; transition: all 0.3s;
  background: var(--gradient); color: var(--btn-text, white);
}
.btn-new-chat:hover { transform: scale(1.02); }

/* REPORT MODAL */
.report-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  z-index: 150; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.report-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.5rem; max-width: 320px; width: 100%;
  animation: slideUp 0.3s ease;
}
.report-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.report-option {
  display: block; width: 100%; padding: 0.7rem 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 0.5rem;
  color: var(--text); font-size: 0.85rem; font-family: inherit;
  cursor: pointer; text-align: left; transition: all 0.2s;
}
.report-option:hover { border-color: var(--accent); background: var(--surface3); }
.report-cancel {
  width: 100%; padding: 0.6rem; margin-top: 0.25rem;
  background: transparent; border: none; color: var(--text-muted);
  font-size: 0.85rem; font-family: inherit; cursor: pointer;
}

/* OVERLAYS */
.overlay {
  display: none; position: fixed; inset: 0;
  background: color-mix(in srgb, var(--bg) 35%, #000); backdrop-filter: blur(10px);
  z-index: 100; align-items: center; justify-content: center;
  padding: 1.5rem; animation: fadeIn 0.3s ease;
}

.overlay-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2.5rem 2rem;
  text-align: center; max-width: 360px; width: 100%;
  animation: slideUp 0.4s ease;
  box-shadow: 0 0 60px var(--accent-40);
}

.reveal-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient-subtle); border: 1px solid var(--accent-40);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin: 0 auto 1.25rem;
  overflow: hidden;
}
.reveal-icon img { width: 80%; height: 80%; object-fit: contain; }

.overlay-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.overlay-card .sub { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.75rem; }

.overlay-btn {
  width: 100%; padding: 0.9rem; border-radius: 100px;
  font-size: 1rem; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; transition: all 0.3s;
  background: var(--gradient); color: var(--btn-text, white);
  box-shadow: 0 0 30px var(--accent-40);
}
.overlay-btn:hover { transform: scale(1.03); box-shadow: 0 0 40px var(--accent-40); }

.profile-card-inner {
  position: relative;
  overflow: hidden;
}
.profile-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent, var(--accent), transparent);
  animation: profileGlow 4s linear infinite;
  opacity: 0.08;
  pointer-events: none;
}
@keyframes profileGlow {
  to { transform: rotate(360deg); }
}

.profile-avatar-ring {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--gradient);
  padding: 3px;
  margin: 0 auto 1.2rem;
  animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-30); }
  50% { box-shadow: 0 0 0 8px var(--accent-08); }
}
.profile-avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.profile-avatar-inner img {
  width: 80%; height: 80%; object-fit: contain;
}

.profile-photo { display: none; }

.profile-name {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 0.15rem;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-handle { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.3rem; font-weight: 500; }
.profile-bio { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1.5rem; }
.profile-verified {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--text-muted); font-size: 0.8rem; margin-bottom: 1.5rem;
}
.profile-verified svg { width: 14px; height: 14px; color: var(--accent); }

.follow-btn {
  position: relative; z-index: 2;
  width: 100%; padding: 1rem; border-radius: 100px;
  font-size: 1.05rem; font-weight: 700; font-family: inherit;
  border: none; cursor: pointer; color: white;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  text-decoration: none; transition: all 0.3s;
  letter-spacing: 0.02em;
}
.follow-btn.snapchat { background: var(--gradient); color: #fff; box-shadow: 0 0 30px var(--accent-40); }
.follow-btn.snapchat:hover { box-shadow: 0 0 40px var(--accent-40); transform: scale(1.03); }
.follow-btn.instagram { background: var(--gradient); color: #fff; box-shadow: 0 0 30px var(--accent-40); }
.follow-btn.instagram:hover { box-shadow: 0 0 40px var(--accent-40); transform: scale(1.03); }
.follow-btn svg { width: 20px; height: 20px; }
.profile-hint { color: var(--text-muted); font-size: 0.75rem; margin-top: 1rem; opacity: 0.7; }

.gender-btn {
  flex: 1; padding: 1.25rem 1rem; border-radius: var(--radius);
  background: var(--surface2); border: 2px solid var(--border);
  color: var(--text); font-size: 1rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.gender-btn:hover { border-color: var(--accent); background: var(--surface3); }
.gender-btn:active { transform: scale(0.97); }
.gender-icon { font-size: 2rem; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: translateY(0) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }
@keyframes typingDot { 0%,60%,100% { transform: translateY(0) } 30% { transform: translateY(-5px) } }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px) } to { opacity: 1; transform: translateX(-50%) translateY(0) } }
@keyframes toastOut { from { opacity: 1 } to { opacity: 0 } }

/* VOICE MESSAGES */
.mic-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.mic-btn svg { width: 20px; height: 20px; }
.mic-btn:hover { color: var(--text); }
.mic-btn.recording { color: var(--red); animation: mic-pulse 1.5s ease-in-out infinite; }
@keyframes mic-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.recording-indicator {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  background: rgba(239,68,68,0.15); color: var(--red); font-size: 0.75rem;
  padding: 2px 10px; border-radius: 12px; white-space: nowrap;
  backdrop-filter: blur(8px); border: 1px solid rgba(239,68,68,0.2);
}

.voice-bubble {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; min-width: 150px;
}
.voice-bubble .play-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; color: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s;
}
.voice-bubble .play-btn:hover { background: rgba(255,255,255,0.25); }
.voice-bubble .play-btn svg { width: 14px; height: 14px; }
.voice-bubble .audio-progress-wrap {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.voice-bubble .audio-progress {
  width: 100%; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15); overflow: hidden;
}
.voice-bubble .audio-progress-bar {
  height: 100%; width: 0%; background: rgba(255,255,255,0.6);
  border-radius: 2px; transition: width 0.1s linear;
}
.voice-bubble .audio-duration {
  font-size: 0.7rem; color: rgba(255,255,255,0.6);
}

.msg:has(.voice-bubble) {
  max-width: 220px; padding: 6px 10px;
}
