:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #38bdf8;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-faint: #94a3b8;
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 24px -4px rgba(2, 132, 199, 0.22);
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  line-height: 1.5;
  position: relative;
  background-image: 
    radial-gradient(at 15% 15%, rgba(56, 189, 248, 0.05) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(2, 132, 199, 0.04) 0px, transparent 50%);
}
@media (min-width: 768px) {
  body {
    padding-bottom: 40px;
  }
}
.chat-main {
  max-width: 760px;
  margin: 28px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 640px) {
  .chat-main {
    padding: 0 16px;
    margin: 16px auto;
    gap: 16px;
  }
}
@media (max-width: 360px) {
  .chat-main {
    padding: 0 10px;
    margin: 12px auto;
    gap: 12px;
  }
  .chat-header-card {
    padding: 16px 14px;
  }
  .chat-main-title {
    font-size: 21px;
  }
  .btn-new-chat {
    width: 100%;
    justify-content: center;
  }
}
.chat-header-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid rgba(186, 230, 253, 0.75);
  border-radius: var(--radius-xl);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.chat-header-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.chat-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chat-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
}
.chat-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: #0369a1;
}
.live-dot {
  font-size: 7px;
  color: #10b981;
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.chat-main-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 25px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
  margin: 0;
}
.chat-main-desc {
  color: var(--text-subtle);
  font-size: 13.5px;
  font-weight: 500;
  max-width: 480px;
  line-height: 1.45;
  margin: 0;
}
.btn-new-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--primary-gradient);
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-new-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.38);
}
.chat-controls-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 50px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  position: relative;
}
.search-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), var(--shadow-sm);
}
.search-box i {
  color: #94a3b8;
  font-size: 16px;
  transition: color 0.2s;
}
.search-box:focus-within i {
  color: var(--primary);
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}
.search-box input::placeholder {
  color: #94a3b8;
}
.clear-search-btn {
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #64748b;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.clear-search-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}
.filter-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.filter-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-main);
}
.filter-pill.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.filter-count-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-muted);
}
.filter-pill.active .filter-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.badge-unread {
  background: #fee2e2;
  color: #dc2626;
}
.filter-pill.active .badge-unread {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.badge-online {
  background: #ecfdf5;
  color: #059669;
}
.filter-pill.active .badge-online {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.conversation-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.section-heading-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #f0f9ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 14px;
}
.section-heading h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin: 0;
}
.result-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.conversation-item-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.conversation-item-wrap:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.conversation-item-wrap.is-unread {
  border: 1.5px solid #38bdf8 !important;
  border-left: 4px solid var(--primary) !important;
  background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%) !important;
  box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.15) !important;
}
.conversation {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.online-dot.is-online {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.online-dot.is-offline {
  background: #94a3b8;
  opacity: 0.6;
}
.conversation-info {
  flex: 1;
  min-width: 0;
}
.conversation-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.conversation-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-main);
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-item-wrap.is-unread .conversation-name {
  font-weight: 800;
  color: #0c4a6e;
}
.conversation-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
}
.conversation-message {
  margin: 3px 0 0;
  color: var(--text-subtle);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}
.conversation-item-wrap.is-unread .conversation-message {
  color: #0369a1;
  font-weight: 600;
}
.conversation-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.conversation-time {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.conversation-item-wrap.is-unread .conversation-time {
  color: var(--primary);
  font-weight: 700;
}
.conversation-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.conversation-actions-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 12px;
  flex-shrink: 0;
}
.quick-action-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.18s ease;
}
.quick-action-icon-btn.call-btn:hover {
  background: #e0f2fe;
  color: var(--primary);
}
.quick-action-icon-btn.delete-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}
.chat-loading-state {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-subtle);
  font-size: 14px;
  font-weight: 500;
}
.chat-loading-state i {
  color: var(--primary);
  font-size: 18px;
  margin-right: 8px;
}
.empty-state {
  padding: 36px 20px;
  color: var(--text-subtle);
  text-align: center;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}
