/* ============================================================
   KYC — Onboarding Flow
   Gamified "bubbly" skin — chunky buttons, depth, personality
   ============================================================ */

/* ── Reset + Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #00c67a;
  --green-dark:   #008f58;
  --green-light:  rgba(0,198,122,0.1);
  --text:         #111;
  --text-muted:   #888;
  --border:       rgba(0,0,0,0.08);
  --surface:      #f0f0f0;
  --white:        #fff;
  --black:        #0a0a0a;
  /* Off-white background — not a void */
  --page-bg:      #f0f4f8;
}

body {
  background: var(--page-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

/* ── Progress bar — chunky, green, rounded ── */
.kyc-progress-wrap {
  padding: 16px 24px 0;
}
.kyc-progress-bar {
  height: 10px;
  background: rgba(0,0,0,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.kyc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #00e68a);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.25,1,0.5,1);
  position: relative;
}
/* shimmer on fill */
.kyc-progress-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 24px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45));
  border-radius: 99px;
  animation: prog-shimmer 1.8s ease-in-out infinite;
}
@keyframes prog-shimmer {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

/* ── Main container — tighter vertical padding so cards get more room ── */
.kyc-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px 40px;
}

/* ── Step panel — much wider ── */
.kyc-step-panel {
  width: 100%;
  max-width: 900px;
  text-align: center;
  animation: stepIn 0.42s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.kyc-step-panel.exiting {
  animation: stepOut 0.22s ease forwards;
}
@keyframes stepOut {
  to { opacity: 0; transform: translateY(-18px); }
}

/* ── Step dots — pill indicator ── */
.kyc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.kyc-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: rgba(0,0,0,0.12);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.kyc-dot.active {
  background: var(--green);
  width: 28px;
}

/* ── Eyebrow / title / sub ── */
.kyc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.kyc-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 8px;
}
.kyc-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Skip link ── */
.kyc-skip {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
.kyc-skip:hover { color: var(--text); }

/* ============================================================
   STEP 1 — Experience level options (horizontal row)
   ============================================================ */
.kyc-options {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: stretch;
}

.kyc-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  background: var(--white);
  border: none;
  border-radius: 26px;
  padding: 52px 24px 48px;
  cursor: pointer;
  text-align: center;
  min-height: 280px;
  box-shadow:
    0 6px 0 rgba(0,0,0,0.10),
    0 2px 12px rgba(0,0,0,0.06);
  transition:
    transform 0.12s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.12s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.kyc-option:hover {
  transform: translateY(-3px);
  box-shadow:
    0 9px 0 rgba(0,0,0,0.10),
    0 8px 24px rgba(0,0,0,0.10);
}
.kyc-option:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.10),
    0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.06s, box-shadow 0.06s;
}

.kyc-option-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  width: 76px; height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
  border-radius: 22px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.07);
}

.kyc-option-body { flex: 1; }
.kyc-option-label {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}
.kyc-option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Arrow hidden in horizontal layout */
.kyc-option-arrow { display: none; }

/* ============================================================
   STEP 2 — Path cards (horizontal row)
   ============================================================ */
#step-2 { max-width: 900px; }

.kyc-paths {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 12px;
  align-items: stretch;
}

.kyc-path-card {
  flex: 1;
  border-radius: 26px;
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(0,0,0,0.18), 0 4px 24px rgba(0,0,0,0.12);
  transition:
    transform 0.14s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.14s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.kyc-path-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.kyc-path-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 0 rgba(0,0,0,0.18), 0 12px 40px rgba(0,0,0,0.18);
}
.kyc-path-card:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.07s, box-shadow 0.07s;
}

.kyc-path-card-1 { background: linear-gradient(145deg, #2563eb 0%, #1a4fd8 100%); }
.kyc-path-card-2 { background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 100%); }
.kyc-path-card-3 { background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%); }

.kyc-path-body { flex: 1; position: relative; z-index: 1; width: 100%; }
.kyc-path-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}
.kyc-path-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800; color: #fff; line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.kyc-path-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.65);
  line-height: 1.6; margin: 0;
}

/* Start button — full width at bottom */
.kyc-path-action { position: relative; z-index: 1; width: 100%; }
.kyc-path-btn {
  display: flex;
  align-items: center; justify-content: center;
  gap: 7px;
  width: 100%;
  background: #fff; color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 800;
  padding: 13px 16px; border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.kyc-path-card:hover .kyc-path-btn {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}
.kyc-path-card:active .kyc-path-btn {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.kyc-path-bg-num {
  position: absolute; right: 12px; bottom: 4px;
  font-family: 'Syne', sans-serif;
  font-size: 80px; font-weight: 800;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  pointer-events: none; user-select: none;
  letter-spacing: -0.04em;
}

.kyc-explore-all {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  display: inline-block;
  margin-top: 20px;
}
.kyc-explore-all:hover { color: var(--text); }

/* ── CTA buttons ── */
.kyc-cta {
  margin-top: 28px;
  display: flex; flex-direction: column;
  align-items: stretch; gap: 12px;
}
.kyc-btn {
  width: 100%; padding: 17px;
  background: var(--black); color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 700;
  border: none; border-radius: 100px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  /* Chunky 3D */
  box-shadow: 0 6px 0 rgba(0,0,0,0.35);
  transition: transform 0.1s, box-shadow 0.1s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.kyc-btn:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.35);
}
.kyc-btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35);
  transition: transform 0.06s, box-shadow 0.06s;
}
.kyc-btn:disabled {
  opacity: 0.35; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.kyc-btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 0 var(--green-dark);
}
.kyc-btn-green:hover {
  background: #00b36e;
  box-shadow: 0 8px 0 var(--green-dark);
}
.kyc-btn-green:active {
  box-shadow: 0 1px 0 var(--green-dark);
}

.kyc-footer-note {
  font-size: 11px; color: var(--text-muted);
  text-align: center; line-height: 1.6;
}

/* ── Mobile — collapse to vertical ── */
@media (max-width: 640px) {
  .kyc-main { padding: 16px 16px 40px; }

  /* Step 1 — stack vertically on mobile */
  .kyc-options { flex-direction: column; gap: 12px; }
  .kyc-option {
    flex-direction: row;
    text-align: left;
    padding: 20px 18px;
    gap: 16px;
  }
  .kyc-option-icon { width: 54px; height: 54px; font-size: 1.6rem; flex-shrink: 0; }

  /* Step 2 — stack vertically on mobile */
  .kyc-paths { flex-direction: column; }
  .kyc-path-card { padding: 26px 22px 22px; }
  .kyc-path-bg-num { display: none; }
  #step-2 { max-width: 100%; }
}