/* 진행 바 스타일 */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.progress-dot.active {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.progress-dot.completed {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.progress-dot.inactive {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    max-width: 100px;
}

.progress-line.completed {
    background: linear-gradient(90deg, #22c55e, var(--blue-primary));
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.account-info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.account-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.account-item.nh:not(.owner):hover,
.account-item.toss:hover {
    cursor: pointer;
}

/* 라디오 버튼 스타일 */
input[type="radio"] {
    accent-color: var(--blue-primary);
    cursor: pointer;
}

.account-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.account-item.nh {
    border-left-color: #22c55e;
}

/* 커스텀 라디오 버튼 */
.custom-radio {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.account-item input[type="radio"]:checked+.custom-radio {
    border-color: var(--blue-primary);
    background: rgba(59, 130, 246, 0.1);
}

.account-item input[type="radio"]:checked+.custom-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.account-item:hover .custom-radio {
    border-color: var(--blue-light);
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

.modal-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.modal-message {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-account-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-account-info strong {
    color: var(--blue-light);
    font-family: monospace;
    font-size: 1.125rem;
    word-break: break-all;
}

.modal-close-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.account-item.toss {
    border-left-color: var(--blue-primary);
}

.account-item.owner {
    border-left-color: #a855f7;
}

.account-item.amount {
    border-left-color: #eab308;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .progress-container {
        gap: 0.25rem;
        margin-bottom: 1.5rem;
    }

    .progress-dot {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .progress-line {
        max-width: 60px;
    }

    .account-info-card {
        padding: 1rem;
    }

    .modal-content {
        padding: 1rem;
        width: 95%;
        max-height: 85vh;
        overflow-y: auto;
    }

    /* 모달 패딩 최소화 */
    .modal-overlay {
        padding: 0.5rem;
    }

    /* 가입 정보 입력 컨테이너 최적화 */
    .signup-layout {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    /* 패딩 최소화: 좌우 패딩을 최대한 얇게 설정 */
    .signup-form {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0.5rem !important;
        margin: 0;
    }

    .glass-card {
        padding: 0.5rem !important;
    }

    /* 폼 그룹 간격 조정 */
    .form-grid {
        gap: 1.25rem;
    }

    /* 폼 헤더 크기 조정 */
    .form-header {
        margin-bottom: 1.5rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .form-header p {
        font-size: 0.9375rem;
    }

    /* 입력 필드 패딩 조정 */
    .form-group input {
        padding: 0.875rem 1rem;
        font-size: 16px;
        /* iOS Safari 자동 줌 방지 */
    }

    /* 작은 텍스트와 힌트 줄바꿈 개선 */
    .form-hint,
    small.form-hint {
        font-size: 0.8125rem;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* UDID 입력 필드 모바일 최적화 */
    input[type="text"][id="udid"] {
        font-size: 14px !important;
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

/* 매우 작은 화면 (480px 이하) */
@media (max-width: 480px) {
    .signup-form {
        padding: 0.5rem !important;
    }

    .glass-card {
        padding: 0.5rem !important;
    }

    .form-header h3 {
        font-size: 1.375rem;
    }

    .form-grid {
        gap: 1rem;
    }

    .form-group input {
        padding: 0.75rem 0.875rem;
    }
}