/* =============================================
   DICOIN — KYC, Email Verification & 2FA Styles
   ============================================= */

/* ---- Compliance Banners ---- */
.compliance-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.compliance-banner.indigo {
  background: linear-gradient(135deg,rgba(79,70,229,.13),rgba(79,70,229,.05));
  border-color: rgba(79,70,229,.3);
}
.compliance-banner.amber {
  background: linear-gradient(135deg,rgba(245,158,11,.13),rgba(245,158,11,.05));
  border-color: rgba(245,158,11,.3);
}
.compliance-banner.red {
  background: linear-gradient(135deg,rgba(239,68,68,.13),rgba(239,68,68,.05));
  border-color: rgba(239,68,68,.3);
}
.compliance-banner.emerald {
  background: linear-gradient(135deg,rgba(16,185,129,.13),rgba(16,185,129,.05));
  border-color: rgba(16,185,129,.3);
}
.banner-icon { font-size: 1.5rem; flex-shrink: 0; }
.banner-body { flex: 1; min-width: 0; }
.banner-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.banner-sub   { font-size: 0.8rem; color: var(--text-muted); }
.banner-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* ---- KYC Badges ---- */
.kyc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.kyc-badge.none      { background: rgba(255,255,255,.07); color: var(--text-muted); }
.kyc-badge.pending   { background: rgba(245,158,11,.15); color: #fbbf24; }
.kyc-badge.approved  { background: rgba(16,185,129,.15); color: #34d399; }
.kyc-badge.rejected  { background: rgba(239,68,68,.15);  color: #f87171; }

/* Dot on sidebar link */
.sidebar-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-left: auto; flex-shrink: 0; display: none;
}
.sidebar-dot.show-amber  { display: block; background: #f59e0b; box-shadow: 0 0 6px #f59e0b80; }
.sidebar-dot.show-emerald { display: block; background: #10b981; box-shadow: 0 0 6px #10b98180; }

/* ---- KYC Page ---- */
.kyc-status-hero {
  display: flex; align-items: center; gap: 24px;
  padding: 28px 32px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.kyc-hero-icon { font-size: 3.5rem; flex-shrink: 0; }
.kyc-hero-info h3 { margin: 0 0 6px; font-size: 1.15rem; }
.kyc-hero-info p  { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.kyc-hero-info .flex { margin-top: 12px; }

/* KYC stepper */
.kyc-stepper {
  display: flex; align-items: center;
  margin-bottom: 36px; gap: 0;
}
.kyc-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px; position: relative; z-index: 1;
}
.kyc-step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-secondary); border: 2px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700; color: var(--text-muted);
  transition: all .3s;
}
.kyc-step.active .kyc-step-num { background: var(--indigo); border-color: var(--indigo); color: #fff; box-shadow: 0 0 18px rgba(99,102,241,.45); }
.kyc-step.done   .kyc-step-num { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.kyc-step-label {
  font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; text-align: center;
}
.kyc-step.active .kyc-step-label { color: var(--indigo-light); }
.kyc-step.done   .kyc-step-label { color: var(--emerald-light); }
.kyc-step-line {
  flex: 1; height: 2px; background: rgba(255,255,255,.1);
  margin: 0 6px; margin-bottom: 27px;
  transition: background .3s;
}
.kyc-step-line.done { background: var(--emerald); }

/* KYC form panels */
.kyc-form-panel { display: none; }
.kyc-form-panel.active { display: block; }

/* ---- File Upload Zone ---- */
.file-drop-zone {
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.file-drop-zone:hover     { border-color: var(--indigo); background: rgba(79,70,229,.06); }
.file-drop-zone.has-file  { border-color: var(--emerald); background: rgba(16,185,129,.06); }
.file-drop-zone input     { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop-zone .drop-icon { font-size: 2.2rem; margin-bottom: 10px; }
.file-drop-zone .drop-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.file-drop-zone .drop-sub  { font-size: 0.77rem; color: var(--text-muted); }
.file-drop-zone .file-selected { color: var(--emerald-light); font-weight: 600; font-size: 0.82rem; margin-top: 10px; }
.file-drop-zone .file-clear { background: none; border: none; color: var(--text-muted); font-size: 0.75rem; cursor: pointer; margin-top: 6px; text-decoration: underline; }

.kyc-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* KYC submitted state */
.kyc-submitted-anim { font-size: 4rem; text-align: center; margin-bottom: 20px; animation: popIn .4s ease; }
@keyframes popIn { 0%{transform:scale(.4);opacity:0} 80%{transform:scale(1.15)} 100%{transform:scale(1);opacity:1} }

/* ---- 2FA Setup ---- */
.twofa-qr-box {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 24px; background: var(--bg-secondary); border-radius: var(--radius);
  margin: 20px 0; border: 1px solid rgba(255,255,255,.07);
}
.twofa-qr-box canvas {
  padding: 12px; background: #fff; border-radius: 10px; display: block;
}
.twofa-secret {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem; letter-spacing: .12em;
  background: var(--bg-primary); padding: 10px 16px;
  border-radius: var(--radius-sm); color: var(--cyan-light);
  word-break: break-all; text-align: center;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; transition: border-color .2s;
}
.twofa-secret:hover { border-color: var(--indigo); }
.twofa-secret-label { font-size: 0.72rem; color: var(--text-muted); }

/* Recovery codes grid */
.recovery-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin: 16px 0;
}
.recovery-code {
  font-family: 'Courier New', monospace; font-size: 0.82rem;
  padding: 8px 12px; background: var(--bg-secondary);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,.08); text-align: center;
  letter-spacing: .06em;
}
.recovery-code.used { text-decoration: line-through; opacity: .4; }

/* ---- 6-digit OTP Input ---- */
.otp-input-wrap {
  display: flex; gap: 8px; justify-content: center; margin: 24px 0;
}
.otp-digit {
  width: 50px; height: 62px; text-align: center;
  font-size: 1.7rem; font-weight: 700;
  background: var(--bg-secondary); border: 2px solid rgba(255,255,255,.12);
  border-radius: var(--radius); color: var(--text-primary);
  caret-color: var(--indigo); transition: border-color .2s;
  -moz-appearance: textfield;
}
.otp-digit::-webkit-inner-spin-button, .otp-digit::-webkit-outer-spin-button { -webkit-appearance: none; }
.otp-digit:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.otp-digit.filled { border-color: rgba(16,185,129,.5); }

/* 2FA challenge modal compact */
.twofa-challenge-body { text-align: center; padding: 8px 0; }
.twofa-challenge-body .lock-icon { font-size: 3rem; margin-bottom: 12px; }

/* Settings security section */
.security-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 16px;
}
.security-row:last-child { border-bottom: none; }
.security-row-label { font-weight: 600; font-size: .93rem; }
.security-row-sub   { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.security-row-actions { flex-shrink: 0; }
.twofa-on-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: rgba(16,185,129,.15);
  color: #34d399; border-radius: 999px; font-size: .8rem; font-weight: 700;
}

/* Steps indicator in 2FA setup modal */
.setup-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 20px;
}
.setup-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-secondary); border: 2px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
}
.setup-step-dot.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.setup-step-dot.done   { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.setup-step-line { width: 32px; height: 2px; background: rgba(255,255,255,.1); }
.setup-step-line.done { background: var(--emerald); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .kyc-doc-grid { grid-template-columns: 1fr; }
  .otp-digit { width: 38px; height: 50px; font-size: 1.3rem; }
  .kyc-status-hero { flex-direction: column; text-align: center; padding: 20px; }
  .recovery-grid { grid-template-columns: 1fr; }
}
