/* 1단계 메일 인증·로그인 + 3단계 구좌 연결·완료 정보. 움직임은 transform·opacity만. */

/* ── 1단계: 가입 카드 상태 ─────────────────────── */
.hint { font-size: .72rem; font-weight: 400; color: var(--dim); }
.su-err { min-height: 0; padding: 0; text-align: center; color: #ff8a95; opacity: 0; transform: translate3d(0, -.3rem, 0); transition: opacity .25s, transform .35s var(--ease); }
.su-err.on { min-height: 1.25rem; padding: .2rem 0 .1rem; opacity: 1; transform: none; }
.su-alt { margin: .85rem 0 0; text-align: center; font-size: .84rem; color: var(--dim); }
.su-alt .link { color: var(--fg); font-weight: 600; }
#alt-go.nudge { color: var(--acc); text-decoration-color: var(--acc-line); animation: altNudge .9s var(--spring) 2; }
@keyframes altNudge { 0%, 100% { transform: none; } 35% { transform: translate3d(0, -.18rem, 0) scale(1.06); } }

/* 이름 + 영문 이름(선택) 한 줄: 높이를 늘리지 않는다 */
.fld-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .65rem; }
.fld-pair .lblrow { flex-wrap: nowrap; min-width: 0; }
.fld-pair .lblrow label { white-space: nowrap; }
.fld-pair .hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 로그인: 이름·추천·약관·비밀번호 규칙은 숨긴다 */
.signup.login .fld-pair, .signup.login #f-ref, .signup.login .terms, .signup.login .rules, .signup.login .refbadge { display: none; }
.signup.login #f-pw .msgrow .msg { text-align: left; }

