/* Digio KYC - client area styles.
   Scoped to .digiokyc-* classes so nothing leaks into the WHMCS theme. */

.digiokyc-banner {
  margin: 0 0 16px;
  border: 1px solid #d7e3fb;
  background: linear-gradient(90deg, #eef4ff 0%, #f7faff 100%);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(30, 58, 138, 0.08);
}

.digiokyc-banner .dk-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  flex-wrap: wrap;
}

.digiokyc-banner .dk-banner-text strong {
  display: block;
  color: #1e3a8a;
  font-size: 14px;
}

.digiokyc-banner .dk-banner-text span {
  display: block;
  color: #475569;
  font-size: 13px;
  margin-top: 2px;
}

.digiokyc-banner .dk-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dk-btn {
  border: 0;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.dk-btn-primary {
  background: #2563eb;
  color: #fff;
}

.dk-btn-primary:hover {
  background: #1d4ed8;
}

.dk-btn-ghost {
  background: transparent;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.dk-btn-ghost:hover {
  background: #f1f5f9;
}

/* Modal */
.digiokyc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}

.digiokyc-modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  padding: 28px 26px 20px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
  text-align: center;
  animation: dk-pop 0.18s ease-out;
}

@keyframes dk-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.digiokyc-modal h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #0f172a;
}

.dk-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

.dk-modal-close:hover {
  color: #475569;
}

.dk-modal-body {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.dk-modal-msg {
  margin: 0;
  color: #334155;
  font-size: 14px;
}

.dk-modal-msg-error {
  color: #b91c1c;
}

.dk-modal-foot {
  margin-top: 16px;
  border-top: 1px solid #eef2f7;
  padding-top: 14px;
}

.dk-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: dk-spin 0.8s linear infinite;
}

@keyframes dk-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .digiokyc-banner .dk-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .digiokyc-banner .dk-banner-actions {
    width: 100%;
  }
  .dk-btn {
    flex: 1;
  }
}