.empty-conversations-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 4px;
}
.empty-conversations-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.empty-conversations-card p {
  font-size: 13px;
  color: var(--text-subtle);
  max-width: 320px;
  margin: 0;
}
.btn-find-friends {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #ffffff !important;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}
.btn-find-friends:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}
.empty-search-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
}
.empty-search-card i {
  font-size: 24px;
  color: #94a3b8;
}
.empty-search-card p {
  font-size: 13.5px;
  color: var(--text-subtle);
  margin: 0;
}
.btn-reset-search {
  margin-top: 6px;
  padding: 6px 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-reset-search:hover {
  background: #e0f2fe;
}
.delete-chat-modal-backdrop {
  position: fixed;
  z-index: 250;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: deleteBackdropFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.delete-chat-modal-backdrop[hidden] {
  display: none !important;
}
@keyframes deleteBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.delete-chat-modal {
  position: relative;
  width: min(100%, 410px);
  padding: 32px 26px 26px;
  border-radius: 28px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(254, 202, 202, 0.6);
  box-shadow: 0 25px 60px -12px rgba(239, 68, 68, 0.25), 0 12px 32px rgba(15, 23, 42, 0.15);
  animation: deleteModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes deleteModalZoom {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.delete-chat-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #94a3b8;
  background: #f1f5f9;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: all 0.2s ease;
}
.delete-chat-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}
.delete-chat-icon-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}
.delete-chat-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  animation: deletePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  z-index: 0;
}
@keyframes deletePulse {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
}
.delete-chat-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fecaca;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.2);
}
.delete-chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.delete-chat-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}
.delete-chat-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: left;
  margin-bottom: 16px;
}
.delete-chat-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}
.delete-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.delete-chat-contact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.delete-chat-contact-info strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.delete-chat-contact-info span {
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.delete-chat-warning {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.delete-chat-warning strong {
  color: #dc2626;
  font-weight: 700;
}
.delete-chat-actions {
  display: flex;
  gap: 12px;
}
.delete-chat-btn {
  flex: 1;
  padding: 13px 18px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.delete-chat-btn.btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.delete-chat-btn.btn-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.delete-chat-btn.btn-confirm-delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.delete-chat-btn.btn-confirm-delete:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
  transform: translateY(-1px);
}
.delete-chat-btn.btn-confirm-delete:active {
  transform: translateY(0);
}
@media (max-width: 420px) {
  .delete-chat-modal {
    padding: 26px 18px 20px;
  }
  .delete-chat-actions {
    flex-direction: column-reverse;
  }
}
.incoming-call-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.incoming-call-backdrop[hidden] {
  display: none !important;
}
.incoming-call-card {
  position: relative;
  width: min(100%, 380px);
  padding: 36px 24px 28px;
  border-radius: 28px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 25px 60px -12px rgba(2, 132, 199, 0.3), 0 12px 32px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: deleteModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.incoming-call-avatar-pulse {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
}
.incoming-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #0284c7;
  animation: incomingRipple 2s infinite cubic-bezier(0, 0.2, 0.8, 1);
}
.incoming-ripple.r2 {
  animation-delay: 0.6s;
}
@keyframes incomingRipple {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.incoming-call-avatar {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: 3px solid #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
}
.incoming-call-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.incoming-call-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.incoming-caller-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}
.incoming-call-subtitle {
  color: var(--text-subtle);
  font-size: 13.5px;
  margin: 0 0 24px;
}
.incoming-call-actions {
  display: flex;
  gap: 16px;
  width: 100%;
}
.incoming-action-btn {
  flex: 1;
  padding: 13px 18px;
  border: 0;
  border-radius: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.incoming-action-btn.decline {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.incoming-action-btn.decline:hover {
  background: #fecaca;
  color: #b91c1c;
  transform: translateY(-2px);
}
.incoming-action-btn.accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.incoming-action-btn.accept:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}
@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