/* 메일 확인: 입력 칸 대신 안내 */
.signup.mailing > .fld, .signup.mailing > .fld-pair, .signup.mailing > .terms, .signup.mailing > .refbadge, .signup.mailing > .su-err, .signup.mailing > .su-alt,
.signup.mailing > .su-head { display: none; }
.signup.mailing:not(.signed) > #go { display: none; }
.su-mail { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .6rem 0 .2rem; animation: smIn .55s var(--ease) both; }
@keyframes smIn { from { opacity: 0; transform: translate3d(0, .8rem, 0); } to { opacity: 1; transform: none; } }
.sm-ico { position: relative; width: 4.6rem; height: 4.6rem; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(201, 247, 61, .28), rgba(201, 247, 61, .08) 70%); border: 1px solid var(--acc-line); color: var(--acc); font-size: 2rem; }
.sm-ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--acc); opacity: 0; animation: smRing 2.6s var(--ease) infinite; }
.sm-ring.r2 { animation-delay: 1.3s; }
@keyframes smRing { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.sm-t { margin: 1.15rem 0 0; font: 700 1.55rem/1.3 var(--body); letter-spacing: -.01em; }
.sm-lead { margin: .5rem 0 0; font-size: .92rem; line-height: 1.6; color: var(--mute); text-wrap: balance; }
.sm-lead b { color: var(--fg); font-weight: 600; word-break: break-all; }
.sm-steps { list-style: none; margin: 1.3rem 0 0; padding: 0; width: 100%; display: grid; gap: .4rem; text-align: left; }
.sm-steps li { display: flex; align-items: center; gap: .75rem; padding: .62rem .85rem; border-radius: .8rem; background: var(--field-bg); border: 1px solid var(--field-bd); font-size: .88rem; color: var(--mute); }
.sm-steps i { flex: none; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 50%; font: 700 .76rem/1 var(--disp); font-style: normal; color: var(--acc); border: 1px solid var(--acc-line); background: var(--acc-dim); }
.sm-wait { margin: 1.1rem 0 0; display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .95rem; border-radius: 99rem; border: 1px solid var(--faint); background: rgba(255, 255, 255, .025); font-size: .84rem; color: var(--mute); }
.sm-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--acc); box-shadow: 0 0 .7rem var(--acc); animation: xBreath 1.8s ease-in-out infinite; }
.sm-wait.ok { border-color: rgba(47, 210, 122, .45); background: rgba(47, 210, 122, .1); color: #8ff0b8; }
.sm-wait.ok .sm-dot { background: var(--ok); box-shadow: 0 0 .7rem var(--ok); animation: none; }
.sm-dev { margin-top: .9rem; width: auto; padding: 0 1.2rem; height: 2.6rem; font-size: .86rem; }
.sm-acts { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem; font-size: .82rem; color: var(--dim); }
.sm-acts i { font-style: normal; color: var(--faint); }
.sm-acts .link { font-size: .82rem; color: var(--fg); }
.sm-tip { margin: 1rem 0 0; display: flex; align-items: flex-start; gap: .5rem; text-align: left; font-size: .76rem; line-height: 1.55; color: var(--dim); }
.sm-tip svg { flex: none; margin-top: .15rem; color: #f0b90b; }
.signup.signed .sm-ico { border-color: rgba(47, 210, 122, .5); color: var(--ok); background: radial-gradient(circle at 35% 30%, rgba(47, 210, 122, .3), rgba(47, 210, 122, .08) 70%); }
.signup.signed .sm-ring { border-color: var(--ok); animation-iteration-count: 1; }
.signup.signed .sm-steps, .signup.signed .sm-tip { display: none; }
.signup.signed > #go { margin-top: 1.2rem; }

/* 폰 안내 화면: 메일 인증을 마치고 돌아온 경우 */
.g-verified { margin: 0 0 1.1rem; display: flex; align-items: center; gap: .6rem; padding: .7rem .95rem; border-radius: .85rem; border: 1px solid rgba(47, 210, 122, .4); background: rgba(47, 210, 122, .1); color: #8ff0b8; font-size: .86rem; font-weight: 500; line-height: 1.5; animation: smIn .5s var(--ease) both; }
.g-verified::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 .7rem var(--ok); }

/* ── 3단계: 연결 허용 주소 ─────────────────────── */
.xa-url { margin-top: .7rem; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .7rem; row-gap: .25rem; padding: .7rem .7rem .7rem .95rem; border-radius: .9rem; border: 1px solid var(--acc-line); background: var(--acc-dim); }
.xa-url small { grid-column: 1 / -1; font-size: .72rem; color: var(--dim); }
.xa-url code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 1rem/1.3 var(--disp); letter-spacing: .02em; color: var(--fg); user-select: all; }
.xa-copy { display: inline-flex; align-items: center; gap: .4rem; height: 2.2rem; padding: 0 .85rem; border-radius: .6rem; font-size: .8rem; font-weight: 700; color: var(--on-acc); background: var(--acc); transition: transform .2s var(--ease); }
.xa-copy:hover { transform: translateY(-1px); }
.xa-copy:active { transform: scale(.97); }
.xa-copy.hit { background: var(--ok); }
.x-file.miss { border-color: rgba(240, 185, 11, .45); background: rgba(240, 185, 11, .07); }
.x-file.miss small { color: #f0c94b; }
.x-file.hit small { color: var(--acc); }

/* ── 3단계: 구좌 번호 칸 + 상태 ─────────────────── */
.xl-form { margin-top: 1.35rem; }
.xl-form .fld { margin-bottom: .2rem; }
.xl-form .ctl input { font: 600 1.15rem/1 var(--disp); letter-spacing: .08em; }
.xl-form .ctl input::placeholder { font-family: var(--body); font-weight: 400; letter-spacing: 0; }
.xl-form .fld.locked .ctl { opacity: .6; }
.xl-form .fld.locked .okmark { opacity: 0; }
/* 번호 바꾸기: EA 판정 전 waiting_ea 에서만 보인다 */
.xl-edit { display: inline-flex; align-items: center; min-height: 2.25rem; margin-top: .15rem; padding: .35rem .8rem; border: 1px solid var(--acc-line); border-radius: 999px; background: transparent; color: var(--acc); font: 600 .82rem/1 var(--body); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.xl-edit:hover { background: var(--acc-dim); }
.xl-edit[aria-pressed="true"] { border-color: var(--faint); color: var(--mute); }
.xl-edit[hidden] { display: none; }
.xl-state { margin-top: .5rem; }
.xl-st { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: .95rem; border: 1px solid var(--faint); background: rgba(255, 255, 255, .025); animation: smIn .4s var(--ease) both; }
.xl-st b { display: block; font-size: .92rem; font-weight: 600; color: var(--fg); }
.xl-st small { display: block; margin-top: .2rem; font-size: .78rem; line-height: 1.45; color: var(--mute); }
.xl-si { flex: none; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; color: var(--dim); background: rgba(255, 255, 255, .05); border: 1px solid var(--faint); }
.xl-spin { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid var(--acc-dim); border-top-color: var(--acc); animation: spin .9s linear infinite; }
.xl-st.wait, .xl-st.busy { border-color: var(--acc-line); background: var(--acc-dim); }
.xl-st.wait .xl-si, .xl-st.busy .xl-si { border-color: var(--acc-line); }
.xl-st.ok { border-color: rgba(47, 210, 122, .45); background: rgba(47, 210, 122, .08); }
.xl-st.ok .xl-si { color: #04150b; background: var(--ok); border-color: var(--ok); }
.xl-st.pend, .xl-st.warn { border-color: rgba(240, 185, 11, .4); background: rgba(240, 185, 11, .07); }
.xl-st.pend .xl-si, .xl-st.warn .xl-si { color: #f0b90b; border-color: rgba(240, 185, 11, .4); }
.xl-st.bad { border-color: rgba(255, 77, 94, .45); background: var(--bad-dim); }
.xl-st.bad .xl-si { color: #ff8a95; border-color: rgba(255, 77, 94, .45); }
.xl-st.idle small { color: var(--dim); }

/* ── 3단계: 오른쪽 연결 그림 ───────────────────── */
.x-link { display: grid; place-items: center; overflow: auto; }
.xl-wrap { width: min(100%, 60rem); display: flex; flex-direction: column; gap: 2.2rem; padding: 1rem 0; }
.xl-nodes { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; padding: 0 1rem; }
.xl-node { width: 9.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.xl-node b { font-size: .92rem; font-weight: 600; color: var(--mute); transition: color .4s; }
.xl-ns { min-height: 1.1rem; font-size: .74rem; color: var(--dim); }
.xl-ic { position: relative; width: 5.2rem; height: 5.2rem; display: grid; place-items: center; border-radius: 1.4rem; font-size: 2.1rem; color: var(--mute); background: linear-gradient(180deg, #1d1e22, #141518); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 1.4rem 2.6rem -1.4rem rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); transition: border-color .4s, color .4s, box-shadow .4s; }
.xl-logo { font: 700 2rem/1 var(--disp); color: var(--on-acc); background: radial-gradient(circle at 35% 30%, var(--acc2), var(--acc) 72%); border-color: var(--acc); box-shadow: 0 0 0 .5rem rgba(201, 247, 61, .08), 0 0 3rem rgba(201, 247, 61, .3); }
.n2 b { color: var(--fg); }
.xl-line { position: relative; height: 6px; margin-top: calc(2.6rem - 3px); overflow: hidden; background: repeating-linear-gradient(90deg, var(--faint) 0 .4rem, transparent .4rem .75rem) center / 100% 2px no-repeat; }
.xl-line::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; border-radius: 2px; background: var(--acc); opacity: 0; transform: scaleX(0); transform-origin: left; transition: opacity .5s, transform .8s var(--ease); }
.xl-line i { position: absolute; left: 0; top: 0; width: 100%; height: 6px; opacity: 0; transform: translate3d(0, 0, 0); }
.xl-line i::before { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 .6rem var(--acc); }
.x-link.flow .xl-line i { animation: xlDot 1.8s linear infinite; }
.x-link.flow .xl-line i:nth-child(2) { animation-delay: .6s; }
.x-link.flow .xl-line i:nth-child(3) { animation-delay: 1.2s; }
.x-link:not(.a1) .l2 i { animation: none; }
@keyframes xlDot { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate3d(calc(100% - 6px), 0, 0); } }
.x-link.a1 .l1::before, .x-link.a2 .l2::before { opacity: .75; transform: none; }
.x-link.a1 .n1 .xl-ic { border-color: var(--acc-line); color: var(--acc); box-shadow: 0 0 0 .4rem var(--acc-dim), 0 1.4rem 2.6rem -1.4rem rgba(0, 0, 0, .9); }
.x-link.a1 .n1 b, .x-link.a2 .n3 b { color: var(--fg); }
.x-link.a2 .n3 .xl-ic { border-color: rgba(47, 210, 122, .55); color: var(--ok); box-shadow: 0 0 0 .4rem rgba(47, 210, 122, .1), 0 1.4rem 2.6rem -1.4rem rgba(0, 0, 0, .9); }
.x-link.a2 .n3 .xl-ns { color: var(--mute); }
.x-link.lost .n1 .xl-ic { border-color: rgba(255, 77, 94, .55); color: #ff8a95; }
.x-link.lost .n1 .xl-ns { color: #ff8a95; }
.x-link.lost .l1::before { background: var(--bad); opacity: .5; transform: none; }
.x-link[data-state="pending_admin"] .n2 .xl-ns, .x-link[data-state="pending_ops"] .n2 .xl-ns { color: #f0b90b; }
.x-link[data-state="conflict"] .n3 .xl-ic { border-color: rgba(255, 77, 94, .55); color: #ff8a95; }

.xl-checks { padding: 1.4rem 1.6rem 1.5rem; border-radius: 1.2rem; background: linear-gradient(180deg, rgba(32, 33, 38, .78), rgba(22, 23, 27, .78)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 1.6rem 3rem -1.6rem rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06); }
.xl-ch { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 1rem; }
.xl-ch b { font-size: 1.02rem; font-weight: 700; }
.xl-cn { font: 600 .82rem/1 var(--disp); letter-spacing: .06em; color: var(--acc); padding: .3rem .6rem; border-radius: 99rem; border: 1px solid var(--acc-line); background: var(--acc-dim); }
.xl-ch small { grid-column: 1 / -1; margin-top: .3rem; font-size: .8rem; color: var(--dim); }
.xl-checks ol { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .9rem; }
.xl-checks label { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: .45rem .7rem; border-radius: .75rem; cursor: pointer; font-size: .88rem; line-height: 1.4; color: var(--mute); border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.xl-checks label:hover { background: rgba(255, 255, 255, .035); border-color: var(--faint); }
.xl-checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xl-checks .box { flex: none; width: 1.3rem; height: 1.3rem; border-radius: .4rem; border: 1px solid var(--field-hover); background: var(--field-bg); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.xl-checks .box svg { font-size: .85rem; color: var(--on-acc); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .35s var(--spring); }
.xl-checks input:checked + .box { background: var(--acc); border-color: var(--acc); }
.xl-checks input:checked + .box svg { opacity: 1; transform: none; }
.xl-checks input:focus-visible + .box { outline: 2px solid var(--acc); outline-offset: 2px; }
.xl-checks label > i { flex: none; font: 600 .72rem/1 var(--disp); font-style: normal; color: var(--dim); width: .9rem; }
.xl-checks li.ok label { color: var(--fg); }

.xl-stuck { padding: 1.2rem 1.4rem 1.1rem; border-radius: 1.1rem; border: 1px solid rgba(240, 185, 11, .35); background: rgba(240, 185, 11, .06); animation: smIn .45s var(--ease) both; }
.xl-stuck[hidden] { display: none; }
.xl-sh { display: flex; align-items: flex-start; gap: .75rem; }
.xl-sh > svg { flex: none; font-size: 1.3rem; color: #f0b90b; margin-top: .1rem; }
.xl-sh b { display: block; font-size: .98rem; }
.xl-sh small { display: block; margin-top: .25rem; font-size: .8rem; color: var(--mute); }
.xl-stuck table { width: 100%; margin-top: .9rem; border-collapse: collapse; font-size: .86rem; }
.xl-stuck th { text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--dim); padding: 0 .4rem .45rem; border-bottom: 1px solid rgba(240, 185, 11, .2); }
.xl-stuck td { padding: .6rem .4rem; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--mute); vertical-align: middle; }
.xl-stuck tr:last-child td { border-bottom: 0; }
.xl-fix { display: inline-flex; align-items: center; gap: .4rem; color: var(--fg); font-weight: 600; text-align: left; }
.xl-fix svg { flex: none; color: #f0b90b; transition: transform .25s var(--ease); }
.xl-fix:hover svg { transform: translateX(.2rem); }

/* ── 연결 완료: 정보 표 ─────────────────────────── */
.xd-box { margin-top: 1.3rem; }
.xd-info { margin: 0; display: grid; gap: 0; border-radius: .95rem; border: 1px solid var(--faint); background: rgba(255, 255, 255, .025); overflow: hidden; }
.xd-info > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid rgba(255, 255, 255, .05); }
.xd-info > div:first-child { border-top: 0; }
.xd-info dt { font-size: .8rem; color: var(--dim); }
.xd-info dd { margin: 0; font: 600 .92rem/1.3 var(--body); color: var(--fg); text-align: right; }
.xd-info > div:first-child dd { font-family: var(--disp); letter-spacing: .08em; }
.xd-info > div.ok dd { color: #8ff0b8; }
.xd-info > div.ok dd::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 .5rem var(--ok); vertical-align: .08em; }
.xd-info > div.bad dd { color: #ff8a95; }
.xd-box .x-tip { margin-top: .6rem; }
.xd-pc { margin: .6rem 0 0; display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: var(--mute); }
.xd-pc svg { flex: none; color: var(--acc); font-size: 1rem; }
.x-done.lost .xd-ok { color: #fff; background: var(--bad); box-shadow: 0 0 0 .6rem var(--bad-dim), 0 0 3rem rgba(255, 77, 94, .35); }
.x-done.lost .xd-ring, .x-done.lost .xd-p { opacity: 0 !important; animation: none !important; }
.x-done.lost .xd-t { color: #ff8a95; border-color: rgba(255, 77, 94, .45); }
.x-done.lost .xd-chip { border-color: rgba(255, 77, 94, .5); background: var(--bad-dim); color: #ff8a95; }

/* 캡처·움직임 줄이기 */
html.shot .sm-ring, html.shot .sm-dot, html.shot .xl-spin, html.shot .x-link .xl-line i { animation: none !important; }
html.shot .x-link.flow .l1 i:nth-child(2), html.shot .x-link.flow.a1 .l2 i:nth-child(2) { opacity: 1; transform: translate3d(45%, 0, 0); }
html[data-motion="reduce"] .sm-ring, html[data-motion="reduce"] .x-link .xl-line i { animation: none !important; }

/* 낮은 화면 */
@media (max-height: 900px) {
  .xl-wrap { gap: 1.4rem; }
  .xl-ic { width: 4.4rem; height: 4.4rem; font-size: 1.8rem; border-radius: 1.2rem; }
  .xl-line { margin-top: calc(2.2rem - 3px); }
  .xl-checks { padding: 1.1rem 1.3rem 1.2rem; }
  .xl-checks label { min-height: 2.35rem; padding: .3rem .6rem; }
  .sm-steps li { padding: .5rem .8rem; }
  .sm-t { margin-top: .9rem; font-size: 1.4rem; }
  .sm-ico { width: 4rem; height: 4rem; font-size: 1.7rem; }
}

/* hidden 속성이 display 지정에 밀리지 않게 */
.su-mail[hidden], .sm-dev[hidden], .xl-stuck[hidden], .refbadge[hidden] { display: none !important; }
.sm-ico svg { position: relative; width: 2rem; height: 2rem; }
.sm-tip svg { width: .95rem; height: .95rem; }
.xd-pc svg, .xl-sh > svg { width: 1.1rem; height: 1.1rem; }
.xa-copy svg { width: .9rem; height: .9rem; }
.xl-si svg { width: 1.1rem; height: 1.1rem; }
.xl-fix svg { width: .95rem; height: .95rem; }
.xl-checks .box svg { width: .85rem; height: .85rem; }
