/* styles/social.css */

/* Chat page: constrain to viewport so mic stays visible */
.app {
  height: 100dvh;
  overflow: hidden;
}

/* ── Auth Screen ─────────────────────────────────────────────────────────── */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, calc(env(safe-area-inset-top, 0px) + 16px)) 16px 24px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.auth-screen::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(56,189,248,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(129,140,248,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px;
}

.auth-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.auth-logo span { color: var(--accent2); }

.auth-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus {
  border-color: rgba(56,189,248,0.4);
}
.field select {
  appearance: none;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(56,189,248,0.25), rgba(129,140,248,0.25));
  border: 1px solid rgba(56,189,248,0.4);
  border-radius: 12px;
  padding: 14px;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  letter-spacing: 0.03em;
}
.primary-btn:active { transform: scale(0.98); }
.primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ghost-btn {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}
.ghost-btn:active { color: var(--text); }

.auth-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 14px;
  line-height: 1.5;
}

.sent-icon { font-size: 2.5rem; margin-bottom: 12px; }
.sent-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent3);
  margin-bottom: 10px;
}
.sent-msg { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; }

/* ── Header actions ───────────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  gap: 6px;
}

/* ── Section labels ───────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 12px 0 8px;
}

/* ── Search bar ───────────────────────────────────────────────────────────── */
.search-bar {
  margin-bottom: 8px;
}
.search-bar input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: rgba(56,189,248,0.4); }

/* ── Contact cards ────────────────────────────────────────────────────────── */
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.contact-card:active { border-color: rgba(56,189,248,0.3); }

.contact-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(129,140,248,0.2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info { flex: 1; min-width: 0; }
.contact-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-lang { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.contact-arrow { color: var(--muted); font-size: 1.2rem; }

.unread-badge {
  background: var(--accent);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  border-radius: 10px;
  padding: 2px 8px;
  min-width: 20px;
  text-align: center;
}

.request-actions { display: flex; gap: 6px; }
.accept-btn {
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--accent3);
  cursor: pointer;
  font-size: 0.9rem;
}
.decline-btn {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.9rem;
}

.add-btn {
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Space Mono', monospace;
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 32px 16px;
  line-height: 1.6;
}

.loading {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px;
}

.muted { color: var(--muted); }

/* ── Chat page ────────────────────────────────────────────────────────────── */
.back-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-info { flex: 1; text-align: center; }
.chat-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.chat-langs { font-size: 0.7rem; color: var(--muted); }

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.message { display: flex; flex-direction: column; max-width: 82%; }
.message-mine { align-self: flex-end; align-items: flex-end; }
.message-theirs { align-self: flex-start; align-items: flex-start; }

.message-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px 8px;
  position: relative;
  min-width: 120px;
}
.message-mine .message-bubble {
  background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(129,140,248,0.12));
  border-color: rgba(56,189,248,0.25);
  border-radius: 18px 18px 4px 18px;
}

.message-original {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
  word-break: break-word;
}
.message-translation {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 8px;
  word-break: break-word;
}
.message-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.message-time {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Chat input bar ───────────────────────────────────────────────────────── */
.chat-input-bar {
  border-top: 1px solid var(--border);
  padding: 10px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--bg);
}

.chat-status {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.chat-transcript {
  font-size: 0.85rem;
  color: var(--text);
  text-align: center;
  min-height: 20px;
  max-width: 280px;
  line-height: 1.4;
}

.chat-controls { display: flex; justify-content: center; }

.chat-mic-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0f2040, #0a1628);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
  transition: all 0.2s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.chat-mic-btn.recording {
  border-color: rgba(248,113,113,0.5);
  box-shadow: 0 0 28px rgba(248,113,113,0.25);
}
.chat-mic-btn.processing {
  border-color: rgba(56,189,248,0.5);
  animation: processingPulse 1.5s ease-in-out infinite;
}
.chat-mic-btn:active { transform: scale(0.94); }

/* ── New message badge ───────────────────────────────────────────────────── */
.new-msg-badge {
  background: var(--accent);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 8px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Auth steps indicator ─────────────────────────────────────────────────── */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}
.auth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  transition: all 0.3s;
}
.auth-step.active .step-num {
  background: rgba(56,189,248,0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.auth-step.done .step-num {
  background: rgba(52,211,153,0.15);
  border-color: var(--accent3);
  color: var(--accent3);
}
.step-label {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}
.auth-step.active .step-label { color: var(--accent); }
.auth-step.done .step-label { color: var(--accent3); }

.auth-step-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}
.auth-step-line.active { background: var(--accent3); }

/* Countdown */
.countdown-wrap {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 16px;
}
#countdown {
  font-family: 'Space Mono', monospace;
  color: var(--accent);
  font-weight: 700;
}

/* ── Profile avatar ───────────────────────────────────────────────────────── */
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(129,140,248,0.2));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  margin: 0 auto 20px;
}

