/* ============================================================
   ID4Africa Demo — Identity Creation (page-specific styles)
   ============================================================ */

/* ── Page header (sticky) ───────────────────────────────────  */
.identity-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(39, 46, 102, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.identity-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.header-left  { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 12px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* ── Hero ─────────────────────────────────────────────────── */
.identity-hero {
  padding: 48px 0 36px;
}

.identity-hero .badge { margin-bottom: 20px; }

.identity-hero h1 {
  max-width: 720px;
  margin-bottom: 16px;
}

.identity-hero .hero-sub {
  max-width: 600px;
  margin-bottom: 0;
  font-size: clamp(16px, 1.4vw, 19px);
}

/* ── Stage layout ─────────────────────────────────────────── */
.identity-stage {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
  padding-bottom: 80px;
}

/* ── Left column ──────────────────────────────────────────── */
.stage-left {
  flex: 0 0 440px;
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 92px;
}

/* ── Step modal ───────────────────────────────────────────── */
.step-modal {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: border-color 0.4s, background 0.4s, opacity 0.18s ease;
}

.step-modal.sm--fading {
  opacity: 0;
}

.sm-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-height: 1em;
}

/* Done badge (hidden by default) */
.sm-done-badge {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ok);
}

.sm-title {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  transition: color 0.4s;
}

.sm-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Done state */
.step-modal.sm--done {
  background: rgba(78, 204, 163, 0.06);
  border-color: rgba(78, 204, 163, 0.38);
}

.step-modal.sm--done .sm-done-badge {
  display: flex;
}

.step-modal.sm--done .sm-title {
  color: var(--ok);
}

/* ── Stage controls ───────────────────────────────────────── */
.stage-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-controls .btn {
  width: 100%;
  justify-content: center;
}

/* ── Phone stage (right) ─────────────────────────────────── */
.phone-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -178px;
}

.phone-wrap {
  height: 80vh;
  max-height: 820px;
  aspect-ratio: 9 / 18.5;
  position: relative;
}

/* ── Phone mockup ────────────────────────────────────────── */
.phone {
  width: 100%;
  height: 100%;
  border-radius: 48px;
  border: 6px solid #1b1b1f;
  background: #f0f4ff;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 32px 72px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Dynamic island */
.phone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #1b1b1f;
  border-radius: 20px;
  z-index: 10;
}

/* Power button (right side) */
.phone::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 22%;
  width: 3px;
  height: 56px;
  background: #2a2a30;
  border-radius: 0 2px 2px 0;
}

/* Volume buttons (left side) */
.phone-wrap::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 18%;
  width: 3px;
  height: 28px;
  background: #2a2a30;
  border-radius: 2px 0 0 2px;
  z-index: 5;
  box-shadow: 0 38px 0 #2a2a30, 0 58px 0 #2a2a30;
}


/* ── Phone status bar (iOS-like) ─────────────────────────── */
.phone-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 11;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  color: #000;
}

.phone-statusbar-time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  padding-left: 6px;
  min-width: 54px;
}

.phone-statusbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
}

.psb-icon { display: block; }
.psb-signal { width: 17px; height: 10px; }
.psb-wifi { width: 15px; height: 11px; }

.psb-battery {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.9;
  margin-left: 2px;
}
.psb-battery::after {
  content: '';
  position: absolute;
  top: 3px;
  right: -3px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
  opacity: 0.6;
}
.psb-battery-fill {
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  width: 80%;
  background: currentColor;
  border-radius: 1.5px;
}

/* Dark variant when screen has dark background */
.phone-screen.ps-dark ~ .phone-statusbar,
.phone.is-dark-status .phone-statusbar { color: #fff; }

/* ── Phone screen ────────────────────────────────────────── */
.phone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.18s ease;
  border-radius: 42px;
  position: relative;
}

.phone-screen.ps-fading {
  opacity: 0;
}

/* ── Phone screen — header bar ───────────────────────────── */
.ps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 22px 10px;
  font-size: 11px;
  color: #64748b;
  flex-shrink: 0;
  font-family: var(--font);
}

