@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  --bg-gradient-start: #f6fbff;
  --bg-gradient-end: #e3f0ff;
  --primary: #1d4ed8;
  --primary-soft: rgba(29, 78, 216, 0.10);
  --accent: #0ea5e9;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --text-main: #0f172a;
  --muted: #64748b;
  --card-bg: rgba(255,255,255,0.95);
  --glass-border: rgba(255,255,255,0.8);
  --border-color: #cbd5e1;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --aurora: linear-gradient(120deg, #4f46e5, #0ea5e9, #22c55e, #f97316);
  --btn-gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.25);
}

*{ box-sizing: border-box; }

.zellmo-btn{
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  background-image: var(--btn-gradient);
  border-radius: var(--radius-pill);
  color: #fff;
  border: 1px solid transparent;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  transition: transform .15s ease, box-shadow .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 44px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.zellmo-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}
.zellmo-btn:active{
  transform: translateY(0);
}
.zellmo-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.20);
}
.zellmo-btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

/* Mobile responsive sizing */
@media (min-width: 768px) {
  .zellmo-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
  }
}

.zellmo-overlay{
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 14px 14px 14px;
  z-index: 999999 !important;
  backdrop-filter: blur(4px);
  margin: 0 !important;
  overflow-y: auto;
}
.zellmo-overlay[aria-hidden="false"]{ 
  display: flex !important; 
}

.aurora-frame{
  width: 100%;
  max-width: 920px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--aurora);
  background-size: 200% 200%;
  animation: auroraMove 5s infinite ease-in-out;
  box-shadow: 0 18px 60px rgba(15,23,42,0.22);
  position: relative;
  z-index: 999999 !important;
  margin-top: 0;
  flex-shrink: 0;
}
@keyframes auroraMove{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

.zellmo-modal{
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: #fff;
  border-radius: calc(var(--radius-lg) - 2px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.55);
  font-family: "Poppins", sans-serif;
  position: relative;
  z-index: 999999 !important;
}

.zellmo-head{
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f0f0f1;
  background: rgba(255,255,255,0.98);
}
.zellmo-title{
  margin: 0;
  font-size: 16px;
  font-weight: 700 !important;
  color: #000 !important;
  letter-spacing: -0.2px;
}
.zellmo-subtitle{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.zellmo-x{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  line-height: 1;
}
.zellmo-x:hover{
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.zellmo-body{
  padding: 18px;
  overflow: auto;
  flex: 1;
  background: radial-gradient(circle at 10% 10%, rgba(29,78,216,0.06), transparent 45%),
              radial-gradient(circle at 80% 30%, rgba(14,165,233,0.06), transparent 50%),
              #ffffff;
}

.zellmo-foot{
  padding: 14px 18px;
  border-top: 1px solid #f0f0f1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.zellmo-step{ display: none; }
.zellmo-step.active{ display: block; }

.stepper{
  display: flex;
  gap: 8px;
  margin: 0 0 14px 0;
  overflow-x: auto;
  padding-bottom: 2px;
}
.step-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #d1d5db;
  background: #f8fafc;
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s;
  white-space: nowrap;
}
.step-pill.current{
  background: var(--primary-soft);
  border-color: var(--primary);
  color: #1e293b;
  font-weight: 700;
}
.step-pill.completed{
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
  font-weight: 700;
}

.cols{
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 860px){
  .zellmo-overlay{
    padding: 60px 0 0 0;
    align-items: flex-start;
  }
  .zellmo-modal{ max-height: 550px; border-radius: 0; }
  .aurora-frame{ border-radius: 0; margin-top: 50px; }
  .cols{ grid-template-columns: 1fr; }
}

.panel{
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}
.panel h4{
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #1e293b;
}
.kv{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.kv:last-child{ border-bottom: none; }
.kv .k{ color: #475569; }
.kv .v{ font-weight: 700; color: #0f172a; }
.kv .v.listing-id{ font-weight: 400; }
[data-zellmo-range-area] { font-weight: 700; }

.form-group{ margin-bottom: 14px; }
.field-label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}
.text-input{
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s ease;
  font-family: inherit;
}
.text-input:focus{
  border-color: var(--primary);
  outline: 4px solid var(--primary-soft);
}

.notice{
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}
.notice.success{
  border-color: rgba(22,163,74,0.55);
  background: var(--success-bg);
  color: #14532d;
}
.notice.danger{
  border-color: rgba(185,28,28,0.50);
  background: var(--danger-bg);
  color: #7f1d1d;
}
.notice.warning{
  border-color: rgba(245,158,11,0.55);
  background: var(--warning-bg);
  color: #7c2d12;
}

.primary-btn{
  position: relative;
  background-image: var(--btn-gradient);
  border-radius: var(--radius-pill);
  color: #fff;
  border: 1px solid transparent;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  transition: transform .15s ease, box-shadow .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
  min-height: 44px;
  min-width: 120px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.verify-btn[data-zellmo-verify] {
  min-height: 44px;
}
.verify-btn[data-zellmo-verify] [data-zellmo-verify-loader] {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.verify-btn[data-zellmo-verify] [data-zellmo-verify-text] {
  transition: opacity 0.2s ease;
}
.verify-btn[data-zellmo-verify] [data-zellmo-verify-text][style*="display: none"] {
  opacity: 0;
}
.primary-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}
.primary-btn:active{
  transform: translateY(0);
}
.primary-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.20);
}
.primary-btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  filter: none;
}

.ghost-btn{
  appearance: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-main);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ghost-btn:hover{
  background: #f8fafc;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}
.ghost-btn:active{
  transform: translateY(0);
}
.ghost-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.20);
}
.ghost-btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rightActions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.muted{
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0 0;
}
.tight{ margin: 0; }

.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}

.spinner{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: rgba(255,255,255,1);
  animation: spin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.zellmo-kycframewrap{
  margin-top: 12px;
  clear: both;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.zellmo-kycframe{
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}

.zellmo-confetti-canvas{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000000 !important;
}

/* Ensure modal is isolated from page content */
body.zellmo-modal-open{
  overflow: hidden !important;
}
body.zellmo-modal-open .zellmo-overlay[aria-hidden="false"] ~ * {
  pointer-events: none;
}

/* Theme override: Remove paragraph margin in single content */
.single-content p {
  margin-bottom: 0px !important;
}

/* OTP Form in Modal */
.zellmo-otp-container .zell-otp-wrap {
  margin: 0;
}
.zellmo-otp-container .zell-otp-form {
  /* Ensure form fits within modal */
  max-width: 100%;
}

/* Responsive Utility Classes for Mobile/Desktop Shortcodes */
@media (max-width: 768px) {
  /* Hide desktop button on mobile */
  .zellmo-btn-desktop {
    display: none !important;
  }
}

@media (min-width: 769px) {
  /* Hide mobile button on desktop */
  .zellmo-btn-mobile {
    display: none !important;
  }
}