/* ── Danger button ────────────────────────────────────────────────────────── */
.danger-btn {
  width: 100%;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 12px;
  padding: 12px;
  color: var(--danger);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.danger-btn:active { transform: scale(0.98); background: rgba(248,113,113,0.2); }

.danger-icon { color: var(--danger) !important; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.modal-icon { font-size: 2.5rem; margin-bottom: 12px; }
.modal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}
.modal-body {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Message delete button ────────────────────────────────────────────────── */
.message-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Big tappable play button — can't miss it */
.message-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(56,189,248,0.15);
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 20px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  padding: 5px 12px;
  min-height: 32px;
  transition: background 0.2s;
}
.message-play:active { background: rgba(56,189,248,0.3); }

/* Delete button — smaller, tucked to the right, harder to hit by accident */
.message-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 4px 6px;
  min-height: 32px;
  min-width: 32px;
  opacity: 0.4;
  transition: opacity 0.2s;
  border-radius: 8px;
}
.message-delete:active { opacity: 1; color: var(--danger); background: rgba(248,113,113,0.1); }

/* ── New message badge ────────────────────────────────────────────────────── */
.new-msg-badge {
  background: var(--accent);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 8px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ── Avatars ──────────────────────────────────────────────────────────────── */
.contact-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chat-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* Avatar preview on profile page */
.avatar-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  gap: 8px;
}
.avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface2);
  transition: all 0.3s;
}
.avatar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-preview-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
}
.avatar-preview-hint {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* Fallback div when multiavatar not loaded */
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(129,140,248,0.2));
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--accent);
}

/* Chat header with avatar */
.chat-header-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

/* ── Push notification banner ─────────────────────────────────────────────── */
.push-banner {
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(129,140,248,0.12));
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.4;
}
.push-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.push-banner-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.push-banner-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* VoiceLink — Call screen styles                                              */
/* ─────────────────────────────────────────────────────────────────────────── */

/* Full-screen call container */
.call-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: max(60px, calc(40px + env(safe-area-inset-top, 0px))) 24px
           max(48px, calc(24px + env(safe-area-inset-bottom, 0px)));
  background: var(--bg);
  z-index: 10;
  gap: 16px;
}

/* Status label at top */
.call-status-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 8px;
}
.connected-label { color: var(--accent3); }

/* Avatar + pulsing rings */
.call-avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.call-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--border);
  position: relative;
  z-index: 2;
  object-fit: cover;
}
.call-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.3);
  animation: callRingPulse 2s ease-out infinite;
}
.call-avatar-ring.ring2 { animation-delay: 0.65s; }
.call-avatar-ring.ring3 { animation-delay: 1.3s;  }
@keyframes callRingPulse {
  0%   { transform: scale(0.75); opacity: 0.8; }
  100% { transform: scale(1.2);  opacity: 0;   }
}
/* No rings during active call */
.active-call .call-avatar-ring { display: none; }

/* Name */
.call-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  text-align: center;
}

/* Substatus / small hint line */
.call-substatus {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* Duration timer */
.call-timer {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent3);
  letter-spacing: 0.08em;
}

/* Row of control buttons */
.call-controls-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-top: 16px;
}

/* Individual control button */
.call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 76px;
  height: 76px;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.5rem;
  padding: 0;
}
.call-btn:active { transform: scale(0.92); }
.call-btn.active {
  background: var(--surface2);
  border-color: rgba(56, 189, 248, 0.4);
}

.call-btn-label {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  position: absolute;
  bottom: -20px;
  white-space: nowrap;
}

/* Override: make the outer div relative so label positions correctly */
.call-controls-row .call-btn {
  position: relative;
  margin-bottom: 24px;
}

/* End call button — red */
.end-btn {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
}
.end-btn:active { background: rgba(248, 113, 113, 0.3); }

/* Answer button — green */
.answer-btn {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
}
.answer-btn:active { background: rgba(52, 211, 153, 0.3); }

/* Decline button (incoming) — red, same as end */
.decline-btn {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
}

/* Call ended screen */
.ended-screen {
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.call-ended-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
}
.call-ended-reason {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.call-ended-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-top: 24px;
}
.call-ended-btn {
  width: 100%;
  border-radius: 14px;
  padding: 14px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.call-ended-btn.primary {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(129, 140, 248, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
}
.call-ended-btn.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.call-ended-btn:active { transform: scale(0.97); }

/* Contact card call button */
.contact-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.call-contact-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--accent3);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.call-contact-btn:active {
  transform: scale(0.92);
  background: rgba(52, 211, 153, 0.25);
}

/* Incoming call banner (shows inside app if already open) */
.incoming-call-banner {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.incoming-call-banner-info { flex: 1; }
.incoming-call-banner-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.incoming-call-banner-sub {
  font-size: 0.75rem;
  color: var(--accent3);
}
.incoming-call-banner-actions {
  display: flex;
  gap: 8px;
}
.banner-answer-btn {
  background: rgba(52, 211, 153, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--accent3);
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}
.banner-decline-btn {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--danger);
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}

.call-avatar-fallback {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(129,140,248,0.2));
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--accent);
}

/* ── Auth waiting dots ────────────────────────────────────────────────────── */
.auth-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 8px;
  gap: 4px;
}

.auth-waiting-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: waitingPulse 1.4s ease-in-out infinite;
}

.auth-waiting-dot:nth-child(2) { animation-delay: 0.2s; }
.auth-waiting-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes waitingPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1.0); opacity: 1.0; }
}