.ps-app  { font-weight: 600; font-size: 12px; color: #334155; }
.ps-step { font-size: 11px; color: #94a3b8; }
.ps-time { font-size: 11px; font-weight: 600; }

/* ── Phone screen — scrollable body ─────────────────────── */
.ps-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  min-height: 0;
}

.ps-scroll::-webkit-scrollbar { display: none; }

/* ── Phone screen — visual / SVG area ───────────────────── */
.ps-visual {
  flex-shrink: 0;
  height: 40%;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px 4px;
}

/* Fills remaining space (for steps 2/3/4 where title is above) */
.ps-visual--fill {
  flex: 1;
  height: auto;
  min-height: 0;
  padding: 4px 22px 16px;
}

.ps-visual svg,
.ps-visual .ps-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Phone screen — text area ────────────────────────────── */
.ps-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 22px 24px;
}

/* Title at the top (for steps 2/3/4) */
.ps-text--top {
  padding: 16px 22px 6px;
  flex-shrink: 0;
}

.ps-h1 {
  font-size: 17px;
  font-weight: 700;
  color: #1e2d4f;
  line-height: 1.25;
  margin: 0;
  font-family: var(--font);
}

.ps-p {
  font-size: 12px;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
  font-family: var(--font);
}

.ps-btn-main {
  background: #272e66;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  text-align: center;
  font-family: var(--font);
  margin-top: 4px;
}

.ps-btn-ghost {
  background: none;
  border: 1px solid rgba(56, 76, 155, 0.22);
  border-radius: 12px;
  color: #384C9B;
  font-size: 12px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font);
}

/* ── Phone screen — idle state ───────────────────────────── */
.ps-idle-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 0;
}

.ps-idle-wrap svg {
  width: 100%;
  height: 100%;
  max-height: 280px;
}

/* ── Phone screen — validated list (step 5) ──────────────── */
.ps-validated-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.ps-validated-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: rgba(78, 204, 163, 0.09);
  border: 1px solid rgba(78, 204, 163, 0.32);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #1e2d4f;
  font-family: var(--font);
}

.ps-check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(78, 204, 163, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ecca3;
  font-size: 10px;
  font-weight: 700;
}

/* ── Phone screen — success (step 6) ─────────────────────── */
.ps-success-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 16px 8px;
  flex-shrink: 0;
}

.ps-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Phone screen — Mobile ID card (step 6) ──────────────── */
.ps-id-card {
  background: linear-gradient(135deg, #1a2060 0%, #384C9B 100%);
  border-radius: 13px;
  padding: 13px 14px;
  color: white;
  font-family: var(--font);
  margin-top: 4px;
}

.ps-id-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.7;
}

.ps-id-badge {
  background: rgba(78, 204, 163, 0.25);
  color: #4ecca3;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
}

.ps-id-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.ps-id-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ps-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.ps-id-label { opacity: 0.55; }
.ps-id-value { font-weight: 600; }
.ps-id-value.ps-ok { color: #4ecca3; }

/* ── Passport mockup (step 2) ────────────────────────────── */
.ps-passport-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px 12px;
  min-height: 0;
}

.ps-passport {
  width: 100%;
  background: #f6f0e0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  position: relative;
  font-family: var(--font);
}

