/* Candy Call – CandyHosting support entry */
.candy-call-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b35e8, #cf73ff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(169, 66, 245, 0.32);
  display: grid;
  place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.candy-call-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 40px rgba(169, 66, 245, 0.44);
}
.candy-call-fab svg { width: 26px; height: 26px; fill: currentColor; }

.candy-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(4, 8, 12, 0.72);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}
.candy-call-overlay.open { display: flex; }

.candy-call-sheet {
  width: min(420px, 100%);
  background: #100d15;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px 20px 20px 6px;
  padding: 22px 20px 18px;
  color: #eef3f8;
  font-family: Manrope, system-ui, sans-serif;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: candyCallUp .35s ease;
}
@keyframes candyCallUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.candy-call-sheet h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.candy-call-sheet p.sub {
  margin: 0 0 16px;
  color: rgba(238,243,248,.55);
  font-size: 13px;
  line-height: 1.45;
}
.candy-call-field { margin-bottom: 12px; }
.candy-call-field label {
  display: block;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(238,243,248,.45);
  margin-bottom: 6px;
}
.candy-call-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: 500 15px/1.3 Manrope, system-ui, sans-serif;
  outline: none;
}
.candy-call-field input:focus {
  border-color: rgba(169,66,245,.65);
}
.candy-call-err {
  min-height: 18px;
  color: #fb7185;
  font-size: 13px;
  margin: 4px 0 10px;
}
.candy-call-actions {
  display: flex;
  gap: 10px;
}
.candy-call-actions button {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 13px 14px;
  font: 600 14px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}
.candy-call-btn-cancel {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.candy-call-btn-call {
  background: #a942f5;
  color: #fff;
}
.candy-call-btn-call:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.candy-call-mic-box {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(169, 66, 245, .3);
  background: rgba(169, 66, 245, .09);
}
.candy-call-mic-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.candy-call-mic-icon {
  font-size: 22px;
  line-height: 1;
}
.candy-call-mic-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.candy-call-mic-status {
  font-size: 12px;
  color: rgba(238,243,248,.55);
  line-height: 1.4;
}
.candy-call-btn-mic {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font: 600 13px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.candy-call-btn-mic:disabled {
  opacity: .55;
  cursor: wait;
}

#candy-call-yt-host {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
  overflow: hidden;
}

/* In-call UI */
.candy-call-incall {
  text-align: center;
  padding: 12px 4px 4px;
}
.candy-call-avatar {
  width: 96px;
  height: 96px;
  margin: 8px auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #22c55e, #15803d);
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 700;
  color: #04140a;
  animation: candyPulse 1.6s ease-in-out infinite;
}
@keyframes candyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  50% { box-shadow: 0 0 0 18px rgba(34,197,94,0); }
}
.candy-call-incall .status {
  color: rgba(238,243,248,.55);
  font-size: 13px;
  margin-bottom: 6px;
}
.candy-call-incall .title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.candy-call-incall .meta {
  color: rgba(238,243,248,.45);
  font-size: 13px;
  margin-bottom: 22px;
}
.candy-call-hangup {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin: 0 auto;
  box-shadow: 0 10px 28px rgba(239,68,68,.4);
}
.candy-call-hangup svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 640px) {
  .candy-call-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
