/* ===== Direct Call - Sticky Bar (active states) ===== */

/* Hint text above the banner */
.dcc-sticky-hint {
  font-family: 'Outfit',system-ui,-apple-system,sans-serif;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 8px 16px 0;
}
.dcc-sticky-hint span { font-weight: 600; color: #111827; }
.dark-mode .dcc-sticky-hint { color: #9ca3af; }
.dark-mode .dcc-sticky-hint span { color: #f4f2ff; }
.dcc-sticky-hint.calling { color: #6D4AE8; }
.dcc-sticky-hint.in-call { color: #10b981; }

.dcc-sticky {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin: 0 12px 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.dark-mode .dcc-sticky {
  background: #1e1b4b;
  border-color: #2e2c55;
  box-shadow: 0 1px 6px rgba(0,0,0,.2);
}

.dcc-sticky-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

/* Left: avatar + info */
.dcc-sticky-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.dcc-sticky-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dcc-sticky-info { min-width: 0; }
.dcc-sticky-name {
  font-family: 'Outfit',system-ui,-apple-system,sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dark-mode .dcc-sticky-name { color: #f4f2ff; }

.dcc-sticky-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.dark-mode .dcc-sticky-meta { color: #9ca3af; }
.dcc-sticky-sep { color: #e5e7eb; }
.dark-mode .dcc-sticky-sep { color: #4b5563; }

.dcc-sticky-type {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}
.dcc-sticky-type.video { color: #6D4AE8; }
.dcc-sticky-type.audio { color: #059669; }

/* Center: status */
.dcc-sticky-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.dcc-sticky-status-text.calling {
  font-size: 13px;
  color: #6D4AE8;
  font-weight: 500;
}
.dcc-sticky-status-text.ready {
  font-size: 13px;
  color: #6D4AE8;
  font-weight: 500;
}

/* Divider between status and actions */
.dcc-sticky-divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.dark-mode .dcc-sticky-divider { background: #2e2c55; }

/* Status badge (shared) */
.dcc-status-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.dcc-sb-pending { background: #fef3c7; color: #92400e; }
.dcc-sb-paid { background: #f3f0ff; color: #6D4AE8; }
.dcc-sb-calling { background: #f3f0ff; color: #6D4AE8; animation: dcc-pulse-stripe 1.5s ease-in-out infinite; }
.dcc-sb-in_call { background: #dcfce7; color: #166534; }
.dcc-sb-completed { background: #f3f4f6; color: #6b7280; }
.dcc-sb-rejected { background: #fee2e2; color: #dc2626; }
.dcc-sb-refunded,
.dcc-sb-expired { background: #f3f4f6; color: #6b7280; }
.dcc-sb-canceled { background: #fef3c7; color: #92400e; }

@keyframes dcc-pulse-stripe {
  0%,100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Right: actions */
.dcc-sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dcc-sbtn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-family: 'Outfit',system-ui,-apple-system,sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.dcc-sbtn:hover { opacity: .9; }

.dcc-sbtn-pay {
  background: linear-gradient(135deg,#6D4AE8,#8b5cf6);
  color: #fff;
}
.dcc-sbtn-call {
  background: #22c55e;
  color: #fff;
}
.dcc-sbtn-call:hover { background: #16a34a; }

.dcc-sbtn-cancel {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.06);
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
}
.dcc-sbtn-cancel:hover { background: rgba(239,68,68,.12); }
.dark-mode .dcc-sbtn-cancel {
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.1);
}

.dcc-sbtn-cancel-call {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.06);
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
}
.dcc-sbtn-cancel-call:hover { background: rgba(239,68,68,.12); }

.dcc-sticky-waiting {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #f59e0b;
  font-weight: 500;
  font-style: italic;
  white-space: nowrap;
}

/* Calling dots animation */
.dcc-calling-dots { display: flex; gap: 3px; }
.dcc-calling-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6D4AE8;
  animation: dcc-dot-bounce .6s ease-in-out infinite;
}
.dcc-calling-dots span:nth-child(2) { animation-delay: .1s; }
.dcc-calling-dots span:nth-child(3) { animation-delay: .2s; }

@keyframes dcc-dot-bounce {
  0%,80%,100% { opacity: .3; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ===== Finalized inline badge (completed/canceled/refunded) ===== */
.dcc-finalized {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 12px;
  color: #6b7280;
  font-family: 'Outfit',system-ui,-apple-system,sans-serif;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  flex-wrap: wrap;
  justify-content: center;
}
.dark-mode .dcc-finalized {
  background: #111025;
  border-color: #2e2c55;
  color: #9ca3af;
}
.dcc-finalized-type {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.dcc-finalized-sep { color: #d1d5db; }
.dark-mode .dcc-finalized-sep { color: #4b5563; }

/* ===== Responsive: stack on small screens ===== */
@media (max-width: 575.98px) {
  .dcc-sticky { margin: 0 8px 6px; }
  .dcc-sticky-body {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }
  .dcc-sticky-left { flex: 1 1 100%; }
  .dcc-sticky-divider { display: none; }
  .dcc-sticky-status { flex: none; }
  .dcc-sticky-actions {
    flex: 1;
    justify-content: flex-end;
  }
  .dcc-sbtn { height: 34px; font-size: 12px; padding: 0 14px; }
  .dcc-sbtn-cancel, .dcc-sbtn-cancel-call { height: 34px; font-size: 12px; }
}

/* ===== Direct Call Wizard Modal ===== */
.dcw-stripe {
  height: 3px;
  background: linear-gradient(90deg,#6D4AE8,#8b5cf6);
}
.dcw-stripe.audio {
  background: linear-gradient(90deg,#059669,#10b981);
}
.dcw-step { display: none; }
.dcw-step.active { display: block; }

.dcw-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.dcw-close-btn:hover { background: #e5e7eb; }

.dcw-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: 0;
  color: #6b7280;
  font-family: 'Outfit',system-ui,-apple-system,sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.dcw-back-btn:hover { color: #1e1b4b; }

.dcw-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dcw-type-icon.video { background: #eff6ff; color: #3b82f6; }
.dcw-type-icon.audio { background: #ecfdf5; color: #059669; }

/* Duration cards */
.dcw-dur-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  background: #fff;
}
.dcw-dur-card:hover { border-color: #c4b5fd; background: #faf8ff; }
.dcw-dur-card.selected { border-color: #6D4AE8; background: #f5f3ff; }
.dcw-dur-card.selected.audio { border-color: #059669; background: #ecfdf5; }
.dark-mode .dcw-dur-card { background: #1e1b4b; border-color: #2e2c55; }
.dark-mode .dcw-dur-card:hover { border-color: #6D4AE8; background: #221f47; }

.dcw-dur-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit',system-ui,-apple-system,sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #4b5563;
  flex-shrink: 0;
}
.dcw-dur-card.selected .dcw-dur-icon { background: #ede9fe; color: #6D4AE8; }
.dcw-dur-card.selected.audio .dcw-dur-icon { background: #d1fae5; color: #059669; }

.dcw-dur-info { flex: 1; min-width: 0; }
.dcw-dur-name {
  font-family: 'Outfit',system-ui,-apple-system,sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #1e1b4b;
}
.dark-mode .dcw-dur-name { color: #f4f2ff; }
.dcw-dur-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 1px;
}
.dcw-dur-price {
  font-family: 'Outfit',system-ui,-apple-system,sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1e1b4b;
  flex-shrink: 0;
}
.dark-mode .dcw-dur-price { color: #f4f2ff; }

/* Summary */
.dcw-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.dark-mode .dcw-summary { background: #111025; }
.dcw-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dcw-summary-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dcw-summary-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Payment options */
.dcw-pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: all .15s;
  margin-bottom: 8px;
  text-align: left;
}
.dcw-pay-option:hover { border-color: #c4b5fd; }
.dcw-pay-option.selected { border-color: #6D4AE8; background: #f5f3ff; }
.dark-mode .dcw-pay-option { background: #1e1b4b; border-color: #2e2c55; }

.dcw-pay-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dcw-pay-info { flex: 1; min-width: 0; }
.dark-mode .dcw-pay-info div:first-child { color: #f4f2ff; }
.dcw-pay-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6D4AE8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dcw-insufficient {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fffbeb;
  border-radius: 8px;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 12px;
}

.dcw-confirm-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 0;
  font-family: 'Outfit',system-ui,-apple-system,sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg,#6D4AE8,#8b5cf6);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109,74,232,.25);
  transition: all .2s;
}
.dcw-confirm-btn:hover { opacity: .9; transform: translateY(-1px); }
.dcw-confirm-btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ===== Online badge - in-call state ===== */
.msg-call-online-badge.in-call .msg-call-online-dot {
  background: #f59e0b;
}
.msg-call-online-badge.in-call {
  color: #f59e0b;
}