.ps-pp-header {
  background: linear-gradient(135deg, #1a3a6b 0%, #2d5a9e 80%, #3d6fae 100%);
  padding: 7px 10px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ps-pp-logo { color: #f0c040; font-size: 14px; }

.ps-pp-country-info { text-align: center; }

.ps-pp-country {
  color: #f0c040;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ps-pp-type {
  color: rgba(255,255,255,0.65);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  margin-top: 1px;
}

.ps-pp-body {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  align-items: flex-start;
}

.ps-pp-photo {
  width: 58px;
  height: 74px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 2px;
  flex-shrink: 0;
}

.ps-pp-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ps-pp-field { display: flex; flex-direction: column; }

.ps-pp-label {
  font-size: 5.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
}

.ps-pp-val {
  font-size: 8.5px;
  font-weight: 700;
  color: #1a1a2e;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.ps-pp-mrz {
  background: #ede7d0;
  padding: 4px 8px 5px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.ps-pp-mrz div {
  font-size: 5.5px;
  font-family: 'Courier New', monospace;
  color: #2a2a2a;
  letter-spacing: 0.06em;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
}

.ps-pp-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(56,76,155,0.8) 40%, rgba(240,131,41,0.9) 50%, rgba(56,76,155,0.8) 60%, transparent 95%);
  animation: pp-scan 2.2s ease-in-out infinite;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(56,76,155,0.4);
}

@keyframes pp-scan {
  0%   { top: 0%; }
  100% { top: 100%; }
}

/* ── Face scan (step 4) ───────────────────────────────────── */
.ps-face-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 28px 16px;
  gap: 10px;
  min-height: 0;
}

.ps-face-frame {
  position: relative;
  width: 100%;
  max-width: 170px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.ps-face-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ps-face-overlay { position: absolute; inset: 0; }

.ps-face-corner { position: absolute; width: 18px; height: 18px; }
.ps-fc-tl { top: 0; left: 0;     border-top:    2.5px solid #F08329; border-left:   2.5px solid #F08329; }
.ps-fc-tr { top: 0; right: 0;    border-top:    2.5px solid #F08329; border-right:  2.5px solid #F08329; }
.ps-fc-bl { bottom: 0; left: 0;  border-bottom: 2.5px solid #F08329; border-left:   2.5px solid #F08329; }
.ps-fc-br { bottom: 0; right: 0; border-bottom: 2.5px solid #F08329; border-right:  2.5px solid #F08329; }

.ps-face-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240,131,41,0.85), transparent);
  animation: face-scan 2.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(240,131,41,0.5);
}

@keyframes face-scan {
  0%, 100% { top: 5%; }
  50%       { top: 92%; }
}

.ps-face-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid #F08329;
  background: rgba(240,131,41,0.4);
  transform: translate(-50%, -50%);
  animation: dot-pulse 1.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.3; transform: translate(-50%, -50%) scale(0.5); }
}

.ps-face-label {
  font-size: 11px;
  color: #4a5568;
  font-family: var(--font);
  text-align: center;
}

/* ── Wallet UI (step 6) ───────────────────────────────────── */
.ps-wallet-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #3730a3;
  min-height: 0;
}

.ps-wallet-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 18px 6px;
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-family: var(--font);
}

.ps-wallet-logo-bar {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.01em;
  padding: 2px 0 10px;
  flex-shrink: 0;
  font-family: var(--font);
}

.ps-wallet-logo-id { color: #a3e635; }

.ps-wallet-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px 6px;
  min-height: 0;
}

.ps-wallet-scroll::-webkit-scrollbar { display: none; }

.ps-wallet-card {
  background: #f0ede8;
  border-radius: 18px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.ps-wallet-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

.ps-wallet-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a3a5c;
  font-family: var(--font);
  margin-top: 2px;
}

.ps-wallet-idnum {
  font-size: 11px;
  color: #5a6a7a;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
}

.ps-wallet-scan-label {
  background: #fef3e0;
  color: #92400e;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  text-align: center;
  font-family: var(--font);
  width: 100%;
}

.ps-wallet-qr {
  width: 86px;
  height: 86px;
  background: white;
  border-radius: 6px;
  padding: 4px;
}

.ps-wallet-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 10px;
  background: rgba(0,0,0,0.22);
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ps-wallet-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  font-family: var(--font);
  min-width: 48px;
}

.ps-wallet-nav-item.active { color: white; }

/* ── Footer ───────────────────────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin-top: auto;
}

.page-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-note { font-size: 13px; color: var(--text-faint); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stage-left { flex: 0 0 320px; }
  .phone-wrap { height: 75vh; }
}

@media (max-width: 900px) {
  .identity-stage {
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - 48px);
  }
  .stage-left {
    position: static;
    flex: 0 0 auto;
    margin-left: 0;
  }
  .phone-stage { justify-content: center; }
  .phone-wrap { height: 70vh; max-height: 680px; }
}

@media (max-width: 640px) {
  .identity-header .container { height: 60px; }
  .breadcrumb { display: none; }
  .identity-hero { padding: 32px 0 24px; }
  .phone-wrap { height: 65vh; }
}

/* ============================================================
   MYID App Screens — Figma Design System
   Colors: #005AE1 (blue), #000A1E (text/dark), #9FD2E0 (border)
   Font: Albert Sans → system-ui fallback (offline)
   ============================================================ */

