/* ═══════════════════════════════════════════
   MODALS — Sheets, Confirm, CallerID
   ═══════════════════════════════════════════ */

/* Backdrop */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 300; animation: chatFadeIn .2s ease both; display: none; }
.modal-backdrop.open { display: block; }

/* Bottom sheet */
.modal-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 301;
  background: #0d0d16; border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px 24px 0 0; max-height: 75vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.modal-sheet.open { transform: translateY(0); animation: modalSlideUp .4s cubic-bezier(.16,1,.3,1) both; }

.modal-handle { display: flex; justify-content: center; padding: 10px 0 4px; }
.modal-handle div { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 8px 20px 12px; flex-shrink: 0; }
.modal-content { flex: 1; overflow-y: auto; padding: 0 16px 20px; -webkit-overflow-scrolling: touch; }

.modal-close {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: 14px; cursor: pointer; flex-shrink: 0;
}
.modal-back {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; cursor: pointer; flex-shrink: 0;
}

/* Center confirm modal */
@keyframes confirmPopIn {
  from { opacity: 0; transform: translate(-50%,-50%) scale(.92) translateY(12px); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1) translateY(0); }
}
.confirm-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 301;
  background: rgba(13,13,22,.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px; padding: 28px 24px 24px; width: min(320px, calc(100vw - 48px));
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset, 0 1px 0 rgba(255,255,255,.04) inset;
  animation: confirmPopIn .35s cubic-bezier(.34,1.56,.64,1) both;
  display: none;
}
.confirm-modal.open { display: block; }

/* Step indicator dots */
.step-dots { display: flex; gap: 4px; flex-shrink: 0; margin-right: 8px; }
.step-dot { height: 6px; border-radius: 3px; transition: all .3s cubic-bezier(.34,1.56,.64,1); }

/* ─── Caller ID specifics ─── */
.callerid-current { background: rgba(0,229,255,.06); border: 1px solid rgba(0,229,255,.15); border-radius: 14px; padding: 12px 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.code-selector { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; cursor: pointer; color: #fff; transition: all .2s ease; font-family: 'DM Sans', sans-serif; }
.code-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #12121e; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; z-index: 10; box-shadow: 0 16px 48px rgba(0,0,0,.5); max-height: 280px; display: flex; flex-direction: column; animation: slideUp .2s ease both; }
.code-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; background: transparent; border: none; border-radius: 10px; cursor: pointer; color: #fff; transition: background .15s ease; -webkit-tap-highlight-color: transparent; font-family: 'DM Sans', sans-serif; }
.code-item:active { background: rgba(255,255,255,.06); }
.phone-input-wrap { display: flex; align-items: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.phone-prefix { padding: 13px 14px; border-right: 1px solid rgba(255,255,255,.08); font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; color: #00E5FF; flex-shrink: 0; background: rgba(255,255,255,.02); }
.phone-input { flex: 1; background: transparent; border: none; padding: 13px 14px; color: #fff; font-size: 15px; font-family: 'JetBrains Mono', monospace; font-weight: 600; outline: none; letter-spacing: .03em; min-width: 0; }
.btn-save { width: 100%; padding: 14px; border-radius: 14px; border: none; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .25s ease; }
