/* Страница «Создание кошелька» (create.html).
   Макеты экранов телефона в шагах 3–6 — классы .ph-N в конце файла (декорация, собраны из исходной вёрстки). */

/* Шапка: вместо ссылок — «Назад», кнопка меню сразу после языка */
.nav-flow .nav-in { gap: 24px; }
.nav-back { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: #616161; }
.nav-flow .lang-wrap { margin-left: auto; }

.cw-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 56px 40px 96px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.cw-col { display: flex; flex-direction: column; gap: 40px; min-width: 0; }

/* Шаги */
.cw-step { display: flex; flex-direction: column; gap: 28px; padding-top: 56px; border-top: 1px solid #EEEEF0; }
.cw-step.is-first { gap: 32px; padding-top: 0; border-top: 0; }
.cw-step-head { display: flex; align-items: center; gap: 12px; }
.cw-step-num { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #0500FF; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.cw-step-num.is-done { background: #48FF91; color: #1B1B1C; }
.cw-h1 { margin: 0; font-weight: 800; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.035em; }
.cw-sub { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: #616161; max-width: 56ch; }
.cw-h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.cw-p { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: #616161; max-width: 60ch; }

/* Шаг 1: выбор длины фразы */
.cw-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cw-opt { text-align: left; font: inherit; color: #1B1B1C; cursor: pointer; border-radius: 28px; border: 2px solid #EEEEF0; background: #FFFFFF; padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 230px; }
.cw-opt:hover { border-color: #0500FF; }
.cw-opt[aria-checked="true"] { border-color: #0500FF; background: #F2F2FF; }
.cw-opt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cw-opt-count { display: flex; align-items: baseline; gap: 10px; }
.cw-opt-n { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 64px; line-height: 0.95; letter-spacing: -0.04em; color: #0500FF; }
.cw-opt-words { font-size: 18px; font-weight: 600; }
.cw-radio { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid #EEEEF0; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.cw-radio-dot { width: 12px; height: 12px; border-radius: 50%; background: transparent; }
.cw-opt[aria-checked="true"] .cw-radio { border-color: #0500FF; }
.cw-opt[aria-checked="true"] .cw-radio-dot { background: #0500FF; }
.cw-opt-tag { display: inline-flex; align-self: flex-start; height: 30px; align-items: center; padding: 0 12px; border-radius: 999px; background: #FFFFFF; color: #0500FF; font-size: 13px; font-weight: 700; }
.cw-opt-tag.is-green { background: #E6FFF0; color: #0A7A3C; }
.cw-opt-desc { font-size: 16px; line-height: 1.55; color: #616161; margin-top: auto; }

.captcha { display: flex; justify-content: center; min-height: 65px; }
.cw-create { height: 64px; width: 100%; border-radius: 999px; border: 0; background: #0500FF; color: #FFFFFF; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; }
.cw-create:hover { background: #2E2BFF; }
.cw-create:active { background: #0400CC; }
.cw-error { margin: -16px 0 0; text-align: center; font-size: 15px; line-height: 1.5; font-weight: 600; color: #D0021B; }
.cw-local { margin: -12px 0 0; text-align: center; font-size: 14px; color: #616161; }

/* Шаг 2: фраза */
.cw-box { border-radius: 28px; background: #F5F5F7; padding: 20px 24px 24px; }
.cw-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cw-count { font-size: 15px; font-weight: 700; color: #1B1B1C; }
.cw-tools { display: flex; gap: 8px; }
.cw-tool { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #E2E2E6; background: #FFFFFF; color: #1B1B1C; font: inherit; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer; }
.cw-tool:not(:disabled):hover { border-color: #0500FF; color: #0500FF; }
.cw-tool:disabled { opacity: 0.45; cursor: not-allowed; }
.cw-grid-wrap { position: relative; }

.seed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seed-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seed-grid.is-ghost { opacity: 0.6; }
.seed-grid.is-words { transition: filter 0.2s; }
.is-blurred { filter: blur(7px); user-select: none; }
.seed-cell { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px #EEEEF0; }
.seed-cell.is-ghost { background: transparent; box-shadow: none; border: 1.5px dashed #D4D4DA; box-sizing: border-box; }
.seed-n { width: 22px; font-size: 13px; font-weight: 700; color: #9A9AA3; text-align: right; }
.seed-bar { height: 8px; width: 60%; border-radius: 4px; background: #E2E2E6; }
.seed-w { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }

.cw-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cw-empty-pill { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 12px 30px rgba(27,27,28,0.10); font-size: 15px; font-weight: 600; color: #1B1B1C; text-align: center; }

.cw-words { display: flex; flex-direction: column; gap: 28px; }
.cw-warn { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 20px; background: #FFF4E0; color: #7A4B00; }
.cw-warn svg { flex: none; margin-top: 1px; }
.cw-warn span { font-size: 15px; line-height: 1.55; font-weight: 500; }
.cw-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.cw-veil-icon { width: 56px; height: 56px; border-radius: 18px; background: #FFFFFF; color: #0500FF; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(27,27,28,0.12); }
.cw-veil-btn { height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: #1B1B1C; color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.cw-veil-btn:hover { background: #0500FF; }
.cw-veil-note { font-size: 14px; color: #616161; }

.cw-line-block { display: flex; flex-direction: column; gap: 10px; }
.cw-line-label { font-size: 14px; font-weight: 600; color: #616161; }
.cw-line-box { display: flex; flex-direction: column; border-radius: 20px; border: 2px solid #0500FF; background: #FFFFFF; overflow: hidden; }
.cw-line { padding: 16px 20px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 16px; line-height: 1.6; color: #1B1B1C; word-spacing: 2px; transition: filter 0.2s; }
.cw-line-copy { height: 52px; padding: 0 22px; border: 0; background: #0500FF; color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.cw-line-copy.is-copied { background: #48FF91; color: #1B1B1C; }
.cw-line-copy:hover { background: #2E2BFF; color: #FFFFFF; }

.cw-restart-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cw-restart { height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: #616161; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cw-restart:hover { color: #0500FF; }
.cw-saved { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 20px; border: 1px solid #EEEEF0; cursor: pointer; font-size: 16px; font-weight: 500; }
.cw-saved input { width: 22px; height: 22px; margin: 0; accent-color: #0500FF; flex: none; cursor: pointer; }

/* Боковая колонка */
.cw-aside { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; }
.cw-what { border-radius: 28px; background: #F5F5F7; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.cw-what-h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.cw-what-p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #616161; }
.cw-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.cw-rule { display: flex; gap: 14px; align-items: flex-start; }
.cw-rule-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #FFFFFF; color: #0500FF; display: flex; align-items: center; justify-content: center; }
.cw-rule-text { display: flex; flex-direction: column; gap: 4px; }
.cw-rule-t { font-size: 16px; font-weight: 700; }
.cw-rule-d { font-size: 14px; line-height: 1.5; color: #616161; }
.cw-has { border-radius: 28px; background: #0500FF; color: #FFFFFF; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.cw-has-t { font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.cw-has-d { font-size: 15px; line-height: 1.5; color: #FFFFFF; }
.cw-import { align-self: flex-start; margin-top: 4px; height: 48px; padding: 0 22px; border-radius: 999px; background: #48FF91; color: #1B1B1C; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cw-import:hover { background: #FFFFFF; color: #1B1B1C; }

@media (max-width: 768px) {
  .nav-flow .nav-in { gap: 10px; }
  .nav-flow .lang-list { width: 220px; box-shadow: 0 16px 48px rgba(27,27,28,0.16); }
  .nav-flow .lang-opt { min-height: 48px; padding: 0 14px; font-size: 16px; }
  .cw-main { padding: 32px 16px 64px; grid-template-columns: minmax(0, 1fr); }
  .cw-opts { gap: 10px; grid-template-columns: minmax(0, 1fr); }
  .cw-opt { padding: 20px; gap: 14px; min-height: 0; }
  .cw-opt-n { font-size: 48px; }
  .seed-grid, .seed-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-aside { position: static; }
}

/* ---------- Макеты экранов телефона (шаги 3–6) ---------- */
.ph-8 { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #48FF91; opacity: 0.35; right: -90px; top: -120px; }
.ph-9 { position: relative; width: 300px; height: 620px; border-radius: 48px; background: #111113; padding: 10px; box-sizing: border-box; box-shadow: 0 30px 60px rgba(5,0,255,0.18); }
.ph-10 { position: relative; width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: #CDCDD0; font-family: -apple-system, 'SF Pro Text', 'Onest', sans-serif; color: #1B1B1C; }
.ph-11 { height: 40px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.ph-12 { display: flex; gap: 5px; align-items: center; }
.ph-13 { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid #1B1B1C; box-sizing: border-box; padding: 1px; }
.ph-14 { display: block; width: 50%; height: 100%; background: #1B1B1C; border-radius: 1px; }
.ph-15 { margin: 0 8px; height: 100%; border-radius: 28px 28px 0 0; background: #D5D5D8; padding: 14px 14px 0; }
.ph-16 { display: flex; align-items: center; gap: 8px; }
.ph-17 { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #C4C4C8; display: flex; align-items: center; justify-content: center; }
.ph-18 { flex: 1; text-align: center; font-size: 15px; font-weight: 600; }
.ph-19 { margin-top: 18px; font-size: 13px; font-weight: 600; }
.ph-20 { margin-top: 14px; display: flex; flex-direction: column; gap: 16px; }
.ph-21 { width: 32px; height: 32px; border-radius: 50%; background: #8BC34A; opacity: 0.55; flex: none; }
.ph-22 { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ph-23 { height: 9px; width: 55%; border-radius: 5px; background: #B9B9BD; }
.ph-24 { height: 7px; width: 35%; border-radius: 4px; background: #C6C6CA; }
.ph-25 { width: 32px; height: 32px; border-radius: 50%; background: #9C6BFF; opacity: 0.55; flex: none; }
.ph-26 { width: 32px; height: 32px; border-radius: 50%; background: #2F2BFF; opacity: 0.55; flex: none; }
.ph-27 { position: absolute; left: 0; right: 0; bottom: 0; height: 330px; background: #FFFFFF; border-radius: 30px 30px 0 0; padding: 14px 18px 0; box-sizing: border-box; display: flex; flex-direction: column; }
.ph-28 { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; }
.ph-29 { font-size: 15px; font-weight: 600; }
.ph-30 { position: absolute; right: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: #EEEEF0; display: flex; align-items: center; justify-content: center; }
.ph-31 { width: 130px; height: auto; align-self: center; margin: 12px 0 18px; }
.ph-32 { display: flex; flex-direction: column; gap: 18px; }
.ph-33 { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #3328FF; display: flex; align-items: center; justify-content: center; }
.ph-34 { display: flex; flex-direction: column; gap: 2px; }
.ph-35 { font-size: 14px; font-weight: 600; }
.ph-36 { font-size: 11.5px; color: #8A8A92; }
.ph-37 { display: flex; align-items: center; gap: 12px; margin: -6px -8px; padding: 6px 8px; border-radius: 16px; box-shadow: 0 0 0 2px #0500FF; background: #F7F7FF; }
.ph-38 { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #EEEDFF; display: flex; align-items: center; justify-content: center; }
.ph-39 { position: relative; width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: #FFFFFF; font-family: -apple-system, 'SF Pro Text', 'Onest', sans-serif; color: #1B1B1C; display: flex; flex-direction: column; }
.ph-40 { flex: 1; background: #FFFFFF; border-radius: 28px 28px 0 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 22px; }
.ph-41 { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #EEEEF0; display: flex; align-items: center; justify-content: center; }
.ph-42 { flex: 1; text-align: center; font-size: 15px; font-weight: 600; margin-right: 46px; }
.ph-43 { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }
.ph-44 { display: flex; align-items: center; gap: 14px; }
.ph-45 { display: flex; align-items: center; gap: 14px; margin: -6px -8px; padding: 6px 8px; border-radius: 16px; box-shadow: 0 0 0 2px #0500FF; background: #F7F7FF; }
.ph-46 { align-self: flex-start; height: 40px; padding: 0 16px; border-radius: 999px; background: #EEEEF0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ph-47 { position: relative; width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: linear-gradient(180deg, #D9CFF2 0%, #E6DDF7 100%); font-family: -apple-system, 'SF Pro Text', 'Onest', sans-serif; color: #1B1B1C; display: flex; flex-direction: column; }
.ph-48 { flex: 1; padding: 6px 16px 18px; display: flex; flex-direction: column; }
.ph-49 { display: flex; justify-content: space-between; }
.ph-50 { width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(255,255,255,0.45); display: flex; align-items: center; justify-content: center; }
.ph-51 { margin-top: 18px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.ph-52 { position: relative; margin-top: 16px; height: 180px; border-radius: 16px; border: 1px solid rgba(27,27,28,0.18); background: rgba(255,255,255,0.35); display: flex; align-items: flex-start; justify-content: flex-start; padding: 14px; box-sizing: border-box; }
.ph-53 { font-size: 14px; font-weight: 500; line-height: 1.55; color: #1B1B1C; word-spacing: 1px; }
.ph-54 { display: inline-block; width: 1.5px; height: 15px; background: #2A1FE0; vertical-align: -2px; margin-left: 2px; }
.ph-55 { position: absolute; right: 12px; bottom: 12px; height: 30px; padding: 0 14px; border-radius: 999px; background: #2A1FE0; color: #FFFFFF; font-size: 13px; font-weight: 600; display: flex; align-items: center; }
.ph-56 { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0 10px; }
.ph-57 { font-size: 12px; line-height: 1.45; color: #4A4A52; }
.ph-58 { margin-top: 22px; height: 46px; border-radius: 999px; background: #2A1FE0; color: #FFFFFF; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #E6DDF7, 0 0 0 5px #0500FF; }
.ph-60 { flex: 1; padding: 4px 16px 0; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.ph-61 { display: flex; align-items: center; justify-content: space-between; }
.ph-62 { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #F2F2F4; font-size: 13px; font-weight: 600; }
.ph-63 { width: 16px; height: 16px; border-radius: 50%; background: #48FF91; }
.ph-64 { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; }
.ph-65 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.ph-66 { font-size: 12px; color: #8A8A92; }
.ph-67 { display: grid; grid-template-columns: repeat(4, 1fr); }
.ph-68 { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ph-69 { width: 46px; height: 46px; border-radius: 50%; background: #EEEDFF; display: flex; align-items: center; justify-content: center; }
.ph-70 { font-size: 11px; font-weight: 600; }
.ph-71 { display: flex; gap: 18px; border-bottom: 1px solid #EEEEF0; font-size: 13px; font-weight: 600; }
.ph-72 { padding-bottom: 8px; box-shadow: inset 0 -2px 0 #2A1FE0; }
.ph-73 { padding-bottom: 8px; color: #8A8A92; }
.ph-74 { display: flex; flex-direction: column; gap: 14px; }
.ph-75 { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #F7931A; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.ph-76 { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-77 { color: #0A9B4F; }
.ph-78 { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ph-79 { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #627EEA; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.ph-80 { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #F3BA2F; color: #1B1B1C; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.ph-81 { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #26A17B; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.ph-82 { height: 62px; border-top: 1px solid #EEEEF0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding-bottom: 6px; }
.ph-83 { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #2A1FE0; }
.ph-84 { font-size: 10px; font-weight: 600; }
.ph-85 { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #8A8A92; }
.ph-stage { position: relative; height: 700px; border-radius: 40px; background: #F2F2FF; overflow: hidden; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
  .ph-stage { height: 660px; border-radius: 32px; }
}