/* ── Base wrapper ───────────────────────────────────────────── */
.myid-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #ffffff;
  font-family: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #000a1e;
  overflow: hidden;
  border-radius: inherit;
}
.myid-app--bg-light { background: #f5fbfc; }

/* ── Dark header bar ────────────────────────────────────────── */
.myid-header {
  background: #000a1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  flex-shrink: 0;
  height: 54px;
}
.myid-nav-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.myid-logo-text {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
}
.myid-logo-text span { color: #005ae1; }

/* ── Step bar (title + STEP X/6) ───────────────────────────── */
.myid-step-bar {
  text-align: center;
  padding: 10px 16px 0;
  flex-shrink: 0;
}
.myid-step-title { font-size: 13px; font-weight: 400; color: #000a1e; }
.myid-step-num   { font-size: 10px; font-weight: 700; color: #000a1e; letter-spacing: 0.07em; margin-top: 1px; }

/* ── Progress dots ──────────────────────────────────────────── */
.myid-prog { display: flex; gap: 5px; justify-content: center; padding: 8px 0 4px; flex-shrink: 0; }
.myid-prog-seg { width: 32px; height: 4px; border-radius: 2px; background: #e0ecf6; }
.myid-prog-seg--on { background: #005ae1; }

/* ── Main content container ─────────────────────────────────── */
.myid-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 20px 12px;
  overflow: hidden;
  min-height: 0;
}
.myid-heading { font-size: 13.5px; font-weight: 500; color: #000a1e; line-height: 1.4; margin: 0 0 10px; }
.myid-subtext  { font-size: 12px; color: #000a1e; line-height: 1.5; margin: 0 0 12px; }

/* ── iOS-style toggle ───────────────────────────────────────── */
.myid-toggles { display: flex; flex-direction: column; flex: 1; }
.myid-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.myid-toggle-row span { font-size: 11px; color: #000a1e; line-height: 1.4; flex: 1; }
.myid-divider  { height: 1px; background: #9fd2e0; }
.myid-toggle   { width: 42px; height: 24px; border-radius: 12px; background: #c8dff0; position: relative; flex-shrink: 0; }
.myid-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.myid-toggle--on { background: #000a1e; }
.myid-toggle--on::after { transform: translateX(18px); }

/* ── CTA blue button ────────────────────────────────────────── */
.myid-btn {
  background: #005ae1;
  color: #fff;
  border-radius: 14px;
  padding: 13px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
  flex-shrink: 0;
}

/* ── Scan card (Document Scan) ──────────────────────────────── */
.myid-scan-card {
  background: #f0f6ff;
  border-radius: 14px;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.myid-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #005ae1;
  border-style: solid;
  border-width: 0;
}
.myid-corner--tl { top: 10px; left: 10px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 4px; }
.myid-corner--tr { top: 10px; right: 10px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 4px; }
.myid-corner--bl { bottom: 10px; left: 10px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 4px; }
.myid-corner--br { bottom: 10px; right: 10px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 4px; }

/* ID card placeholder inside scan card */
.myid-id-mock {
  width: 75%;
  max-width: 180px;
  aspect-ratio: 8.5 / 5.4;
  background: linear-gradient(135deg, #c8d9f0 0%, #a8c4e4 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.myid-id-mock::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px;
  width: 28%;
  height: 65%;
  background: rgba(255,255,255,0.38);
  border-radius: 3px;
}
.myid-id-mock::after {
  content: '';
  position: absolute;
  top: 12px; left: 42%; right: 8px;
  height: 4px;
  background: rgba(255,255,255,0.65);
  border-radius: 2px;
  box-shadow: 0 8px 0 rgba(255,255,255,0.55), 0 16px 0 rgba(255,255,255,0.4);
}
/* Scan line animation */
.myid-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #005ae1 30%, #005ae1 70%, transparent 100%);
  animation: myidScan 2.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes myidScan {
  0%,100% { top: 8%; opacity: 0.8; }
  50%      { top: 88%; opacity: 1; }
}

/* ── NFC Illustration ───────────────────────────────────────── */
.myid-nfc-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }

/* ── Face recognition card ──────────────────────────────────── */
.myid-face-card {
  background: #f0f6ff;
  border-radius: 14px;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.myid-inner-phone {
  width: 100px;
  height: 156px;
  border: 2px solid #c0cedc;
  border-radius: 14px;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.myid-inner-phone::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 5px;
  background: #d0dde8; border-radius: 3px;
}
.myid-face-frame { width: 60px; height: 60px; position: relative; }
.myid-fc { position: absolute; width: 12px; height: 12px; border-color: #000a1e; border-style: solid; border-width: 0; }
.myid-fc--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.myid-fc--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.myid-fc--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.myid-fc--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.myid-face-scanline {
  position: absolute;
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #005ae1, transparent);
  animation: myidScan 2.4s ease-in-out infinite;
}

/* ── Validation checklist ───────────────────────────────────── */
.myid-checklist { display: flex; flex-direction: column; gap: 7px; margin: 8px 0; }
.myid-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(0,90,225,0.04);
  border: 1px solid #9fd2e0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  color: #000a1e;
}
.myid-check-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #005ae1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px; font-weight: 700;
  flex-shrink: 0;
}

/* ── Wallet screen ──────────────────────────────────────────── */
.myid-wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 6px;
  flex-shrink: 0;
}
.myid-wallet-title { font-size: 15px; font-weight: 500; color: #000a1e; }
.myid-settings-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid #9fd2e0;
  border-radius: 20px;
  font-size: 10px;
  color: #000a1e;
}

/* Blue ID card */
.myid-wallet-card {
  background: linear-gradient(135deg, #0086ff 0%, #005ae1 100%);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 0 20px 10px;
  flex-shrink: 0;
}
.myid-wallet-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.myid-wallet-card-info { flex: 1; }
.myid-wc-label { font-size: 10px; color: rgba(255,255,255,0.7); margin-bottom: 1px; }
.myid-wc-name  { font-size: 17px; font-weight: 500; color: #fff; margin-bottom: 6px; line-height: 1.2; }
.myid-wc-val   { font-size: 12px; color: #fff; margin-bottom: 6px; }
.myid-wallet-photo {
  width: 46px; height: 54px;
  border-radius: 8px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.myid-wallet-card-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.myid-expiry-dot { width: 7px; height: 7px; border-radius: 50%; background: #4cff00; flex-shrink: 0; }
.myid-expiry-txt { font-size: 10px; color: #fff; font-weight: 500; }
.myid-card-watermark { position: absolute; bottom: 10px; right: 12px; opacity: 0.18; }

/* Contact row */
.myid-contact-row {
  display: flex;
  flex-direction: column;
  padding: 0 20px 10px;
  flex-shrink: 0;
}
.myid-contact-lbl { font-size: 10px; color: rgba(0,10,30,0.5); margin-bottom: 2px; }
.myid-contact-val {
  font-size: 13px; color: #000a1e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #9fd2e0;
}

/* History button */
.myid-history-btn {
  background: #0086ff;
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  margin: 4px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Home indicator — masqué (supprimé du design) ──────────── */
.myid-home { display: none; }

/* ── Welcome / Idle screen ──────────────────────────────────── */
.myid-idle {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #fff;
  font-family: 'Albert Sans', system-ui, sans-serif;
  overflow: hidden;
  border-radius: inherit;
}
.myid-idle-top {
  text-align: center;
  padding: 46px 20px 0;
  flex-shrink: 0;
}
.myid-idle-step-title { font-size: 13px; color: #000a1e; }
.myid-idle-step-num   { font-size: 10px; font-weight: 700; color: #000a1e; margin-top: 1px; letter-spacing: 0.07em; }
.myid-idle-heading    { font-size: 17px; font-weight: 500; color: #000a1e; text-align: left; padding: 14px 20px 0; flex-shrink: 0; }
.myid-idle-sub        { font-size: 12px; color: #000a1e; line-height: 1.45; padding: 5px 20px 0; flex-shrink: 0; }
.myid-idle-card {
  flex: 1;
  min-height: 0;
  background: #f0f6ff;
  border-radius: 14px;
  margin: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}
.myid-idle-card-lbl { font-size: 12px; color: #6b7a9a; }
.myid-idle-btn { background: #005ae1; color: #fff; border-radius: 14px; padding: 13px; text-align: center; font-size: 13px; font-weight: 500; margin: 0 20px 10px; flex-shrink: 0; }

/* ── Splash screen (Figma: "Splash") ────────────────────────── */
.myid-splash {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  background: linear-gradient(202deg, #2020aa 1%, #0d0d44 68%);
  font-family: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow: hidden;
  align-items: center;
}

.myid-splash-brand {
  margin-top: 80px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-align: center;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.myid-splash-brand em {
  font-style: italic;
}

.myid-splash-tagline {
  font-size: 32px;
  font-weight: 700;
  color: white;
  text-align: center;
  line-height: 1.28;
  padding: 14px 28px 0;
  margin: 0;
  flex-shrink: 0;
}

.myid-splash-fp {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 10px;
}

.myid-splash-cta {
  position: absolute;
  bottom: 36px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f08329;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(240, 131, 41, 0.55);
}

/* ── "Get Started" / Terms screen (Figma: "Terms and Conditions") */
.myid-gs-header {
  display: flex;
  align-items: center;
  padding: 50px 16px 0;
  flex-shrink: 0;
}

.myid-new-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000d1d;
}

.myid-gs-body {
  flex: 1;
  padding: 16px 24px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.myid-gs-title {
  font-size: 22px;
  font-weight: 700;
  color: #000d1d;
  line-height: 1.3;
  margin: 0 0 8px;
}

.myid-gs-sub {
  font-size: 12px;
  color: rgba(29, 29, 29, 0.4);
  line-height: 1.55;
  margin: 0 0 20px;
  flex-shrink: 0;
}

.myid-feat-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.myid-feat-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.myid-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 90, 225, 0.06);
  border: 1px solid rgba(0, 90, 225, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Figma icon assets — layered PNGs */
.myid-feat-icon-img {
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}

.myid-feat-icon-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.myid-feat-icon-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.myid-feat-icon-pin {
  position: absolute;
  width: 44%;
  height: 44%;
  bottom: -4px;
  right: -4px;
  object-fit: contain;
}

.myid-feat-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.myid-feat-title {
  font-size: 14px;
  font-weight: 600;
  color: #000d1d;
  line-height: 1.3;
}

.myid-feat-desc {
  font-size: 11px;
  color: rgba(0, 13, 29, 0.4);
  line-height: 1.5;
}

.myid-gs-footer {
  padding: 12px 24px 12px;
  flex-shrink: 0;
}

.myid-gs-legal {
  font-size: 10.5px;
  color: rgba(29, 29, 29, 0.4);
  line-height: 1.55;
  margin: 0 0 12px;
}

.myid-gs-legal span {
  color: #000d1d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.myid-new-btn {
  background: linear-gradient(182deg, #2020aa 1%, #0d0d44 68%);
  color: white;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  margin: 0 24px 8px;
}

/* ── Splash fingerprint image ──────────────────────────────── */
.myid-splash-fp-img {
  max-width: 220px;
  width: 78%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── Document Scan — dark camera screen ─────────────────────── */
.myid-scan-dark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.myid-scan-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.myid-scan-dark-top {
  padding: 50px 16px 0;
  flex-shrink: 0;
}

.myid-scan-dark-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  padding: 12px 16px 4px;
  flex-shrink: 0;
  font-family: 'Albert Sans', system-ui, sans-serif;
  margin: 0;
}

.myid-scan-dark-green { color: #14e2df; }

.myid-scan-dark-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  min-height: 0;
}

.myid-scan-dark-corners {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 343 / 240;
}

.myid-dc {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: white;
  border-style: solid;
  border-width: 0;
}
.myid-dc--tl { top: 0;    left: 0;  border-top-width: 3px;    border-left-width: 3px;  border-top-left-radius: 4px; }
.myid-dc--tr { top: 0;    right: 0; border-top-width: 3px;    border-right-width: 3px; border-top-right-radius: 4px; }
.myid-dc--bl { bottom: 0; left: 0;  border-bottom-width: 3px; border-left-width: 3px;  border-bottom-left-radius: 4px; }
.myid-dc--br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 4px; }

.myid-scan-dark-card {
  position: absolute;
  inset: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.myid-scan-dark-card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.myid-scan-dark-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  flex-shrink: 0;
  font-size: 12px;
  color: white;
  background: rgba(243, 243, 243, 0.08);
  border-radius: 24px;
  margin: 0 auto 14px;
  width: fit-content;
  font-family: 'Albert Sans', system-ui, sans-serif;
}

.myid-home--light::after { background: rgba(255, 255, 255, 0.35); }

/* ── NFC Illustration image ──────────────────────────────────── */
.myid-nfc-illu {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 8px;
  overflow: hidden;
}

.myid-nfc-illu img {
  max-height: 100%;
  max-width: 90%;
  object-fit: contain;
  display: block;
}

/* NFC scene: ID card + phone hovering over it (Figma 14:1755) */
.myid-nfc-scene {
  position: relative;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.myid-nfc-card {
  width: 88%;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

.myid-nfc-phone {
  width: 68%;
  max-width: 170px;
  height: auto;
  display: block;
  margin-top: -32px;
  position: relative;
  z-index: 1;
}

/* ── NFC Wallet-style layout (iPhone Wallet inspired) ───────── */
.myid-nfc-wallet {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  border-radius: inherit;
}

.myid-nfc-wallet-card {
  flex: 0 0 auto;
  margin: 8px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: myidCardFadeIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.myid-nfc-wallet-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@keyframes myidCardFadeIn {
  0%   { opacity: 0; transform: translateY(-80px) scale(0.85); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.myid-nfc-wallet-bottom {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px;
}

.myid-nfc-wallet-icon {
  width: 84px;
  height: auto;
  display: block;
  object-fit: contain;
  animation: myidNfcBounce 1.4s ease-in-out infinite;
}

@keyframes myidNfcBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Facematch single illustration (Part 4) */
.myid-facematch-wrap {
  position: relative;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(37, 209, 127, 0.25), 0 0 0 6px rgba(37, 209, 127, 0.12);
}

.myid-facematch-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.myid-facematch-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #25d17f 30%, #25d17f 70%, transparent 100%);
  box-shadow: 0 0 12px rgba(37, 209, 127, 0.7);
  animation: myidFaceScan 2.2s ease-in-out infinite;
  z-index: 2;
}

@keyframes myidFaceScan {
  0%, 100% { top: 8%;  opacity: 0.85; }
  50%      { top: 88%; opacity: 1; }
}

/* ── Face recognition — Figma style ─────────────────────────── */
.myid-face-new {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: white;
  font-family: 'Albert Sans', system-ui, sans-serif;
  overflow: hidden;
  border-radius: inherit;
}

.myid-face-illu {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 12px;
}

.myid-face-circle-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

/* Generic layer base */
.myid-face-layer {
  position: absolute;
  display: block;
}

/* Gray background circle — fills the whole wrap */
.myid-face-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Person illustration — centered, slightly smaller */
.myid-face-person {
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
  object-position: center bottom;
}

/* Green body/shirt union — bottom half of the circle */
.myid-face-body {
  left: 0;
  right: 0;
  bottom: 4px;
  width: 100%;
  height: 55%;
  object-fit: contain;
  object-position: center bottom;
}

/* Horizontal green scan line — centered vertically ~40% */
.myid-face-scanline {
  left: 5%;
  right: 5%;
  top: 38%;
  width: 90%;
  height: auto;
  object-fit: contain;
}

/* Bottom gradient overlay */
.myid-face-overlay {
  left: 5%;
  right: 5%;
  bottom: 4px;
  width: 90%;
  height: 40%;
  object-fit: fill;
}

/* Green circle outline — covers entire wrap */
.myid-face-ring {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tip icon images */
.myid-face-tip-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.myid-face-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 8px;
  min-height: 0;
  overflow: hidden;
}

.myid-face-tips {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
  flex-shrink: 0;
}

.myid-face-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 88px;
}

.myid-face-tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 24px;
  background: rgba(0, 13, 29, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.myid-face-tip-label {
  font-size: 11px;
  color: #000d1d;
  text-align: center;
  line-height: 1.3;
  margin: 0;
}

/* ── Phone number / OTP / PIN — Figma style ──────────────────── */
.myid-new {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: white;
  font-family: 'Albert Sans', system-ui, sans-serif;
  overflow: hidden;
  border-radius: inherit;
}

.myid-new-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 24px 20px;
  min-height: 0;
}

.myid-new-title {
  font-size: 21px;
  font-weight: 700;
  color: #000d1d;
  line-height: 1.3;
  text-align: center;
  margin: 0 0 8px;
}

.myid-new-sub {
  font-size: 13px;
  color: rgba(0, 10, 30, 0.6);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.45;
  width: 100%;
}

.myid-new-phone-field {
  display: flex;
  align-items: center;
  background: rgba(159, 210, 224, 0.1);
  border: 0.92px solid rgba(159, 210, 224, 0.4);
  border-radius: 9px;
  padding: 0 14px;
  height: 56px;
  width: 100%;
}

.myid-new-country {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #000a1e;
  flex-shrink: 0;
}

.myid-new-sep {
  width: 1px;
  height: 34px;
  background: rgba(159, 210, 224, 0.5);
  margin: 0 12px;
  flex-shrink: 0;
}

.myid-new-phone-text {
  font-size: 15px;
  color: #000a1e;
  flex: 1;
}

.myid-new-phone-text.placeholder { color: rgba(0, 10, 30, 0.4); }

.myid-new-otp-hint {
  font-size: 12px;
  color: rgba(29, 29, 29, 0.4);
  text-align: center;
  margin: 0 0 10px;
}

.myid-new-otp-row {
  display: flex;
  gap: 7px;
  justify-content: center;
}

.myid-new-otp-box {
  width: 44px;
  height: 56px;
  border-radius: 9px;
  background: rgba(159, 210, 224, 0.1);
  border: 0.9px solid rgba(159, 210, 224, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #000a1e;
}

.myid-new-pin-row {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 20px;
}

.myid-new-pin-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(159, 210, 224, 0.1);
  border: 0.86px solid rgba(159, 210, 224, 0.4);
  transition: background 0.15s, border-color 0.15s;
}

.myid-new-pin-dot.filled {
  background: #288ce6;
  border-color: #288ce6;
}

/* ── Congratulations / Identity Created ──────────────────────── */
.myid-congrats {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: white;
  font-family: 'Albert Sans', system-ui, sans-serif;
  overflow: hidden;
  border-radius: inherit;
  align-items: center;
  padding: 0 24px;
}

.myid-congrats-title {
  font-size: 22px;
  font-weight: 700;
  color: #000d1d;
  text-align: center;
  margin: 0;
  padding-top: 60px;
  flex-shrink: 0;
}

.myid-congrats-sub {
  font-size: 13px;
  color: rgba(29, 29, 29, 0.4);
  text-align: center;
  margin: 6px 0 18px;
  flex-shrink: 0;
}

.myid-congrats { perspective: 1100px; }

.myid-id-card {
  background: #0086ff url('../assets/figma/card-identity.svg') center / cover no-repeat;
  aspect-ratio: 1.586;
  border-radius: 9px;
  padding: 18px 16px 16px;
  width: 100%;
  position: relative;
  box-shadow: inset 0 0 48px rgba(40, 140, 230, 0.2),
              0 0 0 0.86px rgba(0, 10, 30, 0.1),
              0 18px 32px -12px rgba(0, 50, 120, 0.55);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  transform-origin: center center;
  animation: myid-card-tilt 6s cubic-bezier(0.5, -0.4, 0.5, 1.4) infinite;
  will-change: transform;
}

/* Glossy shiny sweep */
.myid-id-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 49%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.35) 51%,
    transparent 60%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 4;
  animation: myid-card-shine 6s ease-in-out infinite;
}

@keyframes myid-card-tilt {
  0%, 100% { transform: rotateY(-22deg) rotateX(10deg); }
  50%      { transform: rotateY(22deg)  rotateX(-8deg); }
}

@keyframes myid-card-shine {
  0%, 100% { background-position: 130% 0; }
  50%      { background-position: -30% 0; }
}

.myid-id-card-photo {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 70px;
  height: 94px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(159, 210, 224, 0.2);
}

.myid-id-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.myid-id-card-label,
.myid-id-card-value,
.myid-id-card-expiry {
  position: relative;
  z-index: 5;
}

.myid-id-card-photo { z-index: 5; }

.myid-id-card-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1;
}

.myid-id-card-value {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin: 2px 0 10px;
  line-height: 1.3;
  max-width: calc(100% - 94px);
}

.myid-id-card-expiry {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(159, 210, 224, 0.15);
  border: 0.86px solid rgba(159, 210, 224, 0.2);
  border-radius: 99px;
  padding: 4px 10px;
  width: fit-content;
  margin-top: 2px;
}

.myid-id-expiry-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #25d17f;
  flex-shrink: 0;
}

.myid-id-expiry-txt {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
}

.myid-id-expiry-val {
  font-size: 10px;
  font-weight: 600;
  color: white;
}
