/* ===== AI CALL SCREEN ===== */

body.ai-call-active {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100vh;
}

#sub-ai-call {
  overflow: hidden !important;
  position: fixed;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 9999;
}

.ai-call-screen {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); */
  position: relative;
  overflow: hidden;
}

/* ===== MAIN CALL AREA ===== */
.call-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 24px;
  overflow-y: auto;
}

/* ===== TIMER ===== */
.call-timer {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Courier New', monospace;
  margin-bottom: 20px;
}

/* ===== AVATAR ===== */
.call-avatar-container {
  position: relative;
  margin-bottom: 16px;
}

.avatar-glow {
  position: absolute;
  inset: -20px;
  /* background: radial-gradient(circle, rgba(108, 99, 255, 0.3), transparent 70%); */
  border-radius: 50%;
  filter: blur(30px);
  animation: pulse 3s ease-in-out infinite;
}

.call-avatar {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  /* background: rgba(108, 99, 255, 0.15); */
  /* border: 3px solid rgba(108, 99, 255, 0.3); */
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 8px 32px rgba(108, 99, 255, 0.2); */
}

.call-avatar svg {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== STATUS ===== */
.call-status-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c63ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* ===== NAME & SUBTITLE ===== */
.call-name {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  text-align: center;
}

.call-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px 0;
  text-align: center;
}

/* ===== LIVE CAPTION TEXT ===== */
.caption-container {
  width: 100%;
  max-width: 500px;
  padding: 0 20px;
  margin-top: 24px;
}

.caption-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  text-align: center;
  min-height: 60px;
  animation: fadeIn 0.3s ease;
}

/* ===== BOTTOM ACTIONS ===== */
.call-actions {
  padding: 20px 24px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 32px));
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(30px);
  /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
  position: relative;
  z-index: 100;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.5);
  transform: translateY(-2px);
}

.action-btn.active {
  background: rgba(108, 99, 255, 0.3);
  border-color: rgba(108, 99, 255, 0.5);
  color: #fff;
}

/* ===== END CALL BUTTON ===== */
.end-call-btn {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  /* box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4); */
}

.end-call-btn:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5); */
}

.end-call-btn:active {
  transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .call-main-area {
    padding: 30px 20px 20px;
    padding-bottom: 180px;
  }

  .call-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 28px));
  }

  .call-avatar {
    width: 120px;
    height: 120px;
  }

  .call-avatar svg {
    width: 80px;
    height: 80px;
  }

  .call-name {
    font-size: 1.75rem;
  }

  .call-subtitle {
    font-size: 0.9rem;
  }

  .action-buttons {
    gap: 16px;
  }

  .action-btn {
    width: 56px;
    height: 56px;
  }

  .call-actions {
    padding: 16px 20px 28px;
  }

  .end-call-btn {
    max-width: 100%;
    padding: 16px 28px;
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .ai-call-screen {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px 28px 0 0 !important;
  }
}
/* ===== MOBILE CALL ACTIONS POSITION FIX ===== */
@media (max-width: 768px) {

  .call-actions {
    padding-top: 35px !important;
    padding-bottom: 50px !important;
  }

  .action-buttons {
    margin-bottom: 28px !important;
  }

  .call-main-area {
    padding-bottom: 220px !important;
  }

}
/* Mic/Speaker aur End Call ke beech gap */
@media (max-width: 768px) {
  .action-buttons {
    margin-bottom: 50px !important;
  }
}
.call-actions {
  border-radius: 28px 28px 0 0 !important;
  overflow: hidden;
  background: rgba(65, 65, 65, 0.153);
}

/* ===== TOP-RIGHT SETTINGS BUTTON ===== */
.call-top-settings-btn {
  position: absolute;
  top: 24px;
  top: calc(24px + env(safe-area-inset-top, 0px));
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.call-top-settings-btn:hover {
  background: rgba(108, 99, 255, 0.25);
  border-color: rgba(108, 99, 255, 0.4);
  color: #ffffff;
  transform: scale(1.05);
}

.call-top-settings-btn:active {
  transform: scale(0.95);
}