/* ck_manual_payment.css — Manual UPI Payment Modal */

/* ── Overlay ────────────────────────────────────────────────── */
.ckmp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.ckmp-overlay.open { display: flex; }

/* ── Card ───────────────────────────────────────────────────── */
.ckmp-modal {
  background: #161616;
  border: 1px solid #252525;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .65);
  box-sizing: border-box;
}
.ckmp-modal::-webkit-scrollbar { width: 4px; }
.ckmp-modal::-webkit-scrollbar-track { background: transparent; }
.ckmp-modal::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

/* ── Close button ───────────────────────────────────────────── */
.ckmp-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 20px;
  padding: 6px;
  line-height: 1;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.ckmp-close:hover { color: #f0f0f0; background: #222; }

/* ── Header ─────────────────────────────────────────────────── */
.ckmp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ckmp-header-icon {
  width: 44px; height: 44px;
  background: rgba(0, 200, 150, .12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #00C896;
  flex-shrink: 0;
}
.ckmp-title    { font-size: 18px; font-weight: 700; color: #f0f0f0; margin: 0 0 2px; }
.ckmp-subtitle { font-size: 12px; color: #666; margin: 0; }

/* ── Plan pill ───────────────────────────────────────────────── */
.ckmp-plan-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 150, .07);
  border: 1px solid rgba(0, 200, 150, .2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.ckmp-plan-pill-name   { font-size: 13px; font-weight: 600; color: #00C896; }
.ckmp-plan-pill-price  { font-size: 20px; font-weight: 800; color: #f0f0f0; margin-left: auto; }
.ckmp-plan-pill-period { font-size: 11px; color: #666; }

/* ── UPI box ─────────────────────────────────────────────────── */
.ckmp-upi-box {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.ckmp-upi-section-label {
  font-size: 10px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
  font-weight: 600;
}
.ckmp-upi-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ckmp-upi-id {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #f0f0f0;
  letter-spacing: .4px;
  word-break: break-all;
}
.ckmp-copy-btn {
  flex-shrink: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #00C896;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.ckmp-copy-btn:hover { background: #222; border-color: #00C896; }

/* ── QR ──────────────────────────────────────────────────────── */
.ckmp-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.ckmp-qr-img {
  width: 152px; height: 152px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}
.ckmp-qr-placeholder {
  width: 152px; height: 152px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 2px dashed #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 11px;
  text-align: center;
  gap: 8px;
  padding: 12px;
  box-sizing: border-box;
}

/* ── Amount badge ────────────────────────────────────────────── */
.ckmp-amount-badge {
  background: rgba(0, 200, 150, .1);
  border: 1px solid rgba(0, 200, 150, .18);
  color: #00C896;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* ── Divider ─────────────────────────────────────────────────── */
.ckmp-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: #3a3a3a;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ckmp-divider::before, .ckmp-divider::after {
  content: ''; flex: 1; height: 1px; background: #222;
}

/* ── Form fields ─────────────────────────────────────────────── */
.ckmp-field { margin-bottom: 14px; }
.ckmp-field label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  font-weight: 500;
}
.ckmp-field label .req { color: #e55; margin-left: 2px; }
.ckmp-field label .opt { color: #444; font-weight: 400; margin-left: 4px; }

.ckmp-input {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #f0f0f0;
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  letter-spacing: .5px;
  font-family: inherit;
}
.ckmp-input::placeholder { color: #444; }
.ckmp-input:focus  { border-color: #00C896; }
.ckmp-input.error  { border-color: #d44; }

.ckmp-file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  border: 1px dashed #2a2a2a;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  color: #555;
  font-size: 13px;
}
.ckmp-file-label:hover { border-color: #00C896; color: #00C896; }
.ckmp-file-name { font-size: 11px; color: #00C896; margin-top: 4px; }

/* ── WhatsApp note ───────────────────────────────────────────── */
.ckmp-contact-note {
  background: #0f1a0f;
  border: 1px solid #1a2e1a;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}
.ckmp-contact-note svg { flex-shrink: 0; margin-top: 1px; }
.ckmp-contact-note a   { color: #25D366; text-decoration: none; font-weight: 600; }
.ckmp-contact-note a:hover { text-decoration: underline; }

/* ── Inline messages ─────────────────────────────────────────── */
.ckmp-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  line-height: 1.4;
}
.ckmp-msg.err {
  background: rgba(220, 60, 60, .1);
  border: 1px solid rgba(220, 60, 60, .3);
  color: #f88;
  display: block;
}
.ckmp-msg.ok {
  background: rgba(0, 200, 150, .09);
  border: 1px solid rgba(0, 200, 150, .25);
  color: #00C896;
  display: block;
}

/* ── Submit button ───────────────────────────────────────────── */
.ckmp-submit {
  width: 100%;
  padding: 14px;
  background: #00C896;
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  font-family: inherit;
}
.ckmp-submit:hover    { background: #00b385; }
.ckmp-submit:disabled { opacity: .45; cursor: not-allowed; }

/* ── Success state ───────────────────────────────────────────── */
.ckmp-success {
  text-align: center;
  padding: 28px 8px 12px;
}
.ckmp-success-icon  { font-size: 52px; margin-bottom: 14px; }
.ckmp-success-title {
  font-size: 20px; font-weight: 800; color: #00C896;
  margin: 0 0 10px;
}
.ckmp-success-msg {
  font-size: 14px; color: #888; line-height: 1.6;
  margin: 0 0 20px;
}

/* ── Mobile bottom-sheet style ───────────────────────────────── */
@media (max-width: 560px) {
  .ckmp-overlay.open { align-items: flex-end; padding: 0; }
  .ckmp-modal {
    border-radius: 18px 18px 0 0;
    padding: 22px 18px 28px;
    max-height: 95vh;
  }
}
