    /* ================================================================
     livero-signup.html — 기존 "회원가입페이지_signup-concept" 시안 기반 재구성.
     카드/버튼/색상 시스템은 원본 유지.
     주요 수정: 6단계 재구성(교회명 → 페이지주소 → 계정생성 → 휴대폰인증 →
     교회기본정보 → 완료), 모든 단계 이전 버튼, 진행 표시, 중복확인 상태,
     번호 용도 구분, 마지막 단계 정보 확인.
     ================================================================ */
    :root {
        --bg: #F7F8FB;
        --card: #FFFFFF;
        --line: #E7EAF0;
        --ink: #14161F;
        --ink-dim: #787E92;
        --navy: #29375B;
        --navy-deep: #1B2333;
        --navy-soft: #EEF0F6;
        --amber: #FEBF24;
        --amber-text: #A8710F;
        --amber-soft: #FFF3D6;
        --green: #2E9E5B;
        --green-soft: #E8F6EE;
        --radius: 18px;
    }

    * {
        box-sizing: border-box;
    }

    html,
    body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: 'Pretendard', -apple-system, sans-serif;
        font-size: 16px;
        line-height: 1.55;
    }

    button {
        font-family: inherit;
        cursor: pointer;
    }

    .wrap {
        max-width: 460px;
        margin: 0 auto;
        padding: 48px 22px 60px;
        min-height: 100vh;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1px;
        font-weight: 800;
        font-size: 22px;
        color: var(--navy-deep);
        margin-bottom: 20px;
    }

    .logo .pill {
        background: var(--navy-deep);
        color: #fff;
        font-size: 12.5px;
        font-weight: 800;
        padding: 5px 10px;
        border-radius: 9px;
        margin-left: 8px;
    }

    /* 수정: 전 단계 공통 진행 표시 */
    .progress-wrap {
        max-width: 460px;
        margin: 0 auto 18px;
        padding: 0 22px;
    }

    .progress-steps {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .progress-steps .seg {
        flex: 1;
        height: 4px;
        border-radius: 99px;
        background: var(--line);
    }

    .progress-steps .seg.done {
        background: var(--navy);
    }

    .progress-label {
        text-align: center;
        font-size: 12.5px;
        color: var(--ink-dim);
        font-weight: 700;
        margin-top: 8px;
    }

    .card {
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 32px 28px;
    }

    .headline {
        font-size: 22px;
        font-weight: 800;
        text-align: center;
        margin: 0 0 8px;
        letter-spacing: -0.02em;
        line-height: 1.4;
    }

    .sub {
        font-size: 14px;
        color: var(--ink-dim);
        text-align: center;
        margin: 0 0 28px;
        line-height: 1.6;
    }

    .form-row {
        margin-bottom: 18px;
    }

    .form-row:last-child {
        margin-bottom: 0;
    }

    .form-row label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 9px;
    }

    .form-row input {
        width: 100%;
        border: 1.5px solid var(--line);
        border-radius: 12px;
        padding: 14px 16px;
        font-size: 16px;
        font-family: inherit;
    }

    .form-row input:focus {
        outline: none;
        border-color: var(--navy);
    }

    .hint {
        font-size: 12.5px;
        color: var(--ink-dim);
        margin-top: 8px;
        line-height: 1.65;
    }

    .dup-status {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12.5px;
        font-weight: 700;
        margin-top: 8px;
    }

    .dup-status.ok {
        color: var(--green);
    }

    .dup-status.bad {
        color: #D64545;
    }

    .phone-row {
        display: flex;
        gap: 8px;
    }

    .phone-row input {
        flex: 1;
    }

    .send-btn {
        flex: 0 0 auto;
        font-size: 13.5px;
        font-weight: 700;
        padding: 0 16px;
        border-radius: 12px;
        background: var(--navy);
        color: #fff;
        border: none;
        white-space: nowrap;
    }

    .pw-field {
        position: relative;
    }

    .pw-field input {
        padding-right: 46px;
    }

    .pw-toggle {
        position: absolute;
        right: 13px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--ink-dim);
        font-size: 13px;
    }

    .btn {
        width: 100%;
        font-size: 16px;
        font-weight: 800;
        padding: 16px;
        border-radius: 13px;
        border: none;
        margin-top: 8px;
    }

    .btn-primary {
        background: var(--amber);
        color: var(--navy-deep);
    }

    .btn-primary:disabled {
        background: var(--line);
        color: var(--ink-dim);
        cursor: not-allowed;
    }

    .btn-outline {
        background: #fff;
        color: var(--navy);
        border: 1.5px solid var(--line);
    }

    /* 수정: '이전' 버튼 — 아이콘 + 텍스트, 충분히 큰 클릭 영역 */
    .btn-text {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--bg);
        color: var(--ink);
        font-size: 15px;
        font-weight: 700;
        padding: 15px;
        border-radius: 12px;
        border: 1.5px solid var(--line);
        margin-top: 10px;
    }

    .btn-text svg {
        flex: 0 0 auto;
    }

    .btn-text:active {
        background: var(--navy-soft);
    }

    /* 추가: 약관 전문 보기 모달 */
    .term-modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(20, 22, 31, 0.5);
        z-index: 200;
        align-items: flex-end;
        justify-content: center;
    }

    .term-modal-overlay.show {
        display: flex;
    }

    .term-modal {
        background: #fff;
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-width: 460px;
        max-height: 78vh;
        display: flex;
        flex-direction: column;
    }

    .term-modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px;
        border-bottom: 1.5px solid var(--line);
    }

    .term-modal-head h3 {
        font-size: 16px;
        font-weight: 800;
        margin: 0;
    }

    .term-modal-close {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        border: none;
        background: var(--bg);
        font-size: 15px;
        color: var(--ink-dim);
    }

    .term-modal-body {
        overflow-y: auto;
        padding: 18px 22px 28px;
        font-size: 13px;
        line-height: 1.85;
        color: #3D4155;
    }

    .term-modal-body h4 {
        font-size: 13.5px;
        font-weight: 800;
        color: var(--ink);
        margin: 16px 0 6px;
    }

    .term-modal-body h4:first-child {
        margin-top: 0;
    }

    .term-row a {
        cursor: pointer;
    }

    .otp-row {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .otp-row input {
        flex: 1;
        text-align: center;
        letter-spacing: .35em;
        font-weight: 800;
        font-size: 19px;
    }

    .otp-timer {
        font-size: 13px;
        color: var(--amber-text);
        font-weight: 800;
        white-space: nowrap;
    }

    .resend {
        text-align: center;
        font-size: 13px;
        color: var(--ink-dim);
        margin-top: 14px;
    }

    .resend b {
        color: var(--navy);
        font-weight: 700;
        cursor: pointer;
    }

    .url-field {
        display: flex;
        align-items: stretch;
        border: 1.5px solid var(--line);
        border-radius: 12px;
        overflow: hidden;
        margin-top: 10px;
    }

    .url-field:focus-within {
        border-color: var(--navy);
    }

    .url-prefix {
        background: var(--bg);
        color: var(--ink-dim);
        font-size: 13.5px;
        font-weight: 600;
        padding: 13px 12px;
        white-space: nowrap;
        border-right: 1px solid var(--line);
    }

    .url-field input {
        border: none;
        border-radius: 0;
        flex: 1;
        min-width: 0;
        font-size: 14.5px;
    }

    .phone-purpose {
        background: var(--navy-soft);
        border-radius: 12px;
        padding: 14px 16px;
        font-size: 12.5px;
        color: var(--ink-dim);
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .phone-purpose b {
        color: var(--ink);
    }

    .review-block {
        margin-bottom: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--line);
    }

    .review-block:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .review-block .rl {
        font-size: 12px;
        color: var(--ink-dim);
        font-weight: 700;
        margin-bottom: 4px;
    }

    .review-block .rv {
        font-size: 14.5px;
        font-weight: 700;
        color: var(--ink);
    }

    .review-edit {
        font-size: 12px;
        color: var(--navy);
        font-weight: 700;
        float: right;
        cursor: pointer;
    }

    .welcome-icon {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--green-soft);
        color: var(--green);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin: 0 auto 18px;
    }

    .term-all {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 16px;
        background: var(--navy-soft);
        border-radius: 12px;
        margin: 20px 0 6px;
        font-weight: 800;
        font-size: 13.5px;
    }

    .term-all input {
        width: 19px;
        height: 19px;
        accent-color: var(--navy);
    }

    .term-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 0;
        font-size: 13px;
    }

    .term-row input {
        width: 17px;
        height: 17px;
        accent-color: var(--navy);
        flex: 0 0 auto;
    }

    .term-row .req {
        color: #D64545;
        font-weight: 800;
        margin-right: 3px;
    }

    /* 수정: 1단계 정통 교단 고지 박스 — 어조 강화(경고 톤) */
    .policy-notice {
        background: #FDF3F3;
        border: 1.5px solid #F3D6D6;
        border-radius: 14px;
        padding: 14px 16px;
        font-size: 12.5px;
        line-height: 1.72;
        color: #5A4A4A;
        margin: 16px 0 4px;
    }

    .policy-notice .pn-head {
        display: flex;
        gap: 7px;
        font-size: 13.5px;
        font-weight: 800;
        color: #B03A3A;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .policy-notice b {
        color: #B03A3A;
    }

    /* 추가: 교회+부서명 입력 예시 칩 — 부서·팀 단위 가입도 가능하다는 걸 보여줘 가입 모수를 넓히는 장치 */
    .ex-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 9px;
    }

    .ex-chips .ex-label {
        font-size: 11.5px;
        color: var(--ink-dim);
        font-weight: 700;
        width: 100%;
        margin-bottom: 1px;
    }

    .ex-chips button {
        font-size: 11.5px;
        font-weight: 700;
        color: #3D4155;
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 5px 11px;
        cursor: pointer;
    }

    .ex-chips button:hover {
        border-color: var(--navy);
        color: var(--navy);
    }

    .term-row a {
        margin-left: auto;
        font-size: 11.5px;
        color: var(--ink-dim);
        text-decoration: underline;
    }