/* Fullscreen Incoming Call View (Strictly matching grok_image_1787391415499.jpg) */
#fullscreenIncomingCallView {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 100000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 44px 24px 48px;
  box-sizing: border-box;
  animation: callFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.incoming-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.incoming-brand-name {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

.incoming-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.incoming-pulse-stage {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
}

.ring-outer {
  width: 276px;
  height: 276px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: ripplePulse 2.8s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ring-middle {
  width: 218px;
  height: 218px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: ripplePulse 2.8s infinite 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ring-inner {
  width: 172px;
  height: 172px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  animation: ripplePulse 2.8s infinite 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes ripplePulse {
  0% {
    transform: scale(0.96);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
  100% {
    transform: scale(0.96);
    opacity: 0.5;
  }
}

.incoming-avatar-frame {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9);
  background: #1C1C1E;
  display: flex;
  align-items: center;
  justify-content: center;
}

.incoming-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15) brightness(0.95);
}

.incoming-name {
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 6px 0;
}

.incoming-peer-id {
  color: #8E8E93;
  font-size: 14.5px;
  letter-spacing: 0.4px;
  margin: 0 0 24px 0;
  font-weight: 400;
}

.incoming-status-label {
  color: #D1D1D6;
  font-size: 15.5px;
  font-weight: 400;
  margin-bottom: 12px;
}

.incoming-waveform-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  height: 24px;
  margin-bottom: 8px;
}

.waveform-bar {
  width: 2.5px;
  background: #FFFFFF;
  border-radius: 2px;
  animation: waveBounce 1.2s ease-in-out infinite alternate;
}

.waveform-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.waveform-bar:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.waveform-bar:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.waveform-bar:nth-child(4) { height: 24px; animation-delay: 0.4s; }
.waveform-bar:nth-child(5) { height: 14px; animation-delay: 0.25s; }
.waveform-bar:nth-child(6) { height: 22px; animation-delay: 0.35s; }
.waveform-bar:nth-child(7) { height: 16px; animation-delay: 0.15s; }
.waveform-bar:nth-child(8) { height: 10px; animation-delay: 0.45s; }
.waveform-bar:nth-child(9) { height: 5px; animation-delay: 0.1s; }

@keyframes waveBounce {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1.1); opacity: 1; }
}

.incoming-call-type {
  color: #8E8E93;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Incoming Action Buttons */
.incoming-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 280px;
  margin-bottom: 20px;
}

.incoming-btn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.incoming-action-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.incoming-action-btn:active {
  transform: scale(0.92);
}

.btn-decline-call {
  background: #1C1C1E;
  color: #FFFFFF;
  border: 1px solid #2C2C2E;
}

.btn-accept-call {
  background: #FFFFFF;
  color: #000000;
}

.incoming-btn-text {
  color: #EBEBF5;
  font-size: 14px;
  font-weight: 500;
}
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 99999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 48px 24px 44px;
  box-sizing: border-box;
  animation: callFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes callFadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.call-screen-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.call-screen-logo {
  display: block;
}

.call-screen-brand {
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.call-screen-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -30px;
}

.call-avatar-outer {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  padding: 3px;
  background: #1C1C1E;
  border: 1.5px solid #2C2C2E;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.call-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #242426;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}

.call-contact-name {
  color: #FFFFFF;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.call-contact-peer {
  color: #636366;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.call-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #EBEBF5;
  font-size: 17px;
  font-weight: 400;
}

.call-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8E8E93;
}

.call-screen-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 20px;
}

.call-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.call-circle-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: #2C2C2E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.call-circle-btn:active {
  transform: scale(0.92);
}

.call-circle-btn.btn-active {
  background: #FFFFFF;
  color: #000000;
}

.call-circle-btn.btn-end {
  background: #FF3B30;
  color: #FFFFFF;
}

.call-circle-btn.btn-end:active {
  background: #D70015;
}

.call-btn-label {
  font-size: 12px;
  color: #8E8E93;
  font-weight: 400;
}

/* Contact Sync Notification Toast */
.contact-sync-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1C1C1E;
  border: 1px solid #3A3A3C;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  border-radius: 30px;
  padding: 10px 20px;
  z-index: 10000;
  cursor: pointer;
  animation: slideDownToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-sync-banner:active {
  transform: translateX(-50%) scale(0.97);
}

.sync-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.sync-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #34C75922;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Chat Contact Notice Card */
.contact-notice-card {
  align-self: center;
  background: #141416;
  border: 1px solid #28282B;
  border-radius: 18px;
  padding: 16px 20px;
  margin: 12px auto;
  max-width: 320px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.notice-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1C1C1E;
  border: 1px solid #2C2C2E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.notice-title {
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.notice-desc {
  color: #8E8E93;
  font-size: 12.5px;
  line-height: 1.45;
}

.notice-desc strong {
  color: #FFFFFF;
}

@keyframes slideDownToast {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

